.reservation-mode-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 10px;
}

.reservation-mode-btn {
  border: 1px solid #222;
  border-radius: 999px;
  background: #fff;
  color: #222;
  cursor: pointer;
  font-weight: 700;
  padding: 9px 18px;
}

.reservation-mode-btn.active {
  background: #222;
  color: #fff;
}

.reservation-test-badge {
  color: #6b6b6b;
  font-size: 13px;
  margin-bottom: 24px;
}

.reservation-unified {
  margin: 32px auto 0;
  max-width: 980px;
}

.reservation-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.reservation-progress li {
  align-items: center;
  color: #8a8a8a;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  position: relative;
  text-align: center;
}

.reservation-progress li:not(:last-child)::after {
  background: #ddd;
  content: "";
  height: 1px;
  left: calc(50% + 21px);
  position: absolute;
  right: calc(-50% + 21px);
  top: 61px;
}

.reservation-progress-label {
  align-items: flex-end;
  display: flex;
  justify-content: center;
  line-height: 1.2;
  min-height: 36px;
  padding: 0 4px;
  text-align: center;
}

.reservation-progress-dot {
  align-items: center;
  background: #eee;
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
  z-index: 1;
}

.reservation-progress li.active,
.reservation-progress li.complete {
  color: #222;
}

.reservation-progress li.active .reservation-progress-dot,
.reservation-progress li.complete .reservation-progress-dot {
  background: var(--primary-color);
}

.reservation-progress li.complete:not(:last-child)::after {
  background: var(--primary-color);
}

.reservation-unified-status {
  background: #f7f3f7;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  margin-bottom: 24px;
  padding: 14px 18px;
}

.reservation-unified-status.error {
  background: #fff1f0;
  border-color: #b42318;
  color: #8a1c13;
}

.reservation-step-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.reservation-step-heading h2,
.reservation-complete-card h2 {
  margin-bottom: 6px;
}

.reservation-step-kicker {
  color: #6d5d6d;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.reservation-back-link {
  background: transparent;
  border: 0;
  color: #444;
  cursor: pointer;
  font-weight: 700;
  padding: 7px 0;
  text-decoration: underline;
}

.reservation-back-link:focus-visible,
.reservation-mode-btn:focus-visible,
.reservation-family-card:focus-visible,
.reservation-experience-info:focus-visible,
.reservation-experience-description-close:focus-visible,
.reservation-experience-description-content:focus-visible,
.reservation-calendar-nav:focus-visible,
.reservation-calendar-day:focus-visible,
.reservation-checkout-link:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.reservation-unified-step:focus {
  outline: none;
}

.reservation-fallback {
  margin: 24px auto 0;
  max-width: 980px;
  text-align: center;
}

.reservation-family-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reservation-family-option {
  min-width: 0;
  position: relative;
}

