.nm-package-book {
  margin-top: 18px;
}

.nm-package-unpriced {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, .45);
}

.booking-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: var(--bg, #faf6f6);
  color: var(--navy, #333);
  border: 1px solid var(--line, #e7dde2);
  border-radius: 18px;
  box-shadow: var(--shadow, 0 14px 45px rgba(45, 42, 61, .08));
  padding: 22px;
}

.booking-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line, #e7dde2);
  border-radius: 50%;
  background: #fff;
  color: var(--navy, #333);
  font-size: 22px;
  line-height: 1;
}

.booking-close:focus-visible,
.booking-day:focus-visible,
.booking-slot:focus-visible,
.booking-dialog input:focus-visible,
.booking-dialog textarea:focus-visible,
.booking-dialog button:focus-visible {
  outline: 2px solid var(--pink, #d97cb5);
  outline-offset: 2px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  transition: opacity .2s ease;
}

.booking-layout.is-updating {
  opacity: .55;
}

.booking-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--pink-light, #f4ddeb);
}

.booking-kicker {
  margin: 0 0 6px;
  color: var(--pink, #d97cb5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}

.booking-dialog h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
}

.booking-meta,
.booking-prices p {
  margin: 0 0 6px;
  color: var(--muted, #747474);
}

.booking-prices strong {
  color: var(--navy, #333);
}

.booking-dialog h3 {
  margin: 22px 0 10px;
  font-size: 13px;
  letter-spacing: .12em;
}

.booking-month-bar,
.booking-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.booking-month-bar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.booking-month-bar button,
.booking-day {
  min-height: 44px;
  border: 1px solid var(--line, #e7dde2);
  border-radius: 8px;
  background: #fff;
  color: var(--navy, #333);
  font: inherit;
}

.booking-month-bar button {
  padding: 0 12px;
}

.booking-day {
  padding: 8px 10px;
}

.booking-day {
  width: calc(14.28% - 8px);
  min-width: 42px;
}

.booking-day.is-selected {
  background: var(--pink, #d97cb5);
  border-color: var(--pink, #d97cb5);
  color: #fff;
}

.booking-day.is-selected:disabled {
  background: #fff;
  color: var(--pink, #d97cb5);
  border-color: var(--pink, #d97cb5);
  opacity: 1;
}

.booking-switcher-row {
  display: flex;
  gap: 8px;
  max-width: 100%;
}

.booking-pack {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e7dde2);
  border-radius: 12px;
  background: #fff;
  color: var(--navy, #333);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.booking-pack strong {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.3;
}

.booking-pack small {
  color: var(--muted, #747474);
  font-size: 13px;
  line-height: 1.3;
}

.booking-pack-mark {
  margin-right: 4px;
}

.booking-pack:hover:not(.is-selected) {
  border-color: #e0b8cf;
  box-shadow: 0 6px 14px rgba(45, 42, 61, .06);
}

.booking-pack.is-selected {
  background: var(--pink, #d97cb5);
  border-color: var(--pink, #d97cb5);
  color: #fff;
}

.booking-pack.is-selected small {
  color: rgba(255, 255, 255, .92);
}

.booking-days.is-loading,
.booking-slots.is-loading {
  opacity: .55;
}

.booking-slots.is-loading {
  min-height: 48px;
  pointer-events: none;
}

.booking-day:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.booking-slot-pack {
  margin: 0 0 8px;
  color: var(--muted, #747474);
  font-size: 13px;
  font-weight: 500;
}

.booking-slot-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4eef2;
  color: #5c5156;
}

.booking-slot-hint-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #d9c3cf;
  color: #6d3d58;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  line-height: 18px;
  text-align: center;
}

.booking-slot-hint p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.booking-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line, #e7dde2);
  border-radius: 14px;
  background: #fff;
  color: var(--navy, #333);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.booking-slot strong {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
}

.booking-slot small {
  color: var(--muted, #747474);
  font-size: 12px;
  line-height: 1.3;
}

.booking-slot:hover:not(:disabled) {
  border-color: #e0b8cf;
  box-shadow: 0 8px 18px rgba(45, 42, 61, .06);
}

.booking-slot.is-selected {
  background: var(--pink, #d97cb5);
  border-color: var(--pink, #d97cb5);
  color: #fff;
  box-shadow: 0 10px 22px rgba(217, 124, 181, .28);
}

.booking-slot.is-selected small {
  color: rgba(255, 255, 255, .88);
}

.booking-slot.is-selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 13px;
  font-weight: 700;
}

.booking-slot {
  position: relative;
}

.booking-slot.is-unavailable,
.booking-slot:disabled {
  background: #f4f1f2;
  border-color: #ece7ea;
  color: #9a9196;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
  text-decoration: none;
}

.booking-slot.is-unavailable strong {
  color: #8a8387;
}

.booking-slot.is-unavailable small {
  color: #b0a8ac;
}

.booking-choice {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line, #e7dde2);
}

.booking-choice[hidden] {
  display: none;
}

.booking-choice p {
  margin: 0;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px;
  font-size: 13px;
}

.booking-choice p + p {
  margin-top: 4px;
}

.booking-choice span {
  color: var(--muted, #747474);
}

.booking-choice strong {
  color: var(--navy, #333);
  font-weight: 650;
}

.booking-fields {
  display: grid;
  gap: 10px;
}

.booking-fields label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.booking-fields input,
.booking-fields textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line, #e7dde2);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.booking-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-card-field {
  height: 44px;
  border: 1px solid var(--line, #e7dde2);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.booking-card-field.is-invalid {
  border-color: #9a3d62;
}

.booking-fields select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line, #e7dde2);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.booking-field-error {
  min-height: 1em;
  color: #9a3d62;
  font-size: 12px;
}

.booking-paypal-alt {
  margin-top: 14px;
}

.booking-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
}

.booking-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.booking-alert {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #9a3d62;
}

.booking-methods {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.booking-method {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #eadfdf;
  border-radius: 12px;
  cursor: pointer;
}

.booking-method input {
  accent-color: #9a3d62;
}

@media (max-width: 700px) {
  .booking-modal {
    padding: 0;
    place-items: end stretch;
  }

  .booking-dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px 24px;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-photo {
    height: 180px;
  }

  .nm-package-book,
  .booking-submit {
    width: 100%;
  }

  .booking-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-switcher-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .booking-pack {
    flex: 0 0 148px;
    scroll-snap-align: start;
  }
}
