/* Palladium Bookings — widget styles (v2 design system).
   Ported from the approved design (claude.ai/design "Booking Widget v2"):
   OKLCH token layer driven by a SINGLE accent input. The merchant sets the
   accent as a HEX color injected as --booking-primary (inherits
   --commerce-primary; the AccentColor trait writes style="--booking-primary:#xxxxxx").
   Everything is DERIVED from that one hex via color-mix(in oklch, …):
     accent triplet  → solid / soft background / readable foreground
     focus ring      → accent @ 18% over transparent
   One base radius (--booking-radius) drives every derived chip/btn/panel radius.
   Neutral gray scale + ok / warn / danger are authored directly in OKLCH (light theme).
   Selection pattern  = soft bg + 1.5px accent border + accent-fg text;
   SOLID accent reserved for time slots, CTAs, stepper and range endpoints.
   Entrance = .fadeup (translateY 6px); skeletons = .pb-skel shimmer.
   Everything is scoped under .booking-widget so it never leaks into the page. */

.booking-widget {
    /* ── Accent: single HEX input → OKLCH-derived triplet ── */
    --booking-primary: var(--commerce-primary, #4a5fc9);
    --booking-accent: var(--booking-primary);
    --booking-accent-soft: color-mix(in oklch, var(--booking-primary) 9%, white);
    --booking-accent-fg: color-mix(in oklch, var(--booking-primary) 82%, black);
    --booking-primary-hover: color-mix(in oklch, var(--booking-primary) 88%, black);

    /* ── Neutral palette (OKLCH, light theme) ── */
    --booking-bg: #ffffff;
    --booking-surface-2: oklch(0.975 0.004 270);
    --booking-border: oklch(0.91 0.006 270);
    --booking-border-strong: oklch(0.83 0.008 270);
    --booking-fg: oklch(0.24 0.012 270);
    --booking-text: var(--booking-fg);
    --booking-muted: oklch(0.5 0.012 270);
    --booking-text-muted: var(--booking-muted);
    --booking-subtle: oklch(0.64 0.01 270);

    /* ── Semantic ── */
    --booking-ok: oklch(0.55 0.13 160);
    --booking-warn: oklch(0.62 0.14 65);
    --booking-danger: oklch(0.56 0.18 25);

    /* ── Radius from one base ── */
    --booking-radius: 14px;
    --booking-r-panel: calc(var(--booking-radius) * 0.8);
    --booking-r-btn: calc(var(--booking-radius) * 0.65);
    --booking-r-chip: calc(var(--booking-radius) * 0.6);
    --booking-r-nav: calc(var(--booking-radius) * 0.5);

    /* ── Shape & motion ── */
    --booking-shadow: 0 8px 32px -12px rgba(16, 24, 40, .12), 0 1px 3px rgba(16, 24, 40, .05);
    --booking-transition: all .15s ease;
    --booking-focus-ring: 0 0 0 3px color-mix(in oklch, var(--booking-accent) 18%, transparent);

    color: var(--booking-fg);
    width: 100%;
    max-width: 100%;
    background: var(--booking-bg);
    border: 1px solid var(--booking-border);
    border-radius: var(--booking-radius);
    box-shadow: var(--booking-shadow);
    padding: 26px 28px 28px;
    -webkit-font-smoothing: antialiased;
}

.booking-widget.booking-horizontal { max-width: 960px; }
.booking-widget.booking-horizontal .booking-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

/* ── Animations ── */
/* .fadeup — entrance: rise 6px + fade, .3s ease both. */
@keyframes booking-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
.booking-body > * { animation: booking-fade-in .3s ease both; }

/* .pb-skel — shimmer placeholder. */
@keyframes booking-shimmer {
    from { background-position: 220% 0; }
    to   { background-position: -120% 0; }
}
.booking-skel {
    background: linear-gradient(100deg,
        oklch(0.95 0.004 270) 30%,
        oklch(0.98 0.004 270) 50%,
        oklch(0.95 0.004 270) 70%);
    background-size: 220% 100%;
    border-radius: var(--booking-r-chip);
    animation: booking-shimmer 1.3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .booking-widget * { animation: none !important; transition: none !important; }
}

/* ── Focus (keyboard visibility for cells/buttons + form rings) ── */
.booking-widget button:focus-visible,
.booking-widget input:focus-visible,
.booking-widget textarea:focus-visible {
    outline: 2px solid var(--booking-accent);
    outline-offset: 2px;
}
.booking-input:focus-visible,
.booking-widget textarea.booking-input:focus-visible {
    outline: none;
    box-shadow: var(--booking-focus-ring);
}

/* ── Event info header ── */
.booking-event-info { display: flex; gap: 1.1rem; margin-bottom: .25rem; align-items: flex-start; }
.booking-event-image { width: 120px; height: 86px; object-fit: cover; border-radius: var(--booking-r-panel); flex-shrink: 0; border: 1px solid var(--booking-border); }
.booking-event-text { flex: 1; min-width: 0; }
.booking-event-title { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.booking-event-desc { margin: .3rem 0 0; font-size: .85rem; line-height: 1.5; color: var(--booking-muted); }
.booking-event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 6px; font-size: 13px; color: var(--booking-muted); }
.booking-event-meta > span:not(:first-child)::before { content: '·'; margin-right: 7px; color: var(--booking-subtle); }
.booking-event-price { color: var(--booking-accent-fg) !important; font-weight: 650; }
.booking-event-price-member { color: var(--booking-muted); font-weight: 500; font-size: .85em; margin-left: .15rem; }

/* ── Packs / usage cards ── */
.booking-packs { margin: .85rem 0; padding: .85rem 1rem; border: 1px solid var(--booking-border); border-radius: var(--booking-r-panel); background: var(--booking-accent-soft); }
.booking-packs-head { font-weight: 650; font-size: .9rem; color: var(--booking-accent-fg); margin-bottom: .55rem; }
.booking-packs-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.booking-pack-card { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .55rem .8rem; border: 1px solid var(--booking-border-strong); border-radius: var(--booking-r-btn); background: var(--booking-bg); cursor: pointer; transition: var(--booking-transition); }
.booking-pack-card:hover:not(:disabled) { border-color: var(--booking-accent); box-shadow: var(--booking-focus-ring); }
.booking-pack-card:disabled { opacity: .55; cursor: not-allowed; }
.booking-pack-credits { font-weight: 700; font-size: 1.05rem; }
.booking-pack-price { color: var(--booking-accent-fg); font-weight: 600; }
.booking-pack-label { font-size: .78rem; color: var(--booking-muted); }

.booking-pass { margin: .75rem 0; padding: .75rem .9rem; border: 1px solid var(--booking-border); border-radius: var(--booking-r-panel); background: var(--booking-surface-2); }
.booking-pass-head { font-weight: 650; font-size: .88rem; margin-bottom: .5rem; }
.booking-pass-cover { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .88rem; }
.booking-pass-cover small { color: var(--booking-muted); }
.booking-pass-credit { color: var(--booking-accent-fg); }
.booking-pass-credit strong { color: var(--booking-ok); font-weight: 650; }

/* ── Stepper (numbered dots + connectors, done = check) ── */
.booking-steps { display: flex; align-items: center; gap: 10px; list-style: none; margin: 20px 0 24px; padding: 0; font-size: 13px; color: var(--booking-subtle); }
.booking-steps li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.booking-steps li + li::before { content: ''; width: 28px; height: 1.5px; background: var(--booking-border); margin-right: 10px; }
.booking-steps li.active::before, .booking-steps li.done::before { background: var(--booking-accent); }
.booking-step-dot { width: 24px; height: 24px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--booking-border-strong); color: var(--booking-subtle); background: transparent; box-sizing: border-box; transition: var(--booking-transition); }
.booking-steps li.active, .booking-steps li.done { color: var(--booking-fg); }
.booking-steps li.active { font-weight: 650; }
.booking-steps li.active .booking-step-dot, .booking-steps li.done .booking-step-dot { background: var(--booking-accent); border-color: var(--booking-accent); color: #fff; }
.booking-steps li.active .booking-step-dot { box-shadow: 0 0 0 5px color-mix(in oklch, var(--booking-accent) 15%, transparent); }
.booking-steps li.done button { cursor: pointer; }
.booking-steps button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: default; }

