/* Desktop enhancement only: native mobile inputs never receive this wrapper. */
.booking-date-control { min-width: 0; }
.booking-date-control input[hidden] { display: none; }
.booking-date-trigger { display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: stretch; width: 100%; min-height: 58px; padding: 0; border: 1px solid #bac5b3; border-radius: 10px; background: #fafaf6; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.6; text-align: start; }
.booking-date-value { display: flex; align-content: center; align-items: center; flex-wrap: wrap; gap: 2px 10px; min-width: 0; padding: 13px 10px; overflow-wrap: anywhere; }
.booking-date-value > span { min-width: 0; }
.booking-date-time { white-space: nowrap; }
.booking-date-trigger.is-empty .booking-date-value { color: var(--muted); }
.booking-date-icon { display: grid; place-items: center; min-width: 0; border-left: 1px solid #bac5b3; border-radius: 0 9px 9px 0; background: #edf1e8; color: #34482a; }
.booking-date-trigger:hover { border-color: #67785c; }
.booking-date-trigger:hover .booking-date-icon { background: #e0e8d8; }
.booking-date-trigger:focus-visible { outline: 2px solid #49643c; outline-offset: 2px; }
.booking-date-trigger[aria-invalid="true"] { border-color: #a23d26; }
body.booking-calendar-open { overflow: hidden; }
.booking-calendar { width: min(32rem, calc(100% - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font: 400 1rem/1.5 var(--font); box-shadow: 0 24px 80px #101c1940; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 8px var(--calendar-footer-space, 90px); }
.booking-calendar[open] { display: block; }
.booking-calendar::backdrop { background: #10191280; }
.booking-calendar-header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.booking-calendar-header > div { min-width: 0; }
.booking-calendar-header h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.booking-calendar-header p { margin-top: 5px; font-size: .8125rem; }
.booking-calendar-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; min-height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #f8f9f6; font-size: 1.75rem; line-height: 1; }
.booking-calendar-icon:disabled { opacity: .35; cursor: default; }
.booking-calendar-icon:enabled:hover { background: #e9eee3; }
.booking-calendar-body { padding: 18px 20px; container-type: inline-size; }
.booking-calendar-month { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.booking-calendar-month-fields { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.booking-calendar select, .booking-calendar input { min-width: 0; width: 100%; min-height: 44px; padding: 8px; border: 1px solid #bac5b3; border-radius: 7px; background: #fafbf6; color: var(--ink); font: inherit; }
.booking-calendar-month-fields select { flex: 1 1 6.5em; width: 6.5em; max-width: 100%; }
.booking-calendar-month-fields input { flex: 1 1 4.3em; width: 4.3em; max-width: 100%; }
.booking-calendar input[data-year] { appearance: textfield; }
.booking-calendar input[data-year]::-webkit-inner-spin-button, .booking-calendar input[data-year]::-webkit-outer-spin-button { appearance: none; margin: 0; }
.booking-calendar :is(button, input, select):focus-visible { outline: 2px solid #49643c; outline-offset: 2px; }
.booking-calendar-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 3px; }
.booking-calendar-grid th { padding: 0 0 7px; color: var(--muted); font-size: min(.8125rem, 5.5cqi); font-weight: 500; white-space: nowrap; }
.booking-calendar-grid td { padding: 0; text-align: center; }
.booking-calendar-grid button { display: block; width: 100%; min-width: 0; min-height: 40px; padding: 5px 0; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: min(1rem, 9cqi); line-height: 1.5; font-variant-numeric: tabular-nums; scroll-margin-block: 4px; }
.booking-calendar-grid button.is-other-month { color: var(--muted); }
.booking-calendar-grid button[aria-current="date"] { border-color: #78896b; }
.booking-calendar-grid button:enabled:hover { background: #e9eee3; }
.booking-calendar-grid [aria-selected="true"] button { background: #34482a; color: #fff; border-color: #34482a; font-weight: 700; }
.booking-calendar-grid [aria-selected="true"] button:enabled:hover { background: #49643c; }
.booking-calendar-grid button:disabled { color: #9ba195; background: #f4f5f1; cursor: default; }
.booking-calendar-selection { margin-top: 12px; color: #34482a; font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.booking-calendar-time { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; margin-top: 14px; }
.booking-calendar-time label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; font-size: min(.875rem, 10cqi); font-weight: 600; overflow-wrap: anywhere; }
.booking-calendar-time select { font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.booking-calendar-time > span { align-self: end; padding-bottom: 10px; }
.booking-calendar-error { margin-top: 12px; padding: 10px; border: 1px solid #d9a494; border-radius: 7px; background: #fff4ef; color: #8b301e; font-size: .875rem; overflow-wrap: anywhere; }
.booking-calendar-error[hidden] { display: none; }
.booking-calendar-footer { position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--line); background: #f8f9f6; }
.booking-calendar-footer button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; max-width: 100%; padding: 11px 20px; border: 1px solid #bac5b3; border-radius: 8px; font-size: .9375rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.booking-calendar-clear { background: #fff; }
.booking-calendar-clear:hover { background: #e9eee3; }
.booking-calendar-footer .booking-calendar-confirm { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.booking-calendar-confirm:hover { background: #ef9571; }
.booking-calendar-confirm > span { flex-shrink: 0; font-size: 18px; }
.booking-calendar-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Give long month names the full row when space is tight or text is enlarged. */
@container (max-width: 16em) {
  .booking-calendar-month { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .booking-calendar-month-fields { grid-column: 1 / -1; grid-row: 2; }
  .booking-calendar-month [data-next] { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (max-width: 380px) {
  .booking-calendar-header, .booking-calendar-footer { padding: 12px; }
  .booking-calendar-body { padding: 12px 9px; }
  .booking-calendar-month { gap: 4px; }
  .booking-calendar-icon { width: 32px; }
  .booking-calendar-month-fields { gap: 4px; }
  .booking-calendar select, .booking-calendar input { padding-inline: 4px; }
  .booking-calendar-footer button { flex: 1 1 auto; padding-inline: 10px; }
}
@media (max-height: 450px) {
  .booking-calendar-header, .booking-calendar-footer { padding-block: 8px; }
  .booking-calendar-header h2 { font-size: 1.125rem; }
  .booking-calendar-header p { margin-top: 2px; }
  .booking-calendar-footer button { padding-block: 8px; }
}
