.booking-modal-open {
  overflow: hidden;
}

.booking-calendar-modal {
  width: min(1120px, 100%);
  max-height: min(88vh, 920px);
  overflow-y: auto;
  padding: 22px 34px 30px;
}

.booking-calendar-modal .modal-icon {
  display: none;
}

.booking-calendar-modal .section-kicker {
  margin-bottom: 6px;
  font-size: 10px;
}

.booking-calendar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.booking-calendar-header h2 {
  max-width: 620px;
  margin: 0 0 6px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.12;
}

.booking-calendar-header p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
}

.booking-week-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.booking-week-controls button {
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #e6e6df;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 11px;
  transition: background-color .18s ease, transform .12s ease;
  white-space: nowrap;
}

.booking-week-controls button:hover,
.booking-week-controls button:focus-visible {
  background: var(--acid);
  outline: none;
}

.booking-week-controls button:active {
  transform: translateY(1px);
}

.booking-calendar-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 900;
}

.booking-calendar-scroll {
  border: 1px solid var(--line);
  background: var(--white);
  overflow-x: auto;
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: 54px repeat(7, minmax(92px, 1fr));
  min-width: 700px;
}

.booking-time-heading,
.booking-day-heading,
.booking-time-cell,
.booking-slot {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.booking-time-heading,
.booking-day-heading {
  min-height: 46px;
  background: #fbfaf4;
}

.booking-time-heading {
  display: grid;
  place-items: center;
  color: #858b83;
  font-size: 10px;
  font-weight: 900;
}

.booking-day-heading {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 6px;
  text-align: center;
}

.booking-day-heading span {
  color: #69736a;
  font-size: 10px;
  font-weight: 900;
}

.booking-day-heading strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.booking-day-heading.is-today {
  background: #f2ffd0;
}

.booking-time-cell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 44px;
  background: #fbfaf4;
  color: #858b83;
  font-size: 10px;
  font-weight: 900;
  padding-top: 8px;
}

.booking-slot {
  display: grid;
  align-content: start;
  min-height: 44px;
  background: var(--white);
  color: #5d675f;
  cursor: pointer;
  gap: 1px;
  padding: 7px 8px;
  text-align: left;
  transition: background-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}

.booking-slot:hover,
.booking-slot:focus-visible {
  background: #f5ffd7;
  box-shadow: inset 0 0 0 2px #d8ff5f;
  color: var(--ink);
  outline: none;
}

.booking-slot:disabled {
  cursor: not-allowed;
}

.booking-slot.is-selected {
  background: var(--acid);
  box-shadow: inset 0 0 0 2px var(--ink);
  color: var(--ink);
}

.booking-slot.is-loading {
  background: #fbfaf4;
  color: #9aa096;
}

.booking-slot.is-booked {
  background: #fff4f1;
  box-shadow: inset 0 0 0 1px #efc9be;
  color: #9b4d3d;
}

.booking-slot.is-closed {
  background: #fbfaf4;
  box-shadow: inset 0 0 0 1px var(--line);
  color: #858b83;
  opacity: .62;
}

.booking-slot.is-booked:hover,
.booking-slot.is-booked:focus-visible {
  background: #fff4f1;
  box-shadow: inset 0 0 0 1px #efc9be;
  color: #9b4d3d;
  outline: none;
}

.booking-slot.is-closed:hover,
.booking-slot.is-closed:focus-visible,
.booking-slot.is-loading:hover,
.booking-slot.is-loading:focus-visible {
  background: #fbfaf4;
  box-shadow: none;
  color: #9aa096;
  outline: none;
}

.booking-slot span,
.booking-slot strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-slot span {
  font-size: 10px;
  font-weight: 900;
}

.booking-slot strong {
  font-size: 11px;
  font-weight: 900;
}

.booking-selected {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.booking-calendar-modal .modal-submit {
  margin-top: 18px;
  min-height: 56px;
}

.booking-calendar-modal .modal-submit:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.booking-info-modal,
.booking-payment-modal {
  width: min(560px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
}

.booking-info-modal h2,
.booking-payment-modal h2 {
  font-size: 28px;
  line-height: 1.24;
  word-break: keep-all;
  overflow-wrap: normal;
}

.booking-info-modal > p,
.booking-payment-modal > p {
  word-break: keep-all;
  overflow-wrap: normal;
}

.booking-summary {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
}

.booking-summary div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px 14px;
}

.booking-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.booking-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  word-break: keep-all;
}

.booking-info-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.booking-info-form label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.booking-info-form input,
.booking-duration-select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 15px 14px;
}

.booking-duration-select {
  min-height: 42px;
  padding: 9px 12px;
  font-weight: 900;
}

.booking-info-form input:focus-visible,
.booking-duration-select:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(216, 255, 95, .65);
  outline: none;
}

.booking-form-error {
  margin: 0;
  border: 1px solid #e27b66;
  background: #fff3ef;
  color: #a13320;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 900;
}

.booking-action-row {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(180px, 1fr);
  gap: 10px;
  margin-top: 2px;
}

.modal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 13px 16px;
  white-space: nowrap;
}

.modal-secondary:hover,
.modal-secondary:focus-visible {
  background: #eff1e8;
  outline: none;
}

.booking-info-form .modal-submit {
  margin-top: 0;
  min-height: 52px;
}

.booking-bank-box {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  border: 1px solid #d3ef77;
  background: #f2ffd0;
  padding: 18px;
}

.booking-bank-box strong {
  font-size: 15px;
  font-weight: 900;
}

.booking-bank-box p {
  margin: 0;
  color: #3d4d31;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  word-break: keep-all;
}

.booking-bank-account {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
}

.booking-bank-account b,
.booking-bank-account span {
  white-space: nowrap;
}

.booking-payment-modal .modal-submit {
  margin-top: 20px;
  min-height: 54px;
}

@media (width<=720px) {
  .booking-calendar-modal {
    max-height: 92vh;
    padding: 20px 14px 18px;
  }

  .booking-calendar-header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .booking-calendar-header h2 {
    font-size: 24px;
  }

  .booking-calendar-header p {
    font-size: 12px;
  }

  .booking-week-controls {
    width: 100%;
  }

  .booking-week-controls button {
    flex: 1 0 auto;
  }

  .booking-calendar-title {
    font-size: 14px;
  }

  .booking-calendar-grid {
    min-width: 660px;
  }

  .booking-info-modal h2,
  .booking-payment-modal h2 {
    font-size: 25px;
  }

  .booking-info-modal,
  .booking-payment-modal {
    max-height: 92vh;
  }

  .booking-summary div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .booking-action-row {
    grid-template-columns: 1fr;
  }
}
