/* Booking controls keep the time, status and radio in separate grid cells. */
.booking-page fieldset { min-width: 0; }
.booking-page .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.booking-page .slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-content: start;
    align-items: start;
    gap: 4px 10px;
    min-width: 0;
    min-height: 82px;
    padding: 12px 14px;
    text-align: left;
    border-radius: 4px;
    box-shadow: none;
}
.booking-page .slot > input {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 22px;
    height: 22px;
    margin: 3px 0 0;
    padding: 0;
    accent-color: var(--forest);
}
.booking-page .slot-time {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    white-space: nowrap;
}
.booking-page .slot > .slot-status {
    display: block;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--forest);
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}
.booking-page .slot:has(input:checked:not(:disabled)) {
    outline: none;
    border-color: var(--forest);
    background: var(--forest);
    box-shadow: none;
}
.booking-page .slot:has(input:checked:not(:disabled)) > .slot-time,
.booking-page .slot:has(input:checked:not(:disabled)) > .slot-status { color: white; }
.booking-page .slot:has(input:checked:not(:disabled)) > input { accent-color: white; }
.booking-page .slot:has(input:focus-visible),
.booking-page .choice:has(input:focus-visible),
.booking-page .booking-optional > summary:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
.booking-page .slot.unavailable {
    opacity: 1;
    background: #eeefeb;
    border-color: var(--line);
}
.booking-page .slot.unavailable > .slot-time,
.booking-page .slot.unavailable > .slot-status { color: var(--muted); }
.booking-page .slot.own-hold,
.booking-page .slot.own-payment-hold { border-color: var(--gold); background: #fff8eb; cursor: default; }
.booking-page .slot.own-hold > .slot-status,
.booking-page .slot.own-payment-hold > .slot-status { color: #744800; }
.booking-page .slot-hold-actions { grid-column: 1 / -1; margin-top: 8px; }
.booking-page .slot-hold-actions .button { min-height: 44px; }

.booking-page .choice {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 12px;
    min-width: 0;
    min-height: 80px;
    border-radius: 4px;
}
.booking-page .choice > input { width: 22px; height: 22px; margin: 0; padding: 0; accent-color: var(--forest); }
.booking-page .choice > span { min-width: 0; overflow-wrap: anywhere; }
.booking-page .choice small { margin-top: 3px; font-size: .875rem; line-height: 1.4; }
.booking-page .choice > strong { margin: 0; }
.booking-page .choice:has(input:checked:not(:disabled)) { border-color: var(--forest); background: #edf3ec; }
.booking-page .choice[hidden] { display: none; }

.booking-page .booking-optional { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: white; }
.booking-page .booking-optional > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 12px 16px;
    list-style: none;
    cursor: pointer;
}
.booking-page .booking-optional > summary::-webkit-details-marker { display: none; }
.booking-page .booking-optional > summary small { display: block; color: var(--muted); font-size: .875rem; }
.booking-page .booking-optional > summary::after {
    content: '';
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-right: 3px;
    border-right: 2px solid var(--forest);
    border-bottom: 2px solid var(--forest);
    transform: rotate(45deg);
}
.booking-page .booking-optional[open] > summary::after { transform: rotate(225deg); }
.booking-page .booking-optional-fields { display: grid; gap: 16px; padding: 4px 16px 16px; }
.booking-page .booking-optional-fields input,
.booking-page .booking-optional-fields textarea { min-width: 0; max-width: 100%; font-size: 1rem; }
.booking-page .booking-optional-fields textarea { resize: vertical; }

/* This rail stays visible on iOS, where native scrollbars fade away. */
.booking-page .setup-shortcut-list[data-scroll-enhanced] { scrollbar-width: none; }
.booking-page .setup-shortcut-list[data-scroll-enhanced]::-webkit-scrollbar { display: none; }
.booking-page .shortcut-scroll-track:not([hidden]) { display: block; height: 5px; margin: 0 2px; overflow: hidden; border-radius: 999px; background: var(--line); }
.booking-page .shortcut-scroll-track > span { display: block; height: 100%; border-radius: inherit; background: var(--forest); }
.booking-page .shortcut-scroll-hint[hidden] { display: none; }

@media (max-width: 760px) {
    .site-header .header-book,
    .site-menu > summary { min-width: 44px; min-height: 44px; }
    .booking-page { padding: 28px 16px 40px; }
    .booking-page > .eyebrow { margin: 0 0 8px; }
    .booking-page h1 { font-size: clamp(2.25rem, 10vw, 2.75rem); line-height: 1; }
    .booking-page > .lead { margin: 14px 0 0; font-size: 1rem; }
    .booking-page .programme-shortcuts { margin: 24px 0; }
    .booking-page .shortcut-heading { margin-bottom: 10px; }
    .booking-page .setup-shortcut { flex-basis: min(190px, 62%); min-height: 136px; padding: 12px; }
    .booking-page .setup-shortcut strong { line-height: 1.35; }
    .booking-page .setup-shortcut small { font-size: .8125rem; }
    .booking-page .shortcut-scroll-hint { margin: 7px 2px 0; font-size: .8125rem; font-weight: 500; }
    .booking-page .availability-search { gap: 14px; margin: 22px 0 14px; padding: 16px; border-top-width: 1px; box-shadow: none; }
    .booking-page .availability-search-copy,
    .booking-page .booking-step-heading { gap: 12px; }
    .booking-page .step-number { width: 36px; height: 36px; font-size: 1rem; }
    .booking-page .availability-search-copy h2,
    .booking-page .booking-step-heading h2 { font-size: 1.6rem; }
    .booking-page .date-search label > span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .booking-page .date-search input[type="date"],
    .booking-page .date-search .button { min-height: 48px; font-size: 1rem; }
    .booking-page .selected-programme { gap: 10px; padding: 16px; }
    .booking-page .selected-programme-copy { gap: 10px; min-width: 0; }
    .booking-page .selected-programme-copy > div { min-width: 0; overflow-wrap: anywhere; }
    .booking-page .selected-programme .eyebrow { margin: 0 0 5px; font-size: .6875rem; letter-spacing: .1em; }
    .booking-page .selected-programme h2 { font-size: 1.3rem; line-height: 1.2; }
    .booking-page .selected-programme-copy p:last-child { font-size: .9375rem; }
    .booking-page .selected-programme-meta { gap: 8px; }
    .booking-page .selected-programme-meta > .date-badge { padding: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: .8125rem; font-weight: 500; }
    .booking-page .date-badge + .date-badge::before { content: '·'; margin-right: 8px; }
    .booking-page .booking-form { gap: 22px; padding: 22px 16px; border-top: 1px solid var(--line); box-shadow: none; }
    .booking-page .slot-fieldset > legend { margin-bottom: 12px; font-size: .9375rem; font-weight: 500; }
    .booking-page .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .booking-page .slot { min-height: 82px; padding: 12px; }
    .booking-page .choice { padding: 14px 12px; gap: 10px; }
    .booking-page .booking-form > .button { min-height: 52px; }
}

@media (max-width: 360px) {
    .booking-page .booking-form { padding-inline: 12px; }
    .booking-page .slot { padding: 10px; column-gap: 6px; }
    .booking-page .slot-time { font-size: 1.375rem; }
    .booking-page .choice { grid-template-columns: 22px minmax(0, 1fr); }
    .booking-page .choice > strong { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
    .booking-page .slot,
    .booking-page .setup-shortcut { transition: none; }
}
