/* Book Now done page: portal setup box first (owner design 2026-11-03). */
#page-view .book-done-head.is-centred { justify-content: center; max-width: 680px; margin-inline: auto; }
#page-view .book-done-portal { max-width: 680px; margin: 0 auto 18px; padding: 28px; border-color: rgba(76, 201, 128, .55); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7); }
#page-view .book-done-portal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
#page-view .book-done-portal h2 { margin: 0; font-size: clamp(26px, 3vw, 32px); }
#page-view .book-done-required { flex: none; padding: 4px 8px; border: 1px solid rgba(255, 214, 190, .5); border-radius: 3px; background: linear-gradient(135deg, #ffb27a 0%, #f2793f 48%, #cf4a2c 100%); color: #2a0e05; font: 700 10px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
#page-view .book-done-why { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 60ch; }
#page-view .book-done-user { display: grid; gap: 4px; margin: 0 0 18px; padding: 14px 0; border-top: 1px solid rgba(221, 229, 239, .13); border-bottom: 1px solid rgba(221, 229, 239, .13); }
#page-view .book-done-user span, #page-view .book-done-user small { color: var(--muted); font-size: 12px; line-height: 1.45; }
#page-view .book-done-user strong { font: 500 19px/1.3 var(--serif); overflow-wrap: anywhere; }
#page-view .book-done-portal .button-row .button-primary { min-width: 240px; justify-content: center; animation: book-done-pulse 2.2s ease-out 1.4s infinite; }
#page-view .book-done-sent { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
@keyframes book-done-pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 197, 132, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(224, 197, 132, 0); } }

/* Animated green check: ring draws, then the tick. */
#page-view .book-done-check { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; background: rgba(76, 201, 128, .12); animation: book-done-pop .5s cubic-bezier(.16, 1, .3, 1) .75s both; }
#page-view .book-done-check svg { display: block; width: 100%; height: 100%; fill: none; stroke: #4cc980; stroke-linecap: round; stroke-linejoin: round; }
#page-view .book-done-check-ring { stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; transform: rotate(-90deg); transform-origin: center; animation: book-done-draw .6s cubic-bezier(.65, 0, .35, 1) forwards; }
#page-view .book-done-check-tick { stroke-width: 3.5; stroke-dasharray: 34; stroke-dashoffset: 34; animation: book-done-draw .35s cubic-bezier(.65, 0, .35, 1) .55s forwards; }
@keyframes book-done-draw { to { stroke-dashoffset: 0; } }
@keyframes book-done-pop { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 201, 128, .35); } 40% { transform: scale(1.08); } 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(76, 201, 128, 0); } }
@media (prefers-reduced-motion: reduce) {
  #page-view .book-done-portal .button-row .button-primary, #page-view .book-done-check, #page-view .book-done-check-ring, #page-view .book-done-check-tick { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 760px) {
  #page-view .book-done-head.is-centred { justify-content: flex-start; }
  #page-view .book-done-check { flex-basis: 46px; width: 46px; height: 46px; }
  #page-view .book-done-portal { padding: 22px; }
  #page-view .book-done-portal .button-row .button { width: 100%; justify-content: center; }
}

/* Light mode: the done page had no light styles (dark cards, cream text on a light page). */
html[data-theme='light'] body #page-view .book-done-card { background: var(--lg-panel, #EEE4D8); border-color: var(--lg-border-soft, #DED4C8); box-shadow: 0 10px 30px -20px rgba(32, 28, 25, .25); }
html[data-theme='light'] body #page-view .book-done-portal { background: #F6F1E9; border-color: rgba(47, 140, 88, .55); box-shadow: 0 18px 40px -26px rgba(32, 28, 25, .35); }
html[data-theme='light'] body #page-view :is(.book-done-head h1, .book-done-card h2, .book-done-time, .book-done-list dd, .book-done-expect strong, .book-done-user strong) { color: #201C19; }
html[data-theme='light'] body #page-view :is(.book-done-head p, .book-done-list dt, .book-done-expect p, .book-done-why, .book-done-sent, .book-done-user span, .book-done-user small, .book-done-price) { color: #5E534B; }
html[data-theme='light'] body #page-view :is(.book-done-kicker, .book-done-home a) { color: #80602d; }
html[data-theme='light'] body #page-view .book-done-num { border-color: rgba(128, 96, 45, .45); color: #80602d; }
html[data-theme='light'] body #page-view :is(.book-done-list > div, .book-done-user) { border-color: rgba(55, 42, 24, .15); }
html[data-theme='light'] body #page-view .book-done-check { background: rgba(47, 140, 88, .12); }
html[data-theme='light'] body #page-view .book-done-check svg { stroke: #2f8c58; }
