/* La prenotazione mostra una scelta per volta e un riepilogo prima dell'invio. */
.wizard .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wizard .steps__i { gap: 8px; padding-inline: clamp(8px, 1.2vw, 20px); }
.wizard .steps__t { letter-spacing: .08em; }

#bookingForm .when--date,
#bookingForm .when--details { grid-template-columns: minmax(0, 1fr); }
#bookingForm .when--date > .cal { width: min(100%, 540px); justify-self: center; }
#bookingForm .when--date > .slots { width: min(100%, 640px); justify-self: center; }
#bookingForm .when--details > .fields-side { width: min(100%, 680px); }

.chosen-day {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper-1);
}
.chosen-day__label {
  margin-bottom: 6px; color: var(--txt-mute);
  font: 500 .6rem/1.4 var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
}
.chosen-day b { display: block; font-size: .95rem; }
.chosen-day .btn { flex: none; }

#bookingForm .slots__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#bookingForm .slot { min-height: 52px; border-radius: 8px; }
#bookingForm .slots__pager { margin-bottom: 6px; }
#bookingForm .slots__label { line-height: 1.7; letter-spacing: .08em; }
.slots__count { color: var(--txt-mute); font-size: .78rem; text-align: center; }

.booking-review { display: grid; gap: 20px; min-width: 0; }
.booking-review__intro { color: var(--txt-dim); max-width: 64ch; font-size: .92rem; }
.booking-review .recap { min-width: 0; height: 100%; }
.booking-review .recap__list dd { overflow-wrap: anywhere; }
.booking-review__edit {
  display: block; margin-top: 18px; color: var(--gold); font-size: .8rem;
  text-align: left; text-decoration: underline; text-underline-offset: 4px;
}

@media (min-width: 700px) {
  #bookingForm .slots__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking-review { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .wizard .steps__i { flex-direction: column; justify-content: center; gap: 8px; padding-block: 14px; }
  .wizard .steps__t { font-size: .52rem; letter-spacing: .02em; }
  .chosen-day { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .chosen-day .btn { min-height: 40px; padding-inline: 14px; }
  #bookingForm .wz__nav > .btn { max-width: 100%; }
}

#bookingForm .slot--occupied { position: relative; background: #e3e4e6; color: #575757; border: 1px solid #b9b9bc; }
#bookingForm .slot--occupied:hover, #bookingForm .slot--occupied:focus-visible { border-color: #96773c; background: #d9dadd; }
.slot__waiting-count { position: absolute; top: 3px; right: 5px; min-width: 18px; padding: 0 4px; border-radius: 12px; background: #575757; color: #fff; font: 600 10px/18px system-ui,sans-serif; text-align: center; }
.waitlist-prompt { width: min(480px,calc(100% - 32px)); max-height: calc(100svh - 32px); overflow: auto; padding: 24px; border: 1px solid #96773c; border-radius: 12px; background: #f6f6f7; color: #181818; }
.waitlist-prompt::backdrop { background: rgba(0,0,0,.55); }
.waitlist-prompt h2 { margin: 0 0 16px; font-size: 1.25rem; }
.waitlist-prompt p { margin: 0 0 24px; line-height: 1.6; overflow-wrap: anywhere; }
.waitlist-prompt__actions { display: grid; gap: 12px; }
.waitlist-prompt__actions .btn { width: 100%; min-width: 0; white-space: normal; text-align: center; }

#bookingForm .slot--occupied.is-sel { outline: 2px solid #96773c; outline-offset: 2px; }
