.reservation-page { background: #fffbe0; color: #312e2e; }
.reservation { padding: 22px 3.4vw 36px; }
.reservation-title { margin: 0 0 42px; font-family: var(--font-melodrama); font-size: clamp(48px, 8.65vw, 227px); font-weight: 400; line-height: 1.14; text-align: left; text-transform: uppercase; letter-spacing: -.015em; }
.reservation-form { display: grid; grid-template-columns: 43% 51%; grid-template-areas: 'calendar details' 'options submit' '. privacy'; justify-content: space-between; gap: 26px 0; font-family: var(--font-inter); font-weight: 300; }
.reservation-calendar { grid-area: calendar; min-width: 0; padding: 0 0 0 10px; }
.calendar-heading { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 22px; }
.calendar-heading h2 { position: relative; margin: 0; min-width: 190px; text-align: center; font: 400 clamp(18px, 1.53vw, 29px)/1.2 var(--font-bodoni-72); text-transform: uppercase; }
.calendar-heading button { width: 40px; height: 40px; border: 0; background: transparent; color: inherit; font-size: 29px; cursor: pointer; }
.calendar-heading button:disabled { opacity: .25; cursor: default; }
.calendar-days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: auto; aspect-ratio: .72; padding: 4px 2px; background: transparent; color: inherit; border: 1px solid #605c50; border-radius: 10px; font: 300 clamp(24px, 2.635vw, 28px)/1 var(--font-inter); cursor: pointer; }
.calendar-day:disabled { opacity: .32; cursor: not-allowed; }
.calendar-day:not(:disabled):hover { background: #f8e9bc; }
.calendar-day[aria-pressed='true'] { background: #f68100; color: #231e18; border-color: #231e18; }
.date-feedback { min-height: 18px; margin: 10px 0 0; font-size: 12px; visibility: hidden; }
.reservation-options { grid-area: options; display: grid; gap: 10px; align-content: start; }
.reservation-details { grid-area: details; display: grid; grid-template-rows: repeat(4, auto) 1fr; gap: 16px; padding-top: 14px; }
.reservation-control { display: block; min-width: 0; }
.reservation-control input, .reservation-control select, .reservation-control textarea { box-sizing: border-box; display: block; width: 100%; min-width: 0; min-height: 40px; padding: 6px 13px; border: 1px solid #605c50; border-radius: 8px; background: transparent; color: inherit; font: 300 clamp(16px, 1.445vw, 22px)/1.3 var(--font-inter); }
.reservation-control input::placeholder, .reservation-control textarea::placeholder { color: inherit; opacity: 1; }
.reservation-control select { appearance: none; padding-right: 42px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Cpath d='m2 3 7 7 7-7' fill='none' stroke='%23312e2e'/%3E%3C/svg%3E") no-repeat right 15px center; }
.reservation-control option { background: #fffbe0; }
.reservation-notes textarea { height: clamp(90px, 12.5vh, 125px); min-height: 90px; resize: none; }
.reservation-submit { grid-area: submit; align-self: start; }
.reservation-submit button { display: flex; justify-content: space-between; align-items: center; gap: 40px; width: min(100%, 272px); padding: 10px 15px; border: 1px solid #312e2e; border-radius: 10px; background: #312e2e; color: #faf8f0; cursor: pointer; font: 400 20.4px/1.2 var(--font-cabin-condensed); text-transform: uppercase; }
.reservation-submit button:hover { background: #4a443a; }
.reservation-submit button:disabled { opacity: .6; cursor: wait; }
.reservation-submit svg { width: 29px; height: 24px; }
#reservation-status { max-width: 490px; margin: 0 0 12px; font-size: 13.8px; line-height: 1.4; }
#reservation-status:empty { display: none; }
#reservation-status[data-state='error'] { color: #8b251b; }
#reservation-status[data-state='success'] { color: #28562d; font-style: italic; }
.reservation-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; font-size: clamp(14px, 1.3175vw, 18px); line-height: 1.3; cursor: pointer; }
.reservation-check input { appearance: none; flex: 0 0 21px; height: 21px; margin: 2px 0 0; border: 1px solid #312e2e; border-radius: 5px; cursor: pointer; }
.reservation-check input:checked { appearance: auto; accent-color: #f68100; }
.reservation-privacy { grid-area: privacy; justify-self: end; justify-content: flex-end; text-align: right; max-width: 100%; }
.reservation-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.reservation :focus-visible { outline: 2px solid #b84e00; outline-offset: 4px; }
.reservation-skip { position: fixed; left: 12px; top: -100px; z-index: 10; padding: 12px; background: #fffbe0; color: inherit; }
.reservation-skip:focus { top: 12px; }
@media (max-width: 1000px) {
  .reservation-title { margin-bottom: 30px; }
  .calendar-days { gap: 8px; }
  .reservation-form { grid-template-columns: 45% 51%; }
  .calendar-day { min-height: 44px; }
}
@media (max-width: 700px) {
  .reservation { padding: 25px 20px 36px; }
  .reservation-title { font-size: clamp(45px, 11vw, 76px); line-height: 1.02; letter-spacing: -.04em; }
  .reservation-form { grid-template-columns: 1fr; grid-template-areas: 'calendar' 'options' 'details' 'privacy' 'submit'; gap: 22px; }
  .reservation-calendar { padding: 0; }
  .calendar-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .calendar-day { font-size: clamp(24px, 6vw, 28px); border-radius: 7px; }
  .reservation-details { padding: 0; gap: 12px; }
  .reservation-notes textarea { height: 110px; min-height: 110px; }
  .reservation-privacy { justify-self: end; }
  .reservation-check { margin: 0; justify-self: start; }
  .reservation-submit button { width: 100%; }
}

/* Desktop: la griglia distribuisce lo spazio disponibile, senza tagliare il modulo. */
@media (min-width: 701px) {
  .reservation {
    box-sizing: border-box;
    height: calc(100svh - var(--header-height));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(8px, 1.5vh, 18px);
    padding: 12px 3.4vw 18px;
  }
  .reservation-title { margin: 0; line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
  .reservation-form { min-height: 0; grid-template-rows: minmax(0, 1fr) auto auto; gap: clamp(10px, 1.7vh, 18px) 0; }
  .reservation-calendar { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding-left: 0; }
  .calendar-heading { width: 100%; margin: 0 0 20px; gap: 14px; }
  .calendar-heading button { display: grid; place-items: center; height: 30px; padding: 0; line-height: 1; font-size: 25px; }
  .calendar-days { --day-gap: clamp(8px, 1.1vw, 18px); min-height: 0; width: 100%; height: 100%; max-height: calc(4 * min(5.2vw, 8.5vh) + 3 * var(--day-gap)); grid-template-rows: repeat(4, minmax(0, 1fr)); align-content: start; gap: var(--day-gap); }
  .calendar-day { min-height: 0; aspect-ratio: auto; padding: 3px 1px; border-radius: 8px; font-size: min(28px, 2.635vw, 4.7vh); }
  .date-feedback { margin-top: 6px; min-height: 14px; font-size: 10px; line-height: 1.3; }
  .reservation-details { min-height: 0; padding-top: 0; grid-template-rows: repeat(4, auto) auto; align-content: start; gap: clamp(7px, 1.3vh, 12px); }
  .reservation-notes { min-height: 0; }
  .reservation-notes textarea { height: clamp(80px, 12.5vh, 125px); min-height: 80px; }
  .reservation-options { gap: 8px; }
  .reservation-check { margin-top: 70px; }
}
@media (min-width: 701px) and (max-height: 750px) {
  .reservation { padding-top: 8px; padding-bottom: 10px; }
  .reservation-control input, .reservation-control select, .reservation-control textarea { min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
  .calendar-heading { margin-bottom: 16px; }
  .reservation-check { font-size: min(1.3175vw, 17px); }
}

/* Calendario e controlli allineati alla griglia del modulo. */
.calendar-heading { justify-content: flex-start; }
.calendar-heading h2 {
  order: -1;
  min-width: 0;
  text-align: left;
  font: 400 22px/1.2 var(--font-bodoni-72);
}
.calendar-heading button:disabled { display: none; }
.calendar-day { width: 43px; height: 59px; aspect-ratio: auto; font: 300 22px/1 var(--font-inter); }
.reservation-check { align-items: center; gap: 12px; width: fit-content; }
.reservation-check input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; }
.reservation-privacy { text-align: left; }
.reservation-page .reservation-submit .site-button {
  width: fit-content;
  background: var(--black);
  border: 0;
  cursor: pointer;
}
@media (min-width: 701px) {
  .reservation { height: calc(100svh - var(--header-height)); min-height: 0; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; gap: 8px; overflow: clip; }
  .reservation-form { grid-template-columns: 44% 45.5%; grid-template-rows: auto auto auto; row-gap: 24px; 
  padding-top: 50px;}

  .reservation-calendar { grid-template-rows: 50px auto auto; }
  .calendar-heading { margin: 0; align-self: start; }
  .calendar-days {
    height: auto;
    max-height: none;
    grid-template-columns: repeat(12, 43px);
    grid-template-rows: repeat(4, 59px);
    justify-content: space-between;
    gap: 11px 0;
  }
  .reservation-details { padding-top: 50px; grid-template-rows: repeat(4, 40px) minmax(80px, 1fr); gap: 11px; }
  .reservation-notes textarea { height: 100%; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .calendar-days { grid-template-columns: repeat(6, 43px); grid-template-rows: none; grid-auto-rows: 59px; }
}
@media (max-width: 700px) {
  .calendar-days { grid-template-columns: repeat(7, minmax(0, 43px)); justify-content: space-between; gap: 8px 4px; }
  .calendar-day { width: 100%; }
}

/* Mese tra le frecce e invio allineato alla base dei selettori. */
.calendar-heading {
  justify-content: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 30px;
}
.calendar-heading h2 { order: 0; }
.calendar-heading button,
.calendar-heading button:disabled {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
}
@media (min-width: 701px) {
  .reservation-calendar { grid-template-rows: 76px auto auto; }
  .calendar-heading { margin-bottom: 30px; }
  .reservation-details { padding-top: 76px; }
  .reservation-submit { position: relative; align-self: end; }
}

/* Prenotazione mobile: margini fissi e calendario di undici colonne. */
@media (max-width: 440px) {
  .reservation {
    box-sizing: border-box;
    min-height: calc(100svh - var(--header-height));
    padding: clamp(12px, 2.2svh, 22px) 25px 16px;
  }
  .reservation-title {
    margin: 0 0 clamp(14px, 2.4svh, 24px);
    font-size: clamp(40px, 15vw, 66px);
    line-height: 1;
    letter-spacing: -.025em;
    white-space: nowrap;
  }
  .reservation-title__desktop { display: none; }
  .reservation-form {
    --reservation-mobile-gap: 8px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'calendar' 'options' 'details' 'submit' 'privacy';
    gap: var(--reservation-mobile-gap);
  }
  .calendar-heading { margin-bottom: 12px; padding-bottom: 0; gap: 12px; }
  .calendar-heading h2 { font-size: clamp(14px, 4.090909vw, 16px); }
  .calendar-days {
    grid-template-columns: repeat(11, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: clamp(34px, 9.1vw, 40px);
    gap: 8px clamp(2px, 1vw, 4px);
  }
  .calendar-day {
    width: 100%; height: 100%; min-height: 0;
    padding: 0; border-radius: 5px;
    font-size: clamp(14px, 3.64vw, 16px);
  }
  .date-feedback { margin-top: 6px; min-height: 13px; font-size: 10px; line-height: 1.3; }
  .reservation-options, .reservation-details { gap: 8px; }
  .reservation-options, .reservation-details { margin-top: calc(30px - var(--reservation-mobile-gap)); }
  .reservation-details { grid-template-rows: repeat(4, 32px) 40px; padding: 0; }
  .reservation-control input,
  .reservation-control select,
  .reservation-control textarea {
    height: 32px; min-height: 32px; padding: 3px 9px;
    font-size: 16px; line-height: 1.3; border-radius: 6px;
  }
  .reservation-control select { padding-right: 32px; background-position: right 10px center; }
  .reservation-notes textarea { height: 40px; min-height: 40px; }
  .reservation-check {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: start;
    justify-self: start;
    width: 100%; margin: 0; padding: 0; gap: 8px;
    font-size: 14px; line-height: 1.25; text-align: left;
  }
  .reservation-check input { width: 14px; height: 14px; flex-basis: 14px; border-radius: 2px; }
  .reservation-privacy {
    justify-content: flex-start;
    justify-self: start;
    margin-top: calc(12px - var(--reservation-mobile-gap));
  }
  .reservation-check input { margin-top: 2px; }
  .reservation-submit { margin: calc(30px - var(--reservation-mobile-gap)) 0; }
}

/* Layout mobile stabile: la tastiera non cambia colonne o dimensioni dei campi. */
@media (max-width: 440px) {
  .reservation-page { width: 100%; max-width: 100%; }
  .reservation-page .site-header { width: 100%; max-width: 100%; }
  .reservation-page .site-header > * { min-width: 0; }
  .reservation {
    width: 100%; max-width: 100%; min-width: 0;
    --reservation-section-space: 16px;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .reservation-form > * { min-width: 0; max-width: 100%; }
  .reservation-title { margin-bottom: 12px; }
  .reservation-options, .reservation-details {
    margin-top: max(0px, calc(var(--reservation-section-space) - var(--reservation-mobile-gap)));
  }
  .reservation-submit {
    margin: max(0px, calc(var(--reservation-section-space) - var(--reservation-mobile-gap))) 0;
  }
}



/* Il modulo segue il flusso del documento e può scorrere con la tastiera aperta. */
.reservation-fit { display: contents; }
@media (max-width: 440px) {
  .reservation {
    width: var(--reservation-available-width, 100%);
    box-sizing: border-box;
    height: calc(100svh - var(--header-height));
    min-height: 0;
    padding-bottom: 10px;
    overflow: clip;
  }
  .reservation-fit { display: flow-root; }
  .reservation-fit .reservation-form { width: 100%; }
}

/* Frecce sottili proporzionate al titolo del mese. */
.calendar-heading button svg { display: block; width: 22px; height: 22px; }
@media (max-width: 440px) {
  .calendar-heading button svg {
    width: clamp(14px, 4.090909vw, 18px);
    height: clamp(14px, 4.090909vw, 18px);
  }
}

/* Reply language uses the shared control styles and an accessible hidden label. */
.reservation-reply-language { grid-column: 1 / -1; }
.reservation-details { grid-template-rows: repeat(4, auto) auto minmax(80px, 1fr); }
.date-feedback { visibility: visible; }
@media (max-width: 440px) {
  .reservation { height: auto; min-height: calc(100svh - var(--header-height)); }
  .reservation-details { grid-template-rows: repeat(4, 32px) auto 40px; }
  .reservation-fit { transform: none; }
}


/* Only the optional large-group block adds space; existing controls stay unchanged. */
.reservation-large-group[hidden] { display: none; }
.reservation-large-group { min-width: 0; animation: reservation-group-enter .18s ease-out; }
@keyframes reservation-group-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reservation-large-group { animation: none; } }

/* Shared buttons inside the number field keep stepping available on touch browsers. */
.reservation-large-group__field { position: relative; }
.reservation-large-group__field input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.reservation-large-group__field input::-webkit-inner-spin-button,
.reservation-large-group__field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.reservation-large-group__steps { position: absolute; inset: 1px 4px 1px auto; width: 24px; display: grid; grid-template-rows: 1fr 1fr; }
.reservation-large-group__steps button { display: grid; place-items: center; width: 100%; min-width: 0; min-height: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fffbe0; color: inherit; font: 12px/1 var(--font-inter); cursor: pointer; touch-action: manipulation; }
.reservation-large-group__steps button:disabled { opacity: .65; cursor: default; }

/* Safari contact/credential autofill is unrelated to the participant count. */
#large-group-guests::-webkit-contacts-auto-fill-button,
#large-group-guests::-webkit-credentials-auto-fill-button { display: none !important; visibility: hidden; pointer-events: none; }
.reservation-large-group__steps svg { display: block; width: 16px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reservation-large-group__steps .reservation-large-group__arrow-down { transform: rotate(180deg); }

/* Reservation update: preserve the established type scale; let content scroll. */
.reservation-page .reservation { display: block; width: 100%; height: auto; min-height: calc(100svh - var(--header-height)); overflow: visible; padding-bottom: max(36px, env(safe-area-inset-bottom)); }
.reservation-guide { font: 300 16px/1.3 var(--font-inter); min-height: 42px; margin: 12px 0; overflow-wrap: anywhere; }
.reservation-form { padding-top: 0; }
.reservation-form[hidden], .reservation-success[hidden], .reservation-guide[hidden], .reservation-date-button[hidden] { display: none; }
.reservation-form > * { min-width: 0; }
.reservation-policy-link { grid-column: 1 / -1; font: 300 16px/1.3 var(--font-inter); overflow-wrap: anywhere; }
.calendar-selectors, .calendar-weekdays { display: none; }
.reservation-success { padding: 24px 0; max-width: 760px; font: 300 clamp(16px, 1.445vw, 22px)/1.4 var(--font-inter); overflow-wrap: anywhere; }
.reservation-success h2 { margin: 16px 0; font: 400 clamp(40px, 6vw, 66px)/1.1 var(--font-melodrama); }
.reservation-success-check { width: 64px; height: 64px; fill: none; stroke: var(--black); stroke-width: 2; }
.reservation-success-check path { stroke-dasharray: 64; animation: reservation-check .6s ease-out; }
@keyframes reservation-check { from { stroke-dashoffset: 64; } to { stroke-dashoffset: 0; } }
.reservation-date-dialog { box-sizing: border-box; color: var(--black); background: var(--whitecream); border: 1px solid var(--black); padding: 0; width: min(100%, 440px); max-width: 100%; max-height: calc(100dvh - 12px); margin: auto auto 0; border-radius: 20px 20px 0 0; overflow-y: auto; overscroll-behavior: contain; }
.reservation-date-dialog::backdrop { background: rgb(0 0 0 / .45); }
.reservation-date-shell { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
.reservation-date-shell > h2 { margin: 0 44px 16px 0; font: 400 22px/1.2 var(--font-bodoni-72); }
.reservation-date-close { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font: 300 22px/1 var(--font-inter); cursor: pointer; }
.reservation-date-dialog :focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.reservation-date-dialog .reservation-calendar { display: block; padding: 0; }
.reservation-date-dialog .calendar-heading { justify-content: space-between; margin: 0; padding: 0; gap: 4px; }
.reservation-date-dialog .calendar-heading h2 { font-size: 22px; }
.reservation-date-dialog .calendar-heading button { flex-basis: 44px; width: 44px; height: 44px; }
.reservation-date-dialog .calendar-heading button svg { width: 22px; height: 22px; }
.reservation-date-dialog .calendar-selectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.reservation-date-dialog .calendar-selectors label { min-width: 0; position: relative; }
.reservation-date-dialog .calendar-selectors select, .reservation-date-dialog .calendar-selectors input { box-sizing: border-box; width: 100%; min-width: 0; height: 52px; min-height: 52px; margin: 0; padding: 6px 28px 6px 10px; color: inherit; background: transparent; border: 1px solid var(--black); border-radius: 6px; font: 300 16px/1.3 var(--font-inter); }
.reservation-date-dialog .calendar-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font: 300 16px/1.3 var(--font-inter); margin: 8px 0; }
.reservation-date-dialog .calendar-days { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 44px; gap: 0; height: auto; max-height: none; }
.reservation-date-dialog .calendar-day { width: 100%; height: 44px; min-height: 44px; border: 1px solid transparent; border-radius: 6px; font-size: 16px; }
.reservation-date-dialog .calendar-day[aria-pressed='true'] { border-color: var(--black); background: var(--orange-color); }
.reservation-date-dialog .date-feedback { display: none; }
.reservation-date-confirm { display: block; width: 100%; min-height: 44px; margin-top: 16px; border: 1px solid var(--black); border-radius: 8px; background: var(--black); color: var(--whitecream); font: 400 20.4px/1.2 var(--font-cabin-condensed); text-transform: uppercase; cursor: pointer; }
@media (min-width: 901px) and (max-width: 1250px) { .calendar-days { grid-template-columns: repeat(8, 43px); grid-template-rows: none; grid-auto-rows: 59px; } }
@media (max-width: 440px) {
  .reservation-page .reservation { padding: 12px 16px max(24px, env(safe-area-inset-bottom)); }
  .reservation-title { white-space: normal; font-size: clamp(40px, 15vw, 66px); }
  .reservation-form { grid-template-areas: 'date' 'options' 'details' 'privacy' 'submit'; gap: 8px; }
  .reservation-date-button { grid-area: date; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; width: 100%; min-width: 0; min-height: 44px; padding: 6px 9px; border: 1px solid var(--black); border-radius: 6px; background: transparent; color: inherit; font: 300 16px/1.3 var(--font-inter); text-align: left; cursor: pointer; }
  .reservation-date-button svg { flex: 0 0 24px; width: 24px; height: 24px; margin-left: 8px; }
  .reservation-options { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; gap: 8px; }
  .reservation-options > :nth-child(n+3) { grid-column: 1 / -1; }
  .reservation-details { grid-template-rows: none; margin-top: 0; gap: 8px; }
  .reservation-control input, .reservation-control select, .reservation-control textarea { height: auto; min-height: 44px; font-size: 16px; }
  .reservation-control select { padding-right: 28px; background-position: right 8px center; }
  .reservation-notes textarea { height: 80px; min-height: 80px; overflow-y: auto; }
  .reservation-check { grid-template-columns: 18px minmax(0, 1fr); min-height: 44px; align-items: center; font-size: 16px; margin: 0; padding: 4px 0; box-sizing: border-box; }
  .reservation-check span { overflow-wrap: anywhere; }
  .reservation-check input { width: 18px; height: 18px; margin: 0; }
  .reservation-submit { margin: 8px 0; }
  .reservation-page .reservation-submit .site-button { width: 100%; min-height: 44px; }
  .reservation-large-group__field input { padding-right: 96px; }
  .reservation-large-group__steps { inset: 1px 1px 1px auto; width: 88px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .reservation-large-group__steps button { min-height: 44px; background: transparent; }
}
@media (max-width: 360px) { .reservation-date-shell { padding-left: 4px; padding-right: 4px; } }
@media (max-height: 600px) { .reservation-guide { margin: 8px 0; } .reservation-date-shell { padding-top: 12px; } }
@media (prefers-reduced-motion: reduce) { .reservation-success-check path { animation: none; } }

/* Compact field boxes up to 402px; retain the existing 16px text. */
@media (max-width: 402px) {
  .reservation-control input,
  .reservation-control select,
  .reservation-control textarea,
  .reservation-date-button {
    min-height: 37.4px;
    font-size: 16px;
  }
  .reservation-notes textarea { height: 68px; min-height: 68px; }
  .reservation-large-group__steps button { min-height: 35.4px; }
}

/* Clearly identify the guide and keep privacy controls together in reading order. */
.reservation-guide-block { box-sizing: border-box; margin: 12px 0 16px; padding: 10px 12px; border: 2px solid var(--orange-color); border-radius: 10px; background: color-mix(in srgb, var(--orange-color) 10%, var(--whitecream)); color: var(--black); }
.reservation-guide-block[hidden] { display: none; }
.reservation-guide-block h2 { margin: 0 0 6px; font: 400 22px/1.2 var(--font-bodoni-72); }
.reservation-guide-block .reservation-guide { margin: 0; min-height: 42px; font-size: 16px; }
.reservation-form { grid-template-areas: 'calendar details' 'options submit' 'consents consents'; }
.reservation-consents { grid-area: consents; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; }
.reservation-consents .reservation-check { grid-area: auto; display: flex; justify-content: flex-start; justify-self: start; align-items: center; min-height: 32px; margin: 0; padding: 4px 0; text-align: left; box-sizing: border-box; }
.reservation-page > .maccheroni-cookie-links { box-sizing: border-box; padding-inline: 3.4vw; }
.reservation-policy-link { margin-block: 0; }
.reservation-policy-link a { color: inherit; }
@media (max-width: 700px) {
  .reservation-form { grid-template-areas: 'calendar' 'options' 'details' 'consents' 'submit'; }
  .reservation-page > .maccheroni-cookie-links { padding-inline: 20px; }
}
@media (max-width: 440px) {
  .reservation-form { grid-template-areas: 'date' 'options' 'details' 'consents' 'submit'; }
  .reservation-page > .maccheroni-cookie-links { padding-inline: 16px; }
}

/* Privacy acknowledgement: inline notice link and first-line checkbox alignment. */
.reservation-consents .reservation-privacy { align-items: flex-start; color: var(--black); }
.reservation-consents .reservation-privacy input { font: inherit; margin-top: calc((1.3em - 18px) / 2); }
.reservation-privacy span { min-width: 0; }
.reservation-privacy a { color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* Laptop/tablet only. Mobile rules and component sizes up to 440px stay intact. */
@media (min-width: 441px) {
  .reservation-page { min-height: 100svh; display: flex; flex-direction: column; }
  .reservation-page .reservation { min-height: 0; flex: 1 0 auto; }
  .reservation-page > .maccheroni-cookie-links { flex: 0 0 auto; }
  .reservation-form {
    --reservation-control-height: 44px;
    --reservation-control-gap: 11px;
    --reservation-column-gap: clamp(24px, 4vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: none;
    gap: var(--reservation-control-gap) var(--reservation-column-gap);
    padding-top: 0;
    align-items: start;
  }
  .reservation-form .reservation-options,
  .reservation-form .reservation-details,
  .reservation-form .reservation-consents { display: contents; }
  .reservation-form > [data-reservation-field] { grid-area: auto; min-width: 0; max-width: 100%; margin: 0; }
  .reservation-form .reservation-control input,
  .reservation-form .reservation-control select,
  .reservation-form .reservation-control textarea,
  .reservation-form .reservation-date-button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: var(--reservation-control-height);
    min-height: var(--reservation-control-height);
    padding: 6px 42px 6px 13px;
    border: 1px solid var(--black);
    border-radius: 8px;
    color: inherit;
    background-color: transparent;
    font: 300 clamp(16px, 1.445vw, 22px)/1.3 var(--font-inter);
  }
  .reservation-form .reservation-control select { padding-right: 42px; }
  .reservation-form .reservation-date-button { position: relative; display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer; }
  .reservation-date-button svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; margin: 0; }
  .reservation-form .reservation-notes textarea { height: 110px; min-height: 110px; resize: none; overflow-y: auto; }
  .reservation-form > .reservation-check { display: flex; align-items: flex-start; justify-content: flex-start; justify-self: start; width: 100%; min-height: 0; padding: 0; gap: 12px; text-align: left; }
  .reservation-form > .reservation-check span { min-width: 0; overflow-wrap: anywhere; }
  .reservation-form > .reservation-check input { font: inherit; margin-top: calc((1.3em - 18px) / 2); }
  .reservation-form > .reservation-submit { align-self: start; }
  .reservation-form .reservation-large-group__steps { inset: 1px 4px 1px auto; width: 24px; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .reservation-form .reservation-large-group__steps button { background: transparent; }
  .reservation-date-dialog {
    position: fixed;
    inset: auto;
    margin: 0;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 16px);
    border-radius: 8px;
  }
  .reservation-date-dialog::backdrop { background: transparent; }
  .reservation-page > .maccheroni-cookie-links { justify-content: flex-end; }
}
@media (min-width: 900px) {
  .reservation-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows:
      [date] var(--reservation-control-height)
      [time] var(--reservation-control-height)
      [guests] var(--reservation-control-height)
      [preference] var(--reservation-control-height)
      [notes] var(--reservation-control-height)
      [privacy] var(--reservation-privacy-row-size, auto) [submit] auto;
  }
  .reservation-form.has-large-group {
    grid-template-rows:
      [date] var(--reservation-control-height)
      [time] var(--reservation-control-height)
      [guests] var(--reservation-control-height)
      [large] var(--reservation-control-height)
      [preference] var(--reservation-control-height)
      [notes] var(--reservation-control-height)
      [privacy] var(--reservation-privacy-row-size, auto) [submit] auto;
  }
  .reservation-form > [data-reservation-field='date'] { grid-column: 1; grid-row: date; }
  .reservation-form > [data-reservation-field='time'] { grid-column: 1; grid-row: time; }
  .reservation-form > [data-reservation-field='guests'] { grid-column: 1; grid-row: guests; }
  .reservation-form > [data-reservation-field='large'] { grid-column: 1; grid-row: large; }
  .reservation-form > [data-reservation-field='preference'] { grid-column: 1; grid-row: preference; }
  .reservation-form > [data-reservation-field='notes'] { grid-column: 1; grid-row: notes / submit; align-self: stretch; }
  .reservation-form > [data-reservation-field='firstName'] { grid-column: 2; grid-row: date; }
  .reservation-form > [data-reservation-field='lastName'] { grid-column: 2; grid-row: time; }
  .reservation-form > [data-reservation-field='phone'] { grid-column: 2; grid-row: guests; }
  .reservation-form > [data-reservation-field='email'] { grid-column: 2; grid-row: preference; }
  .reservation-form > [data-reservation-field='replyLanguage'] { grid-column: 2; grid-row: notes; }
  .reservation-form > [data-reservation-field='privacy'] { grid-column: 2; grid-row: privacy; }
  .reservation-form > [data-reservation-field='submit'] { grid-column: 2; grid-row: submit; }
  .reservation-form .reservation-notes textarea { height: 100%; min-height: 0; }
}

/* Additional breathing room for the two-column booking layout. */
@media (min-width: 900px) {
  .reservation-form { margin-top: 100px; }
  .reservation-form > [data-reservation-field='submit'] { margin-top: calc(30px - var(--reservation-control-gap)); }
}

/* Laptop: preserve the privacy acknowledgement alignment. */
@media (min-width: 1280px) {
  .reservation-form { --reservation-privacy-row-size: max(18px, calc(clamp(14px, 1.3175vw, 18px) * 1.3)); }
  .reservation-form > [data-reservation-field='privacy'] {
    grid-row: privacy;
    align-self: start;
    width: max-content;
    max-width: none;
  }
  .reservation-form > [data-reservation-field='privacy'] { justify-self: start; }
}

/* Contextual assistance is outside grid flow: approved rows and gaps stay fixed. */
.reservation-step-hint {position:fixed;z-index:1000;margin:0;padding:8px 12px;
  color:var(--black);background:color-mix(in srgb, var(--orange-color) 30%, var(--whitecream));
  border:0;border-radius:12px;white-space:normal;word-break:normal;overflow-wrap:break-word;font:300 16px/1.25 var(--font-inter);
  pointer-events:none;box-sizing:border-box;}
.reservation-step-highlight {outline:2px solid var(--orange-color)!important;outline-offset:3px;}

.reservation-step-hint::after {content:"";position:absolute;left:16px;bottom:-7px;width:14px;height:10px;
  background:inherit;clip-path:polygon(0 0,100% 0,0 100%);pointer-events:none;}

/* Calendar actions remain outside the only scrolling area at every breakpoint. */
.reservation-date-dialog {
  --calendar-safe-top:env(safe-area-inset-top, 0px);
  --calendar-safe-right:env(safe-area-inset-right, 0px);
  --calendar-safe-bottom:env(safe-area-inset-bottom, 0px);
  --calendar-safe-left:env(safe-area-inset-left, 0px);
  position:fixed;inset:auto;margin:0;padding:0;max-width:none;
  box-sizing:border-box;overflow:hidden;border-radius:8px;
}
.reservation-date-dialog[open] {display:flex;}
.reservation-date-dialog::backdrop {background:rgb(0 0 0 / .45);}
.reservation-date-dialog[data-placement='above']::backdrop,
.reservation-date-dialog[data-placement='below']::backdrop {background:transparent;}
.reservation-date-shell {box-sizing:border-box;display:flex;flex-direction:column;
  width:100%;height:100%;min-height:0;padding:16px;overflow:hidden;}
.reservation-date-header {position:relative;flex:0 0 auto;min-height:44px;}
.reservation-date-header h2 {margin:0 44px 12px 0;font:400 22px/1.2 var(--font-bodoni-72);}
.reservation-date-header .reservation-date-close {top:-8px;right:-8px;}
.reservation-date-body {flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;scroll-padding:4px;}
.reservation-date-footer {flex:0 0 auto;padding-top:16px;}
.reservation-date-footer .reservation-date-confirm {margin:0;min-height:44px;}
@media (max-width:440px) {
  .reservation-date-dialog {border-radius:20px 20px 0 0;}
}
@media (max-width:360px), (max-height:420px) {
  .reservation-date-shell {padding:12px 8px;}
  .reservation-date-footer {padding-top:8px;}
}

/* Compact assistance and Notes only on the approved mobile breakpoint. */
.reservation-guide-title-mobile {display:none;}
@media (max-width:440px) {
  .reservation-form {--reservation-mobile-field-height:44px;}
  .reservation-form .reservation-notes textarea {
    height:var(--reservation-mobile-field-height);
    min-height:var(--reservation-mobile-field-height);
    font-size:16px;resize:none;overflow-y:auto;
  }
  /* The title has a 12px bottom margin: 32px here adds 20px after margin collapse. */
  .reservation-guide-block {margin:32px 0 0;padding:6px 10px;}
  .reservation-guide-block h2 {margin:0 0 2px;font:500 16.8px/1.25 var(--font-inter);text-transform:uppercase;}
  .reservation-guide-title-wide {display:none;}
  .reservation-guide-title-mobile {display:inline;}
  .reservation-guide-block .reservation-guide {
    font-size:14px;font-weight:500;line-height:1.3;min-height:2.6em;
  }
}
@media (max-width:402px) {
  .reservation-form {--reservation-mobile-field-height:37.4px;}
}

/* Local calendar close confirmation: only the body scrolls, actions stay visible. */
.reservation-date-warning {position:fixed;inset:auto;margin:0;padding:32px 16px;
  box-sizing:border-box;max-width:none;overflow:hidden;border:1px solid var(--black);
  border-radius:8px;background:var(--whitecream);color:var(--black);}
.reservation-date-warning[open] {display:flex;flex-direction:column;animation:reservation-warning-enter 220ms ease-out;}
@keyframes reservation-warning-enter {from {transform:translateY(24px);clip-path:inset(100% 0 0 0);} to {transform:none;clip-path:inset(0);}}
@media (prefers-reduced-motion:reduce) {.reservation-date-warning[open] {animation:none;}}
.reservation-date-warning::backdrop {background:rgb(0 0 0 / .45);}
.reservation-date-warning-body {min-height:0;overflow-y:auto;overscroll-behavior:contain;}
.reservation-date-warning h2 {margin:0;font:400 22px/1.2 var(--font-bodoni-72);}
.reservation-date-warning p {margin:12px 0 0;font:300 16px/1.3 var(--font-inter);}
.reservation-date-warning[data-kind='selected'] p {padding:8px;border-left:3px solid var(--orange-color);
  background:color-mix(in srgb,var(--orange-color) 15%,var(--whitecream));font-weight:300;}
.reservation-date-warning-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:0 0 auto;padding-top:16px;}
.reservation-date-warning button {box-sizing:border-box;min-width:0;min-height:44px;padding:10px 12px;
  border:1px solid var(--black);border-radius:8px;font:400 16px/1.2 var(--font-cabin-condensed);
  text-transform:uppercase;cursor:pointer;}
.reservation-date-warning [data-date-warning-primary] {background:var(--black);color:var(--whitecream);}
.reservation-date-warning [data-date-warning-secondary] {background:transparent;color:var(--black);}
@media (max-width:440px) {.reservation-date-warning {padding-block:40px;} .reservation-date-warning-actions {grid-template-columns:minmax(0,1fr);gap:8px;}}

/* Button states scoped to the form and its two dialogs; no header/global changes. */
.reservation-page :is(#reservation-form,.reservation-date-dialog,.reservation-date-warning) button {
  transition:background-color 160ms ease,border-color 160ms ease,filter 160ms ease,transform 160ms ease;
  -webkit-tap-highlight-color:transparent;
}
.reservation-page #reservation-form #send-request,
.reservation-page .reservation-date-confirm {background:var(--black);border-color:var(--black);color:var(--whitecream);box-shadow:none;}
.reservation-page #send-request :is(svg,img) {rotate:0deg;transition:none;}
.reservation-page .reservation-date-dialog :is(.calendar-day,.calendar-heading button,.reservation-date-close) {background:transparent;color:var(--black);}
/* Today has a smaller visual marker; the full day cell stays interactive. */
.reservation-page .reservation-date-dialog .calendar-day[aria-current='date'] {position:relative;isolation:isolate;border-color:transparent;}
.reservation-page .reservation-date-dialog .calendar-day[aria-current='date']::before {
  content:'';position:absolute;z-index:-1;width:min(32px,calc(100% - 6px));height:32px;
  left:50%;top:50%;transform:translate(-50%,-50%);border-radius:4px;
  background:color-mix(in srgb,var(--orange-color) 40%,transparent);pointer-events:none;
}
.reservation-page .reservation-date-dialog .calendar-day[aria-current='date'][aria-pressed='true']::before {display:none;}
.reservation-date-dialog .calendar-selectors select {appearance:none;}
.reservation-date-dialog .calendar-selectors label::after {content:'';position:absolute;right:12px;top:21px;
  width:7px;height:7px;border-right:1px solid var(--black);border-bottom:1px solid var(--black);transform:rotate(45deg);pointer-events:none;}
.reservation-page .reservation-date-dialog .calendar-day[aria-pressed='true'] {background:var(--orange-color);color:var(--black);border-color:var(--black);}
.reservation-page :is(#reservation-form,.reservation-date-dialog,.reservation-date-warning) button:focus-visible {
  outline:3px solid var(--orange-color);outline-offset:3px;box-shadow:0 0 0 2px var(--whitecream);
}
@media (hover:hover) and (pointer:fine) {
  .reservation-page #reservation-form #send-request:not(:disabled):not([aria-disabled='true']):hover,
  .reservation-page :is(#send-request,.reservation-date-confirm,[data-date-warning-primary]):not(:disabled):not([aria-disabled='true']):hover {
    background:var(--orange-color);border-color:var(--orange-color);color:var(--black);box-shadow:none;
  }
  .reservation-page :is(.reservation-date-dialog,.reservation-date-warning) :is([data-date-warning-secondary],.calendar-heading button,.reservation-date-close,.calendar-day:not([aria-pressed='true'])):not(:disabled):hover {
    background:color-mix(in srgb,var(--orange-color) 15%,var(--whitecream));color:var(--black);
  }
  .reservation-page .reservation-date-dialog :is(.calendar-heading button,.reservation-date-close):not(:disabled):hover {filter:contrast(1.15);}
}
.reservation-page :is(#send-request,.reservation-date-confirm,[data-date-warning-primary]):not(:disabled):not([aria-disabled='true']):active {filter:brightness(.94);transform:scale(.985);}
.reservation-page :is(.reservation-date-dialog,.reservation-date-warning) :is([data-date-warning-secondary],.calendar-heading button,.reservation-date-close,.calendar-day):not(:disabled):active {
  background:color-mix(in srgb,var(--orange-color) 25%,var(--whitecream));transform:scale(.985);
}
.reservation-page .reservation-date-dialog .calendar-day[aria-pressed='true']:active {background:var(--orange-color);}
.reservation-page :is(#reservation-form,.reservation-date-dialog,.reservation-date-warning) button:is(:disabled,[aria-disabled='true']) {
  transition:none;transform:none;filter:none;box-shadow:none;
}
@media (prefers-reduced-motion:reduce) {
  .reservation-page :is(#reservation-form,.reservation-date-dialog,.reservation-date-warning) button {transition:none!important;transform:none!important;}
}

@media (hover:hover) and (pointer:fine) {
  .reservation-page #reservation-form :is(#open-date,[data-guest-step]):not(:disabled):not([aria-disabled='true']):hover {
    background:color-mix(in srgb,var(--orange-color) 15%,var(--whitecream));color:var(--black);
  }
}
.reservation-page #reservation-form :is(#open-date,[data-guest-step]):not(:disabled):not([aria-disabled='true']):active {
  background:color-mix(in srgb,var(--orange-color) 25%,var(--whitecream));
}

/* Close warnings retain a single neutral keyboard ring in every button state. */
.reservation-page #reservation-date-warning [data-date-warning-primary]:not(:disabled):is(:hover,:active) {
  background:var(--black);color:var(--whitecream);border-color:var(--black);box-shadow:none;
}
.reservation-page #reservation-date-warning button:focus-visible {
  outline:2px solid var(--black);outline-offset:3px;box-shadow:none;
}
.reservation-page #reservation-date-dialog .calendar-day:focus-visible {
  outline:2px dashed var(--black);outline-offset:-3px;box-shadow:none;
}

/* Mobile: move the complete booking block below the guide without changing row gaps. */
@media (max-width: 440px) {
  .reservation-page #reservation-form { padding-top: 40px; }
}

/* Email alternative stays in the submit block, including its assisted-scroll bounds. */
.reservation-email-alternative {margin:12px 0 0;max-width:100%;color:var(--black);font:300 16px/1.5 var(--font-inter);overflow-wrap:anywhere;}
.reservation-email-alternative a {color:var(--black);text-decoration:underline;text-underline-offset:3px;}
.reservation-email-alternative a:focus-visible {outline:2px solid var(--black);outline-offset:3px;}

@media (max-width: 440px) {
  .reservation-email-alternative {font-size:14px;line-height:125%; padding-top:20px;}
  .reservation-email-alternative a {font-size:16px; font-weight: 500;}
}

/* Success follow-up: keep email edits separate from a new booking request. */
.reservation-success .reservation-new-request {
  max-width: 100%; min-height: 44px; margin-top: 8px; padding: 12px 18px;
  border: 1px solid var(--black); border-radius: 8px;
  background: var(--black); color: var(--whitecream); font: inherit;
  white-space: normal; cursor: pointer;
}
.reservation-success a { color: var(--black); text-decoration: underline; }
.reservation-success .reservation-new-request:focus-visible,
.reservation-success a:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
