/* The booking panel: a 420px side panel on desktop, a full-height sheet on phones. Lives over the page. */
body.panel-open { overflow: hidden; }
.pnl-backdrop { position: fixed; inset: 0; background: rgba(20,21,23,.45); z-index: 1100; animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pnl { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); z-index: 1101; display: flex; flex-direction: column; animation: pnl-in .22s ease-out both; }
/* Slide only, no fade: a capture taken mid-animation still looks whole. */
@keyframes pnl-in { from { transform: translateX(24px); } to { transform: none; } }
@keyframes pnl-up { from { transform: translateY(24px); } to { transform: none; } }
@media (max-width: 767px) {
  .pnl { left: 0; width: auto; top: 0; border-radius: 0; animation-name: pnl-up; }
}
@media (prefers-reduced-motion: reduce) { .pnl, .pnl-backdrop { animation: none; } }
.pnl-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.pnl-brand { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.pnl-brand small { font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin-left: 6px; }
.pnl-close { width: 36px; height: 36px; border: none; border-radius: 50%; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-right: -8px; }
.pnl-close:hover { background: var(--hover); }
.pnl-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pnl-body { padding: 18px 20px 28px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.pnl-foot { padding: 10px 18px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line-soft); text-align: center; flex-shrink: 0; }

.pnl-h { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 16px; line-height: 1.25; outline: none; }
.pnl-h.center { text-align: center; }
.pnl-note { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.pnl-note.small { font-size: 12.5px; color: var(--ink-3); }
.pnl-note.center { text-align: center; }
.pnl-error { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500; margin: 0 0 14px; }
.linkish { background: none; border: none; padding: 0; color: var(--clay); text-decoration: underline; cursor: pointer; font: inherit; }

/* summary chips */
.pnl-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.schip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.schip.fixed { cursor: default; background: transparent; }
.schip svg { width: 13px; height: 13px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schip:not(.fixed):hover { border-color: var(--clay); color: var(--clay); }
.schip:not(.fixed):hover svg { stroke: var(--clay); }

/* choices */
.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--clay); background: var(--surface-2); }
.choice.with-portrait { flex-direction: row; align-items: center; gap: 14px; }
.choice-portrait { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--photo-bg); flex-shrink: 0; }
.choice-main { font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.choice-sub { color: var(--ink-2); font-size: 13.5px; }
.tag { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); background: color-mix(in srgb, var(--clay) 12%, transparent); padding: 2px 7px; border-radius: 999px; }

/* time step */
.soonest { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; margin: 0 0 16px; border-radius: 12px; border: 1px solid var(--clay); background: color-mix(in srgb, var(--clay) 10%, transparent); color: var(--ink); cursor: pointer; }
.soonest span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.soonest b { font-size: 15px; font-weight: 600; }
.soonest small { font-size: 12.5px; color: var(--ink-2); }
.soonest:hover { background: color-mix(in srgb, var(--clay) 18%, transparent); }
.cal { border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 12px 10px; margin: 0 0 14px; background: var(--surface); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.cal-title { font-weight: 600; font-size: 15px; }
.cal-nav { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); padding: 4px 0; }
.cal-cell { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: transparent; font-size: 14px; color: var(--ink-3); cursor: default; display: flex; align-items: center; justify-content: center; padding: 0; }
.cal-cell.blank { visibility: hidden; }
.cal-cell.open { color: var(--ink); background: var(--chip-bg); font-weight: 600; cursor: pointer; }
.cal-cell.open:hover { border-color: var(--clay); }
.cal-cell.sel { background: var(--ink); color: var(--on-ink); }
.cal-cell.today { box-shadow: inset 0 0 0 1px var(--clay); }
.day-h { font-weight: 600; font-size: 15px; margin: 4px 0 10px; }
.tgroup { margin: 0 0 12px; }
.tgroup-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.tchip.time { min-width: 84px; align-items: center; }
.tchip.time small { color: var(--ink-2); }
.zone { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 0; }
.zone-diff { color: var(--clay); font-weight: 600; }

/* details */
.fld { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fld i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.fld input, .fld textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; }
.fld.bad input { border-color: var(--bad); }
.err { font-style: normal; font-weight: 500; color: var(--bad); font-size: 12.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
.seg { border: none; padding: 0; margin: 2px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.segb { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; }
.segb[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.segb:disabled { opacity: .4; cursor: default; }
.seg .err { grid-column: 1 / -1; }
.chk { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--clay); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--clay); border-color: var(--clay); color: var(--on-clay); }
.btn.primary:hover { background: var(--clay-hover); border-color: var(--clay-hover); }
.btn.ghost:hover { background: var(--hover); }
.btn.big { width: 100%; padding: 14px 16px; font-size: 16px; margin-top: 6px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.btn-row .btn { flex: 1 1 auto; }

/* confirmation */
.done-mark { width: 56px; height: 56px; margin: 6px auto 14px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); display: flex; align-items: center; justify-content: center; }
.done-mark svg { width: 28px; height: 28px; fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done-card { border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; background: var(--surface-2); }
.done-when { display: flex; flex-direction: column; gap: 2px; padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line-soft); }
.done-when b { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.done-when span { color: var(--ink-2); font-size: 14px; }
.done-row { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: 14px; margin: 0 0 8px; line-height: 1.4; }
.done-row .k { color: var(--ink-3); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.done-row a { color: var(--clay); }

/* Embed mode (?embed=1): the panel is the whole frame; the host page is behind it. */
body.embed .site-header, body.embed .page, body.embed footer { display: none; }
body.embed .pnl-backdrop { display: none; }
body.embed .pnl { position: fixed; inset: 0; width: auto; box-shadow: none; animation: none; }
body.embed .pnl-top .pnl-close { display: none; }