/* ── Section labels ── */
.booking-step-title { font-size: 14px; font-weight: 650; margin: 0 0 12px; color: var(--booking-fg); }
.booking-summary-line { font-size: .875rem; color: var(--booking-muted); margin-bottom: .85rem; line-height: 1.5; }

/* ── Nav buttons (strip + calendar) ── */
.booking-cal-nav { width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--booking-r-nav); border: 1px solid var(--booking-border); background: #fff; color: var(--booking-muted); display: grid; place-items: center; cursor: pointer; font-size: 1rem; line-height: 1; transition: var(--booking-transition); }
.booking-cal-nav:hover:not(:disabled) { border-color: var(--booking-border-strong); }
.booking-cal-nav:disabled { opacity: .4; cursor: default; }

/* ── Day strip (bordered cards; selected = soft + accent border) ── */
.booking-days-nav { display: flex; align-items: center; gap: 8px; }
.booking-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: 1; }
.booking-day { padding: 10px 2px; border-radius: var(--booking-r-chip); border: 1px solid var(--booking-border); background: #fff; cursor: pointer; transition: var(--booking-transition); text-align: center; }
.booking-day:hover:not(.disabled):not(.active) { border-color: var(--booking-border-strong); }
.booking-day.active { border: 1.5px solid var(--booking-accent); background: var(--booking-accent-soft); }
.booking-day.disabled { opacity: .42; cursor: not-allowed; }
.booking-day-name { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--booking-subtle); }
.booking-day.active .booking-day-name, .booking-day.active .booking-day-num { color: var(--booking-accent-fg); }
.booking-day-num { display: block; font-size: 18px; font-weight: 700; margin: 3px 0 2px; color: var(--booking-fg); }
.booking-day-month { display: block; font-size: 10px; color: var(--booking-subtle); }
.booking-day.today:not(.active) .booking-day-num { color: var(--booking-accent-fg); }

