/* The confirmation dialog (wwwroot/js/confirm-dialog.js). Colours follow the site's theme variables. */
.cd-backdrop { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(28, 8, 18, .55); backdrop-filter: blur(5px); opacity: 0; transition: opacity .18s ease; }
.cd-backdrop[hidden] { display: none; }
.cd-backdrop.show { opacity: 1; }
.cd-card { width: 100%; max-width: 25rem; background: #fff; border-radius: 1.5rem; padding: 1.8rem 1.6rem 1.4rem; text-align: center; box-shadow: 0 30px 70px rgba(28, 8, 18, .45), 0 0 0 1px rgba(255, 255, 255, .6) inset; transform: translateY(14px) scale(.96); transition: transform .22s cubic-bezier(.2, .9, .3, 1.15); position: relative; overflow: hidden; }
.cd-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--gold, #c9a227), var(--gold-light, #e8c766), var(--gold, #c9a227)); }
.cd-backdrop.show .cd-card { transform: none; }
.cd-icon { width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; }
.cd-icon.danger { background: #fde7e7; color: #b42318; box-shadow: 0 0 0 .55rem #fff3f3; }
.cd-icon.info { background: var(--maroon-tint, #fbf1f4); color: var(--maroon, #7b1e3a); box-shadow: 0 0 0 .55rem #fdf7f9; }
.cd-title { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.3rem; font-weight: 700; color: #2a1a22; line-height: 1.25; margin: 0 0 .5rem; }
.cd-body { margin: 0 0 1.3rem; color: #6c5f58; font-size: .94rem; line-height: 1.5; white-space: pre-line; }
.cd-title:last-of-type { margin-bottom: 1.3rem; }
.cd-input { margin: -.3rem 0 1.2rem; text-align: left; }
.cd-input textarea { width: 100%; border: 1px solid #e6dad2; border-radius: 1rem; padding: .7rem .9rem; font-size: .92rem; resize: vertical; outline: 0; background: #fffdfb; transition: border-color .15s, box-shadow .15s; }
.cd-input textarea:focus { border-color: var(--maroon, #7b1e3a); box-shadow: 0 0 0 4px rgba(var(--maroon-rgb, 123, 30, 58), .12); }
.cd-error { margin-top: .35rem; font-size: .8rem; font-weight: 700; color: #b42318; }
.cd-actions { display: flex; gap: .7rem; }
.cd-btn { flex: 1 1 0; border-radius: 999px; padding: .72rem 1rem; font-weight: 800; font-size: .92rem; border: 2px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s; }
.cd-btn:active { transform: scale(.97); }
.cd-btn:focus-visible { outline: 3px solid rgba(var(--maroon-rgb, 123, 30, 58), .35); outline-offset: 2px; }
.cd-cancel { background: #fff; color: #5a4a52; border-color: #e6dad2; }
.cd-cancel:hover { background: #faf6f2; border-color: #cdb3be; }
.cd-ok.primary { color: #fff; background: linear-gradient(135deg, var(--maroon, #7b1e3a), var(--maroon-dark, #5c1329)); box-shadow: 0 8px 20px rgba(var(--maroon-rgb, 123, 30, 58), .3); }
.cd-ok.primary:hover { box-shadow: 0 12px 26px rgba(var(--maroon-rgb, 123, 30, 58), .4); }
.cd-ok.danger { color: #fff; background: linear-gradient(135deg, #d92d20, #b42318); box-shadow: 0 8px 20px rgba(180, 35, 24, .3); }
.cd-ok.danger:hover { box-shadow: 0 12px 26px rgba(180, 35, 24, .4); }
html.cd-lock { overflow: hidden; }
@media (max-width: 420px) { .cd-actions { flex-direction: column-reverse; } }
@media (prefers-reduced-motion: reduce) { .cd-backdrop, .cd-card { transition: none; } }
