/* Public pages inherit .wrap from the website; only private management pages
   need their own container. Keep the site's width, spacing and theme intact. */
.booking-wrap { box-sizing: border-box; width: 100%; max-width: 760px; margin: 28px auto; padding: 0 24px; }
.booking { color: var(--fg, #1f1f1f); font-family: var(--font-body, inherit); line-height: 1.55; overflow-wrap: anywhere; }
.booking *, .booking *::before, .booking *::after { box-sizing: border-box; }
.booking [hidden] { display: none !important; }
.booking-card { min-width: 0; border: 1px solid var(--border2, #e3e2dd); border-radius: 24px; background: var(--card, #fff); padding: 32px; margin: 0; }
.booking h1, .booking h2, .booking h3, .booking h4 { font-family: var(--font-head, inherit); color: var(--fg, #1f1f1f); }
.booking h1 { font-size: clamp(25px, 4vw, 36px); line-height: 1.2; letter-spacing: -.03em; margin: 0 0 12px; }
.booking h2 { font-size: 20px; line-height: 1.35; letter-spacing: -.02em; margin: 0 0 16px; }
.booking .booking-title { font-size: clamp(24px, 4vw, 30px); line-height: 1.25; letter-spacing: -.03em; margin: 0 0 10px; }
.booking h3 { font-size: 16px; line-height: 1.4; margin: 0; }
.booking p { margin: 12px 0; }
.booking-header { max-width: 680px; }
.booking-desc { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--body, #4a4a46); font-size: 15px; }
.booking-meta { font-size: 14px; color: var(--muted, #6b6b66); }
.booking-header .booking-meta { margin: 0; }
.booking-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #6b6b66); margin: 0 0 10px; }
.booking-steps { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; counter-reset: booking-step; padding: 20px 0; margin: 24px 0; border-top: 1px solid var(--border, #ecebe7); border-bottom: 1px solid var(--border, #ecebe7); }
.booking-steps li { counter-increment: booking-step; display: flex; align-items: center; gap: 8px; color: var(--muted, #6b6b66); font-size: 13px; font-weight: 600; }
.booking-steps li::before { content: counter(booking-step); display: inline-flex; flex: 0 0 26px; justify-content: center; align-items: center; width: 26px; height: 26px; border: 1px solid var(--border2, #e3e2dd); border-radius: 50%; color: var(--muted, #6b6b66); font-size: 12px; font-variant-numeric: tabular-nums; }
.booking-steps li.is-current { color: var(--fg, #1f1f1f); font-weight: 800; }
.booking-steps li.is-current::before { color: var(--on-dark, #fff); background: var(--dark, #1f1f1f); border-color: var(--dark, #1f1f1f); }
.booking-steps li.is-complete::before { content: '✓'; color: var(--fg, #1f1f1f); background: var(--bg, #f4f3f0); }
.booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.booking-field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 700; margin: 16px 0; min-width: 0; }
.booking-field input, .booking-field select, .booking-field textarea { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border2, #e3e2dd); border-radius: 10px; background: var(--card, #fff); color: var(--fg, #1f1f1f); font: inherit; font-size: 16px; font-weight: 500; }
.booking-field input:hover, .booking-field select:hover, .booking-field textarea:hover { border-color: var(--muted, #6b6b66); }
/* Draw input focus over the existing border, without a second outer frame. */
.booking-field input:focus-visible, .booking-field select:focus-visible, .booking-field textarea:focus-visible { border-color: var(--fg, #1f1f1f); outline: 2px solid var(--fg, #1f1f1f); outline-offset: -2px; }
.booking button:focus-visible, .booking a:focus-visible { outline: 2px solid var(--fg, #1f1f1f); outline-offset: 3px; }
.booking-field textarea { resize: vertical; }
.booking-help { font-size: 13px; color: var(--muted, #6b6b66); font-weight: 500; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.booking-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 1px solid var(--border2, #e3e2dd); border-radius: 10px; padding: 10px 16px; background: var(--card, #fff); color: var(--fg, #1f1f1f); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; text-align: center; }
.booking-button:hover:not(:disabled) { border-color: var(--fg, #1f1f1f); background: var(--bg, #f4f3f0); }
.booking-button--primary, .booking-button[aria-pressed=true] { background: var(--dark, #1f1f1f); border-color: var(--dark, #1f1f1f); color: var(--on-dark, #fff); }
.booking-button--primary:hover:not(:disabled), .booking-button[aria-pressed=true]:hover:not(:disabled) { background: var(--dark2, #2c2c2a); border-color: var(--dark2, #2c2c2a); color: var(--on-dark, #fff); }
.booking-button--danger { background: #a32626; border-color: #a32626; color: #fff; }
.booking-button--danger:hover:not(:disabled) { background: #862020; border-color: #862020; color: #fff; }
.booking-button:disabled { opacity: .5; cursor: default; }
.booking-picker { margin-top: 24px; }
.booking-picker-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.booking-calendar { min-width: 0; }
.booking-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.booking-calendar-head h3 { flex: 1; min-width: 0; text-align: center; }
.booking-calendar-head .booking-button { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 8px; font-size: 18px; }
.booking-calendar-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; margin: 0; text-align: center; }
.booking-calendar-grid th { color: var(--muted, #6b6b66); font-size: 11px; font-weight: 600; padding: 0 0 8px; text-align: center; }
.booking-calendar-grid td { padding: 0; vertical-align: middle; }
.booking-calendar-grid .is-outside span { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--muted, #6b6b66); opacity: .4; font-size: 14px; font-variant-numeric: tabular-nums; }
.booking-day { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: 6px 0 9px; background: transparent; color: var(--fg, #1f1f1f); font: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.booking-day.is-available { background: var(--bg, #f4f3f0); font-weight: 800; }
.booking-day.is-available::after { content: ''; position: absolute; bottom: 5px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.booking-day[aria-current=date] { box-shadow: inset 0 0 0 1px var(--muted, #6b6b66); }
.booking-day:hover:not(:disabled):not([aria-disabled=true]) { border-color: var(--fg, #1f1f1f); }
.booking-day:disabled, .booking-day[aria-disabled=true] { color: var(--muted, #6b6b66); cursor: default; font-weight: 400; }
.booking-day:disabled, .booking-day.is-outside { opacity: .4; }
.booking-day[aria-pressed=true] { color: var(--on-dark, #fff); background: var(--dark, #1f1f1f); font-weight: 800; box-shadow: none; }
.booking-calendar-legend { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--muted, #6b6b66); font-size: 12px; }
.booking-day-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--fg, #1f1f1f); }
.booking-timezone { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border, #ecebe7); }
.booking-field.booking-timezone { margin-bottom: 0; }
.booking-zone-control { position: relative; min-width: 0; }
.booking-field .booking-zone-input { padding-right: 46px; }
.booking-zone-input::placeholder { color: var(--muted, #6b6b66); font-size: 13px; }
.booking-zone-control .booking-zone-toggle { position: absolute; top: 1px; right: 1px; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted, #6b6b66); font-size: 18px; cursor: pointer; }
.booking-zone-popup { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; border: 1px solid var(--border2, #e3e2dd); border-radius: 14px; background: var(--card, #fff); box-shadow: 0 14px 36px rgba(0, 0, 0, .14); }
.booking-zone-popup.is-above { top: auto; bottom: calc(100% + 6px); }
.booking-zone-options { position: relative; list-style: none; padding: 0; margin: 0; max-height: 250px; max-height: min(250px, 38dvh, var(--booking-zone-list-height, 250px)); overflow-y: auto; overscroll-behavior: contain; }
.booking-zone-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 9px 10px; border-radius: 8px; color: var(--fg, #1f1f1f); cursor: pointer; }
.booking-zone-option.is-active { background: var(--bg, #f4f3f0); outline: 1px solid var(--fg, #1f1f1f); outline-offset: -1px; }
.booking-zone-place { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.booking-zone-place strong { font-size: 14px; font-weight: 700; }
.booking-zone-place small { font-size: 11px; font-weight: 500; color: var(--muted, #6b6b66); }
.booking-zone-offset { flex: none; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.booking .booking-zone-results { margin: 6px 0 0; padding: 8px 6px 3px; border-top: 1px solid var(--border, #ecebe7); color: var(--muted, #6b6b66); font-size: 11px; font-weight: 500; line-height: 1.6; }
.booking .booking-zone-help { margin: 0; color: var(--muted, #6b6b66); font-size: 12px; font-weight: 500; line-height: 1.6; }
.booking-zone-help span { display: block; overflow-wrap: anywhere; }
.booking .booking-zone-browser { align-self: flex-start; min-height: 44px; padding: 5px 0; background: transparent; border: 0; border-radius: 2px; color: var(--fg, #1f1f1f); font-size: 12px; line-height: 1.5; text-align: left; justify-content: flex-start; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.booking-zone-toggle:disabled, .booking-zone-browser:disabled { opacity: .5; cursor: default; }
.booking-times { min-width: 0; border-left: 1px solid var(--border, #ecebe7); padding-left: 20px; }
.booking .booking-times-header { min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 3px; margin-bottom: 14px; }
.booking .booking-availability-count { color: var(--muted, #6b6b66); font-size: 12px; line-height: 1.6; margin: 0 0 14px; }
.booking-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.booking-time-filters { display: flex; align-items: stretch; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--border, #ecebe7); border-radius: 12px; background: var(--bg, #f4f3f0); }
.booking-time-filter { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 4px; border-color: transparent; border-radius: 8px; background: transparent; font-size: 12px; line-height: 1.45; flex-wrap: wrap; gap: 2px 4px; }
.booking-time-filter-count { font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 500; opacity: .8; }
.booking-time-group { min-width: 0; }
.booking-time-group h4 { font-size: 12px; font-weight: 600; color: var(--muted, #6b6b66); margin: 0 0 10px; }
.booking-time-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.booking .booking-time-range { grid-column: 1 / -1; grid-row: 1; color: var(--muted, #6b6b66); font-size: 12px; text-align: center; margin: 0; }
.booking-time-pagination .booking-button { min-width: 0; min-height: 44px; padding: 8px; font-size: 12px; }
.booking-slot { width: 100%; min-width: 0; padding: 10px 6px; font-variant-numeric: tabular-nums; }
.booking-progress { min-height: 22px; margin: 10px 0 0; color: var(--body, #4a4a46); font-size: 13px; }
.booking-empty { border: 1px solid var(--border, #ecebe7); border-radius: 14px; background: var(--bg, #f4f3f0); padding: 20px; }
.booking-empty h3, .booking-empty h4 { margin: 0 0 8px; color: var(--fg, #1f1f1f); font-size: 15px; }
.booking-empty p { margin: 8px 0 14px; color: var(--body, #4a4a46); font-size: 14px; }
.booking-empty .booking-button { width: 100%; }
.booking-selection { display: flex; flex-direction: column; gap: 3px; margin-top: 24px; padding: 16px 18px; border: 1px solid var(--border2, #e3e2dd); border-radius: 12px; background: var(--bg, #f4f3f0); font-size: 14px; }
.booking-selection strong, .booking-selection span { display: block; }
.booking-selection span { color: var(--body, #4a4a46); font-size: 13px; }
.booking-notice { padding: 14px 16px; border: 1px solid var(--border2, #e3e2dd); border-radius: 10px; background: var(--bg, #f4f3f0); font-size: 14px; }
.booking-error { border-color: var(--red, #b4553f); color: var(--fg, #1f1f1f); }
.booking-summary { padding: 16px 18px; border-left: 3px solid var(--dark, #1f1f1f); border-radius: 0 10px 10px 0; background: var(--bg, #f4f3f0); margin: 20px 0; }
.booking-summary p { margin: 3px 0; }
.booking-summary .booking-meta { color: var(--body, #4a4a46); }
.booking-code { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.booking-status { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 6px 10px; background: var(--bg, #f4f3f0); margin-bottom: 14px; }
.booking-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.booking-dates { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.booking .booking-private { font-size: 12px; color: var(--muted, #6b6b66); overflow-wrap: anywhere; margin-top: 24px; }
@media (max-width: 720px) {
  .booking-wrap { margin: 20px auto; padding: 0 16px; }
  .booking-card { padding: 24px; }
  .booking-picker-layout { grid-template-columns: 1fr; gap: 24px; }
  .booking-times { border-left: 0; border-top: 1px solid var(--border, #ecebe7); padding: 20px 0 0; }
  .booking-calendar-grid { border-spacing: 4px; }
  .booking-day, .booking-calendar-grid .is-outside span { min-height: 48px; }
  .booking-steps { gap: 12px 18px; }
}
@media (max-width: 420px) {
  .booking-wrap { margin: 16px auto; padding: 0 14px; }
  .booking-card { padding: 20px 16px; border-radius: 18px; }
  .booking-steps { justify-content: space-between; gap: 12px 8px; margin: 20px 0; padding: 16px 0; }
  .booking-steps li { flex-direction: column; gap: 5px; font-size: 11px; }
  .booking-grid { grid-template-columns: 1fr; gap: 0; }
  .booking-calendar-grid { border-spacing: 2px 4px; }
  .booking-day { min-height: 44px; border-radius: 8px; }
  .booking-calendar-grid .is-outside span { min-height: 44px; }
  .booking-actions > * { flex: 1 1 auto; }
  .booking-empty { padding: 16px; }
}