/* ── Time slots (selected = SOLID accent; places ok/warn) ── */
.booking-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.booking-slot { padding: 10px 6px; border-radius: var(--booking-r-chip); border: 1px solid var(--booking-border); background: #fff; cursor: pointer; transition: var(--booking-transition); text-align: center; }
.booking-slot:hover:not(:disabled):not(.active) { border-color: var(--booking-border-strong); }
.booking-slot.active { border: 1.5px solid var(--booking-accent); background: var(--booking-accent); color: #fff; }
.booking-slot:disabled { background: var(--booking-surface-2); color: var(--booking-subtle); cursor: not-allowed; }
.booking-slot-time { display: block; font-size: 14px; font-weight: 650; }
.booking-slot-left { display: block; font-size: 10.5px; margin-top: 3px; font-weight: 500; color: var(--booking-ok); }
.booking-slot-left.low { color: var(--booking-warn); }
.booking-slot.active .booking-slot-left { color: rgba(255, 255, 255, .85); }
.booking-slot:disabled .booking-slot-left { color: var(--booking-subtle); }

/* Selected occurrence topic + spacing before the booking CTA */
.booking-session-title { margin: 16px 0 2px; font-size: 15px; font-weight: 650; color: var(--booking-fg); }
.booking-slot-cta { margin-top: 16px; }

/* ── Groups (radio rows + occupancy bar) ── */
.booking-groups { display: flex; flex-direction: column; gap: 8px; }
.booking-group { display: flex; align-items: center; gap: 14px; padding: 13px 16px; text-align: left; border-radius: var(--booking-r-chip); border: 1px solid var(--booking-border); background: #fff; cursor: pointer; transition: var(--booking-transition); }
.booking-group:hover:not(:disabled):not(.active) { border-color: var(--booking-border-strong); }
.booking-group.active { border: 1.5px solid var(--booking-accent); background: var(--booking-accent-soft); }
.booking-group.full { background: var(--booking-surface-2); cursor: not-allowed; }
.booking-group-radio { width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid var(--booking-border-strong); background: #fff; flex-shrink: 0; box-sizing: border-box; transition: var(--booking-transition); }
.booking-group.active .booking-group-radio { border: 5.5px solid var(--booking-accent); }
.booking-group-body { flex: 1; min-width: 0; }
.booking-group-name { display: block; font-size: 14px; font-weight: 600; color: var(--booking-fg); }
.booking-group.full .booking-group-name { color: var(--booking-subtle); }
.booking-group-occupancy { display: block; font-size: 12px; margin-top: 2px; color: var(--booking-muted); }
.booking-group.active .booking-group-occupancy { color: var(--booking-accent-fg); }
.booking-group.full .booking-group-occupancy { color: var(--booking-subtle); }
.booking-group-bar { width: 64px; height: 5px; border-radius: 99px; background: var(--booking-border); overflow: hidden; flex-shrink: 0; }
.booking-group-bar > span { display: block; height: 100%; background: var(--booking-accent); }
.booking-group.full .booking-group-bar > span { background: var(--booking-warn); }

/* ── Agenda (event rows: date block + details + places pill) ── */
.booking-agenda { display: flex; flex-direction: column; gap: 8px; }
.booking-agenda-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 13px 16px; text-align: left; border-radius: var(--booking-r-chip); border: 1px solid var(--booking-border); background: #fff; cursor: pointer; transition: var(--booking-transition); }
.booking-agenda-row:hover:not(:disabled):not(.active) { border-color: var(--booking-border-strong); }
.booking-agenda-row.active { border: 1.5px solid var(--booking-accent); background: var(--booking-accent-soft); }
.booking-agenda-row:disabled { background: var(--booking-surface-2); cursor: not-allowed; }
.booking-agenda-datebox { width: 48px; text-align: center; border-right: 1px solid var(--booking-border); padding-right: 14px; flex-shrink: 0; }
.booking-agenda-daynum { display: block; font-size: 21px; font-weight: 700; color: var(--booking-fg); }
.booking-agenda-row.active .booking-agenda-daynum { color: var(--booking-accent-fg); }
.booking-agenda-row:disabled .booking-agenda-daynum { color: var(--booking-subtle); }
.booking-agenda-month { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--booking-subtle); }
.booking-agenda-body { flex: 1; min-width: 0; }
.booking-agenda-date { display: block; font-size: 14px; font-weight: 600; text-transform: capitalize; color: var(--booking-fg); }
.booking-agenda-row:disabled .booking-agenda-date { color: var(--booking-subtle); }
.booking-agenda-time { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--booking-muted); margin-top: 3px; }
.booking-agenda-left { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; flex-shrink: 0; background: color-mix(in oklch, var(--booking-ok) 12%, #fff); color: var(--booking-ok); }
.booking-agenda-left.full { background: var(--booking-border); color: var(--booking-subtle); }

/* ── Calendars (nights range + slots month) ── */
.booking-cal { border: 1px solid var(--booking-border); border-radius: var(--booking-r-panel); padding: 18px; background: #fff; }
.booking-cal-head { display: flex; align-items: center; margin-bottom: 14px; }
.booking-cal-month { flex: 1; text-align: center; font-size: 15px; font-weight: 650; text-transform: capitalize; }
.booking-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.booking-cal-dow { text-align: center; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--booking-subtle); padding: 4px 0; }
.booking-cal-day { height: 38px; border: 0; background: transparent; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--booking-fg); cursor: pointer; border-radius: calc(var(--booking-radius) * 0.7); transition: background .12s; position: relative; }
.booking-cal-day:hover:not(:disabled):not(.checkin):not(.checkout):not(.selected) { background: var(--booking-surface-2); }
.booking-cal-day:disabled { color: var(--booking-border-strong); cursor: default; }
.booking-cal-day.disabled { color: var(--booking-border-strong); }
.booking-cal-day.full { color: var(--booking-subtle); opacity: .55; text-decoration: line-through; }
.booking-cal-day.none { opacity: .35; }
/* Range styling: endpoints solid + directional corners, mid squares soft */
.booking-cal-day.checkin, .booking-cal-day.checkout, .booking-cal-day.selected { background: var(--booking-accent); color: #fff; font-weight: 700; }
.booking-cal-day.checkin.has-range { border-radius: calc(var(--booking-radius) * 0.7) 0 0 calc(var(--booking-radius) * 0.7); }
.booking-cal-day.checkout { border-radius: 0 calc(var(--booking-radius) * 0.7) calc(var(--booking-radius) * 0.7) 0; }
.booking-cal-day.in-stay { background: var(--booking-accent-soft); color: var(--booking-accent-fg); border-radius: 0; font-weight: 500; }
/* Availability dots (slots month view) */
.booking-cal-day.avail::after,
.booking-cal-day.low::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--booking-accent); }
.booking-cal-day.low::after { background: var(--booking-warn); }
.booking-cal-day.selected::after { background: #fff; }
/* Footer line inside the calendar */
.booking-cal-hint { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--booking-border); font-size: 13px; color: var(--booking-muted); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 22px; }
.booking-cal-hint strong { color: var(--booking-fg); }
.booking-link-btn { margin-left: auto; border: 0; background: transparent; color: var(--booking-accent-fg); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; }
.booking-cal-legend { display: flex; gap: 1rem; margin-top: 10px; font-size: 11px; color: var(--booking-subtle); }
.booking-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.booking-legend-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--booking-accent); }
.booking-legend-dot.low { background: var(--booking-warn); }
.booking-legend-dash { width: 10px; height: 1.5px; background: var(--booking-subtle); opacity: .6; }
.booking-stay-config { margin-top: 22px; }