.reservation-family-card {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 12px;
  color: #222;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 112px;
  height: 100%;
  padding: 20px;
  width: 100%;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.reservation-family-action {
  font-size: 13px;
  font-weight: 700;
  margin-top: 18px;
}

.reservation-family-card:not(:disabled):hover,
.reservation-family-card:not(:disabled):focus {
  border-color: #222;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.reservation-family-card:disabled {
  background: #f5f5f5;
  cursor: default;
  opacity: .5;
}

.has-description .reservation-family-card { padding-right: 56px; }

.reservation-experience-info {
  align-items: center;
  background: #fff;
  border: 1px solid #bdb4bd;
  border-radius: 50%;
  color: #514151;
  cursor: pointer;
  display: flex;
  font: italic 700 18px Georgia, serif;
  height: 30px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
}

.reservation-experience-info:hover,
.reservation-experience-info[aria-expanded="true"] {
  background: #f7f3f7;
  border-color: #514151;
}

.reservation-experience-description {
  background: #fff;
  border: 1px solid #d8c7da;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .18);
  color: #333;
  display: flex;
  flex-direction: column;
  max-height: min(380px, calc(100vh - 24px));
  padding: 18px;
  position: fixed;
  width: min(400px, calc(100vw - 24px));
  z-index: 1100;
}

.reservation-experience-description[hidden] { display: none; }

.reservation-experience-description-heading {
  align-items: flex-start;
  display: flex;
  font-size: 17px;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reservation-experience-description-close {
  background: transparent;
  border: 0;
  color: #555;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 24px;
  line-height: 24px;
  padding: 0 4px;
}

.reservation-experience-description-content {
  font-size: 14px;
  line-height: 1.6;
  min-height: 0;
  overflow: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  white-space: pre-line;
}

.reservation-calendar {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 22px;
}

.reservation-calendar-header {
  align-items: center;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  margin-bottom: 18px;
}

.reservation-calendar-title {
  margin: 0;
  text-align: center;
  text-transform: capitalize;
}

.reservation-calendar-nav {
  align-items: center;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.reservation-calendar-nav:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.reservation-calendar-weekdays,
.reservation-calendar-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.reservation-calendar-weekdays span {
  color: #777;
  font-size: 12px;
  font-weight: 700;
  padding: 5px;
  text-align: center;
}

.reservation-calendar-day,
.reservation-calendar-empty {
  aspect-ratio: 1 / 1;
}

.reservation-calendar-day {
  align-items: center;
  background: #f0f0f0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #999;
  display: flex;
  font-weight: 700;
  justify-content: center;
}

button.reservation-calendar-day.is-available {
  background: var(--primary-color);
  color: #222;
  cursor: pointer;
}

button.reservation-calendar-day.is-available:hover,
button.reservation-calendar-day.is-available:focus {
  border-color: #222;
}

.reservation-calendar-day.is-past {
  opacity: .45;
}

button.reservation-calendar-day.is-notifiable {
  background: #222;
  color: #fff;
  cursor: pointer;
  position: relative;
}

button.reservation-calendar-day.is-notifiable:hover {
  background: #444;
}

.reservation-alert-bell {
  width: 12px;
  height: 12px;
  position: absolute;
  right: 4px;
  bottom: 4px;
}

.reservation-alert-bell svg { display: block; width: 100%; height: 100%; }
.reservation-calendar-legend i.is-notifiable { background: #222; }
.reservation-alert-hint { margin-top: 16px; }
.reservation-alert-card {
  background: #f7f3f7;
  border: 1px solid #ddd;
  border-radius: 14px;
  margin-top: 20px;
  padding: 24px;
}
.reservation-alert-card[hidden], .reservation-alert-form[hidden] { display: none; }
.reservation-alert-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.reservation-alert-form input[type="email"],
.reservation-alert-form select {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 6px;
  padding: 12px;
  width: 100%;
  max-width: 480px;
}
.reservation-alert-form select { display: block; margin-bottom: 16px; }
.reservation-season-notice {
  background: #f7f3f7;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 14px 18px;
}
.reservation-alert-privacy { font-size: 13px; margin: 8px 0 16px; }
.reservation-alert-form button { white-space: normal; }
.reservation-alert-form button:disabled { opacity: .65; cursor: wait; }
.reservation-alert-status { margin-top: 16px; }
.reservation-alert-status.error { color: #8a1c13; }
.reservation-alert-card :focus-visible { outline: 3px solid #111; outline-offset: 3px; }

.reservation-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.reservation-calendar-legend span {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
}

.reservation-calendar-legend i {
  background: #f0f0f0;
  border-radius: 4px;
  display: inline-block;
  height: 16px;
  width: 16px;
}

.reservation-calendar-legend i.is-available {
  background: var(--primary-color);
}

.reservation-participant-fields {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.reservation-participant-field label {
  color: #222;
  display: block;
  font-weight: 800;
  margin-bottom: 7px;
}

.reservation-participant-field input {
  border: 1px solid #ccc;
  border-radius: 6px;
  height: 52px;
  padding: 8px 12px;
  width: 100%;
}

.reservation-participant-field small {
  color: #777;
  display: block;
  margin-top: 5px;
}

.reservation-complete-card {
  background: #f7f3f7;
  border: 1px solid var(--primary-color);
  border-radius: 14px;
  padding: 30px;
  text-align: center;
}

.reservation-complete-card .reservation-checkout-link {
  display: inline-block;
  margin: 10px 12px 10px 0;
}

.reservation-loading {
  opacity: .65;
  pointer-events: none;
}

@media (max-width: 767px) {
  .reservation-mode-switch {
    align-items: stretch;
    flex-direction: column;
  }

  .reservation-progress {
    grid-template-columns: repeat(5, 1fr);
  }

  .reservation-progress li {
    font-size: 10px;
    gap: 6px;
  }

  .reservation-progress-label {
    min-height: 36px;
    overflow-wrap: anywhere;
    padding: 0 2px;
  }

  .reservation-progress-dot {
    font-size: 13px;
  }

  .reservation-progress li:not(:last-child)::after {
    top: 59px;
  }

  .reservation-family-grid,
  .reservation-participant-fields {
    grid-template-columns: 1fr;
  }

  .reservation-step-heading {
    display: block;
  }

  .reservation-step-heading .reservation-back-link {
    margin-top: 8px;
  }

  .reservation-calendar {
    padding: 14px 8px;
  }

  .reservation-calendar-weekdays,
  .reservation-calendar-grid {
    gap: 3px;
  }

  .reservation-calendar-day {
    border-radius: 6px;
    font-size: 13px;
  }
}
