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

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: clamp(12px, 2vw, 28px);
  position: fixed;
  z-index: 2000;
}

.booking-modal__backdrop {
  background: rgb(14 25 22 / 82%);
  border: 0;
  cursor: default;
  inset: 0;
  padding: 0;
  position: absolute;
}

.booking-modal__dialog {
  background: #fff;
  border: 1px solid rgb(255 255 255 / 26%);
  box-shadow: 0 28px 90px rgb(0 0 0 / 36%);
  display: flex;
  flex-direction: column;
  height: min(92dvh, 980px);
  isolation: isolate;
  max-width: 1320px;
  min-height: 560px;
  overflow: hidden;
  position: relative;
  width: min(100%, 1320px);
}

.booking-modal__header {
  align-items: center;
  background: #f7f4ed;
  border-bottom: 1px solid rgb(44 67 58 / 16%);
  display: flex;
  flex: 0 0 auto;
  gap: 28px;
  justify-content: space-between;
  min-height: 92px;
  padding: 15px clamp(18px, 2.4vw, 34px);
}

.booking-modal__heading .eyebrow {
  color: var(--thhs-green, #284f43);
  font-size: 0.625rem;
  margin: 0 0 3px;
}

.booking-modal__heading h2 {
  color: var(--thhs-ink, #14231f);
  font-family: var(--thhs-display, Georgia, serif);
  font-size: clamp(1.5rem, 2.2vw, 2.125rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

.booking-modal__heading > p:last-child {
  color: #56635e;
  font-size: 0.75rem;
  margin: 5px 0 0;
}

.booking-modal__header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
}

.booking-modal__header-actions > a {
  align-items: center;
  color: var(--thhs-green, #284f43);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 6px;
  text-decoration: none;
}

.booking-modal__header-actions > a:hover,
.booking-modal__header-actions > a:focus-visible,
.booking-modal__footer a:hover,
.booking-modal__footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-modal__close {
  align-items: center;
  background: var(--thhs-green, #284f43);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: 300 1.75rem/1 Arial, sans-serif;
  height: 44px;
  justify-content: center;
  padding: 0 0 3px;
  width: 44px;
}

.booking-modal__close:hover,
.booking-modal__close:focus-visible {
  background: #173a31;
  outline: 3px solid rgb(40 79 67 / 24%);
  outline-offset: 2px;
}

.booking-modal__frame-wrap {
  background: #fff;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.booking-modal__frame {
  background: #fff;
  border: 0;
  display: block;
  height: 100%;
  opacity: 0;
  width: 100%;
}

.booking-modal__frame.is-loaded {
  opacity: 1;
}

.booking-modal__loading {
  align-items: center;
  background: #fff;
  color: #40544d;
  display: flex;
  flex-direction: column;
  gap: 14px;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 1;
}

.booking-modal__loading[hidden] {
  display: none;
}

.booking-modal__loading span {
  animation: thhs-booking-spin 0.8s linear infinite;
  border: 3px solid #d9e0dd;
  border-radius: 50%;
  border-top-color: var(--thhs-green, #284f43);
  height: 36px;
  width: 36px;
}

.booking-modal__loading strong {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.booking-modal__footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid rgb(44 67 58 / 14%);
  color: #65716c;
  display: flex;
  flex: 0 0 auto;
  font-size: 0.6875rem;
  gap: 20px;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px clamp(18px, 2.4vw, 34px);
}

.booking-modal__footer p {
  margin: 0;
}

.booking-modal__footer a {
  color: var(--thhs-green, #284f43);
  font-weight: 700;
  text-decoration: none;
}

@keyframes thhs-booking-spin {

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {

  .booking-modal {
    padding: 0;
  }

  .booking-modal__dialog {
    border: 0;
    height: 100dvh;
    max-height: none;
    min-height: 0;
    width: 100%;
  }

  .booking-modal__header {
    gap: 12px;
    min-height: 76px;
    padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  }

  .booking-modal__heading .eyebrow,
  .booking-modal__heading > p:last-child,
  .booking-modal__header-actions > a,
  .booking-modal__footer p {
    display: none;
  }

  .booking-modal__heading h2 {
    font-size: 1.4rem;
  }

  .booking-modal__close {
    height: 42px;
    width: 42px;
  }

  .booking-modal__footer {
    justify-content: center;
    min-height: calc(38px + env(safe-area-inset-bottom));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 650px) and (min-width: 701px) {

  .booking-modal {
    padding: 10px;
  }

  .booking-modal__dialog {
    height: calc(100dvh - 20px);
    min-height: 0;
  }

  .booking-modal__header {
    min-height: 72px;
    padding-block: 10px;
  }

  .booking-modal__heading > p:last-child,
  .booking-modal__footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .booking-modal__loading span {
    animation-duration: 1.8s;
  }
}