/* ── Room type cards ── */
.booking-rooms { display: flex; flex-direction: column; gap: 8px; }
.booking-room { display: flex; gap: 14px; width: 100%; padding: 13px 16px; border: 1px solid var(--booking-border); border-radius: var(--booking-r-chip); background: #fff; cursor: pointer; text-align: left; transition: var(--booking-transition); }
.booking-room:hover:not(:disabled):not(.active) { border-color: var(--booking-border-strong); }
.booking-room.active { border: 1.5px solid var(--booking-accent); background: var(--booking-accent-soft); }
.booking-room.full { background: var(--booking-surface-2); cursor: not-allowed; opacity: .75; }
.booking-room-img { width: 88px; height: 66px; object-fit: cover; border-radius: calc(var(--booking-radius) * 0.45); flex-shrink: 0; border: 1px solid var(--booking-border); }
.booking-room-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.booking-room-name { font-weight: 600; font-size: 14px; }
.booking-room.full .booking-room-name { color: var(--booking-subtle); }
.booking-room-desc { font-size: 12px; color: var(--booking-muted); line-height: 1.4; }
.booking-room-meta { font-size: 11.5px; color: var(--booking-subtle); }
.booking-room-price { font-size: 13.5px; margin-top: 3px; }
.booking-room-price small { color: var(--booking-muted); font-weight: 400; }
.booking-room.active .booking-room-price strong { color: var(--booking-accent-fg); }

/* ── Steppers / counters ── */
.booking-participants { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; font-size: 14px; font-weight: 650; }
.booking-qty { display: inline-flex; align-items: center; border: 1px solid var(--booking-border-strong); border-radius: var(--booking-r-chip); overflow: hidden; background: #fff; }
.booking-qty button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--booking-muted); display: grid; place-items: center; cursor: pointer; font-size: 1.05rem; font-family: inherit; }
.booking-qty button:disabled { opacity: .35; cursor: default; }
.booking-qty span { min-width: 40px; text-align: center; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ── Form (labelled fields) ── */
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: .5rem; }
.booking-field { grid-column: 1 / -1; }
.booking-field.half { grid-column: auto; }
.booking-field label { display: block; font-size: 12px; font-weight: 600; color: var(--booking-muted); margin-bottom: 6px; }
.booking-input { width: 100%; padding: 12px 14px; border: 1px solid var(--booking-border-strong); border-radius: var(--booking-r-chip); font-size: 14.5px; font-family: inherit; background: #fff; color: var(--booking-fg); outline: none; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.booking-input:focus { outline: none; border-color: var(--booking-accent); box-shadow: var(--booking-focus-ring); }
.booking-input::placeholder { color: oklch(0.72 0.008 270); }
.booking-input-invalid { border-color: var(--booking-danger); background: color-mix(in oklch, var(--booking-danger) 4%, #fff); }
.booking-cgv { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 22px; font-size: 13px; color: var(--booking-muted); cursor: pointer; line-height: 1.5; }
.booking-cgv input { margin-top: 2px; accent-color: var(--booking-accent); }

/* ── Attendee identification rows ── */
.booking-attendees { margin: .25rem 0 1rem; display: flex; flex-direction: column; gap: .5rem; }
.booking-attendees-title { font-size: .85rem; font-weight: 600; }
.booking-attendee-row { display: flex; gap: .5rem; }
.booking-attendee-row .booking-input { flex: 1; min-width: 0; }

/* ── Recap panel ── */
.booking-recap { border: 1px solid var(--booking-border); border-radius: var(--booking-r-panel); padding: 16px 18px; background: var(--booking-surface-2); margin-bottom: .9rem; }
.booking-recap-title { font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.booking-recap-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--booking-muted); }
.booking-recap-row span:last-child { color: var(--booking-fg); font-weight: 500; }
.booking-recap-total { display: flex; justify-content: space-between; border-top: 1px solid var(--booking-border); margin-top: 10px; padding-top: 12px; font-size: 15px; font-weight: 700; color: var(--booking-fg); }

/* ── Totals & policy ── */
.booking-total { display: flex; justify-content: space-between; align-items: baseline; font-size: .95rem; padding: .65rem 0; }
.booking-total strong { font-size: 1.1rem; font-weight: 700; }
.booking-total.booking-deposit { color: var(--booking-muted); font-size: .82rem; padding-top: 0; }
.booking-total.booking-deposit strong { font-size: .92rem; color: var(--booking-accent-fg); }
.booking-policy { font-size: .8rem; }
.booking-policy-nr { color: var(--booking-danger); font-weight: 500; }

/* ── Buttons ── */
.booking-actions { display: flex; gap: 10px; margin-top: 22px; }
.booking-actions .booking-btn-primary { margin-left: auto; }
.booking-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: var(--booking-r-btn); font-size: 15px; font-weight: 600; font-family: inherit; line-height: 1.3; cursor: pointer; text-decoration: none; transition: var(--booking-transition); border: 1px solid transparent; }
.booking-btn:disabled { background: var(--booking-border) !important; color: var(--booking-subtle) !important; cursor: not-allowed; pointer-events: none; }
.booking-btn-primary { background: var(--booking-accent); color: #fff; }
.booking-btn-primary:hover:not(:disabled) { background: var(--booking-primary-hover); }
.booking-btn-outline { background: #fff; color: var(--booking-fg); border-color: var(--booking-border-strong); }
.booking-btn-outline:hover:not(:disabled) { border-color: var(--booking-muted); }
.booking-btn-ghost { background: transparent; color: var(--booking-muted); }
.booking-btn-block { width: 100%; }
.booking-show-more { margin-top: .6rem; }
.booking-book-another { margin-top: 0; }

/* ── Payment tabs ── */
.booking-payment-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.booking-payment-tab { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--booking-border); border-radius: var(--booking-r-chip); background: #fff; cursor: pointer; font-size: 14px; font-weight: 500; font-family: inherit; color: var(--booking-muted); transition: var(--booking-transition); }
.booking-payment-tab:hover:not(:disabled):not(.active) { border-color: var(--booking-border-strong); }
.booking-payment-tab.active { border: 1.5px solid var(--booking-accent); background: var(--booking-accent-soft); color: var(--booking-accent-fg); font-weight: 600; }
.booking-payment-tab:disabled { opacity: .5; cursor: not-allowed; }
.booking-payment-icon svg { width: 19px; height: 19px; display: block; }
.booking-payment-content { padding: .35rem 0; }
.booking-payment-mount { margin-bottom: .9rem; }
.booking-redirect-note { font-size: .875rem; color: var(--booking-muted); line-height: 1.5; }
.booking-secure-note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12px; color: var(--booking-subtle); }

/* ── States ── */
.booking-loading { display: flex; justify-content: center; padding: 2.25rem; }
.booking-spinner { width: 28px; height: 28px; border: 2.5px solid var(--booking-border); border-top-color: var(--booking-accent); border-radius: 50%; animation: booking-spin .7s linear infinite; }
@keyframes booking-spin { to { transform: rotate(360deg); } }
.booking-error { padding: .7rem .95rem; border-radius: var(--booking-r-chip); background: color-mix(in oklch, var(--booking-danger) 7%, #fff); border: 1px solid color-mix(in oklch, var(--booking-danger) 25%, transparent); color: var(--booking-danger); font-size: .85rem; margin-bottom: .75rem; }
.booking-empty { padding: 1.25rem; color: var(--booking-muted); font-size: .9rem; text-align: center; background: var(--booking-surface-2); border-radius: var(--booking-r-panel); }

/* ── Success ── */
.booking-success { text-align: center; padding: 6px 0; }
.booking-success-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 999px; background: var(--booking-ok); color: #fff; font-size: 26px; font-weight: 600; display: grid; place-items: center; }
.booking-success h4 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.booking-success p { margin: 0 0 .4rem; color: var(--booking-muted); font-size: 13px; }
.booking-success-ref { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid var(--booking-border); border-radius: var(--booking-r-panel); padding: 18px 26px; margin: 14px 0 18px; }
.booking-success-ref code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--booking-fg); }
.booking-success-ref small { font-size: 12px; color: var(--booking-subtle); }
.booking-success-recap { text-align: left; margin-bottom: 22px; }
.booking-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Waitlist ── */
/* Full but joinable slots: muted, dashed, never the solid-accent of a free slot. */
.booking-slot.full,
.booking-agenda-row[disabled="disabled"],
.booking-cal-day.full:not([disabled]) {
    opacity: .8;
}
.booking-slot.full {
    border-style: dashed;
    color: var(--booking-muted);
}
.booking-waitlist-note {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: baseline;
    margin: .75rem 0;
    padding: .65rem .85rem;
    border-radius: var(--booking-r-chip);
    background: color-mix(in oklch, var(--booking-warn) 9%, #ffffff);
    border: 1px solid color-mix(in oklch, var(--booking-warn) 30%, transparent);
    font-size: .85rem;
    color: color-mix(in oklch, var(--booking-warn) 70%, black);
}
.booking-waitlist-note strong { color: color-mix(in oklch, var(--booking-warn) 80%, black); }
.booking-success-icon.booking-success-wait {
    background: color-mix(in oklch, var(--booking-warn) 14%, #ffffff);
    color: var(--booking-warn);
}
.booking-waitlist-pos {
    font-size: 1rem;
    font-weight: 600;
    margin: .25rem 0;
}

/* ── Editor placeholder ── */
.booking-widget-placeholder { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 2rem 1rem; border: 2px dashed var(--booking-border-strong); border-radius: var(--booking-radius); color: var(--booking-muted); text-align: center; }
.booking-widget-placeholder .placeholder-icon svg { width: 32px; height: 32px; opacity: .55; }

/* ── Date head + segmented view toggle (Jours / Mois / Agenda) ── */
.booking-datehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.booking-datehead .booking-step-title { margin: 0; }
.booking-viewtabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--booking-r-chip); background: var(--booking-surface-2); border: 1px solid var(--booking-border); }
.booking-viewtabs button { border: 0; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--booking-muted); padding: 6px 14px; border-radius: calc(var(--booking-r-chip) * 0.8); cursor: pointer; transition: var(--booking-transition); line-height: 1.2; }
.booking-viewtabs button:hover:not(.active) { color: var(--booking-fg); }
.booking-viewtabs button.active { background: #fff; color: var(--booking-fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Day-strip availability dot (accent = available, warn = almost full) */
.booking-day-dot { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 4px auto 0; background: var(--booking-accent); }
.booking-day-dot.low { background: var(--booking-warn); }
.booking-day.active .booking-day-dot { background: var(--booking-accent-fg); }

/* ── Séance rows (time | body | chevron) ── */
.booking-seances { display: flex; flex-direction: column; gap: 8px; }
.booking-seance { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; width: 100%; padding: 13px 16px; text-align: left; border-radius: var(--booking-r-chip); border: 1px solid var(--booking-border); background: #fff; cursor: pointer; transition: var(--booking-transition); font-family: inherit; }
.booking-seance:hover:not(:disabled):not(.active) { border-color: var(--booking-border-strong); }
.booking-seance.active { border: 1.5px solid var(--booking-accent); background: var(--booking-accent-soft); }
.booking-seance:disabled { background: var(--booking-surface-2); cursor: not-allowed; }
.booking-seance.full { border-style: dashed; }
.booking-seance-time { display: flex; flex-direction: column; align-items: flex-start; padding-right: 16px; border-right: 1px solid var(--booking-border); min-width: 52px; }
.booking-seance-start { font-size: 16px; font-weight: 700; color: var(--booking-fg); line-height: 1.15; }
.booking-seance.active .booking-seance-start { color: var(--booking-accent-fg); }
.booking-seance:disabled .booking-seance-start { color: var(--booking-subtle); }
.booking-seance-end { font-size: 11.5px; color: var(--booking-subtle); }
.booking-seance-date { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--booking-accent-fg); margin-bottom: 2px; }
.booking-seance-body { min-width: 0; }
.booking-seance-title { display: block; font-size: 14px; font-weight: 600; color: var(--booking-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-seance:disabled .booking-seance-title { color: var(--booking-subtle); }
.booking-seance-sub { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--booking-muted); margin-top: 3px; }
.booking-seance-sub svg { flex-shrink: 0; opacity: .8; }
.booking-seance-chevron { font-size: 20px; line-height: 1; color: var(--booking-subtle); flex-shrink: 0; transition: var(--booking-transition); }
.booking-seance:hover:not(:disabled) .booking-seance-chevron { color: var(--booking-muted); }
.booking-seance.active .booking-seance-chevron { color: var(--booking-accent-fg); }

/* ── Persistent continue CTA ── */
.booking-continue { width: 100%; margin-top: 22px; }
.booking-continue:disabled { background: var(--booking-border) !important; color: var(--booking-subtle) !important; cursor: not-allowed; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .booking-widget { padding: 22px 18px 24px; }
    .booking-widget.booking-horizontal .booking-body { grid-template-columns: 1fr; }
    .booking-event-info { flex-direction: column; gap: .75rem; }
    .booking-event-image { width: 100%; height: 150px; }
    .booking-form { grid-template-columns: 1fr; }
    .booking-field.half { grid-column: 1 / -1; }
    .booking-datehead { align-items: flex-start; }
    .booking-viewtabs { width: 100%; }
    .booking-viewtabs button { flex: 1; text-align: center; }
}
@media (max-width: 560px) {
    .booking-widget { padding: 22px 18px 24px; }
}
@media (max-width: 480px) {
    .booking-slots { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }
    .booking-actions { flex-direction: column; }
    .booking-actions .booking-btn-primary { margin-left: 0; }
    .booking-steps li span:last-child { display: none; }
    .booking-steps li.active span:last-child { display: inline; }
}
