#activity-booking-modal-root,
#activity-booking-modal.booking-modal {
  font-family:
    Roboto,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Oxygen,
    Ubuntu,
    Cantarell,
    Fira Sans,
    Droid Sans,
    Helvetica Neue,
    sans-serif;
  color: #1f2937;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(226, 232, 240, 0.72);
  backdrop-filter: blur(6px);
}

.booking-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  height: min(600px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #e6ebf4;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  transition: all 0.3s ease-in-out;
}
.booking-modal__panel:has(iframe) {
  height: min(980px, calc(100vh - 32px));
}

.book-embed-nav {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 8px;
}

.booking-modal-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.booking-modal-status,
.booking-modal-language {
  position: relative;
}

.booking-modal-status[open],
.booking-modal-language[open] {
  z-index: 20;
}

.booking-modal-status > summary,
.booking-modal-language > summary {
  list-style: none;
  cursor: pointer;
}

.booking-modal-status > summary::-webkit-details-marker,
.booking-modal-language > summary::-webkit-details-marker {
  display: none;
}

.booking-modal-status > summary {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-height: 32px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.booking-modal-status > summary:hover,
.booking-modal-status[open] > summary {
  transform: translateY(-1px);
}

.booking-modal-status--secured > summary {
  color: #1f8a5b;
  transition: all 0.2s ease;
  padding: 8px 12px;
}

.booking-modal-status--secured:hover > summary {
  background-color: #d9f2e1;
}

.booking-modal-status--safety > summary {
  color: #5b21d0;
  transition: all 0.2s ease;
  padding: 8px 12px;
}

.booking-modal-status--safety:hover > summary {
  background-color: #f0e6ff;
}

.booking-modal-status__icon,
.booking-modal-language__icon,
.booking-modal-status__caret,
.booking-modal-language__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.booking-modal-status__icon {
  width: 22px;
  height: 22px;
}

.booking-modal-language__icon {
  width: 16px;
  height: 16px;
}

.booking-modal-status__caret,
.booking-modal-language__caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.booking-modal-status__caret::before,
.booking-modal-language__caret::before {
  content: "";
  width: 7px;
  height: 5px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 4.88'%3E%3Cpath d='M.3 0C0 0-.1.2.1.44L3.2 4.7a.37.37 0 0 0 .64 0L6.9.44C7.1.2 7 0 6.7 0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 4.88'%3E%3Cpath d='M.3 0C0 0-.1.2.1.44L3.2 4.7a.37.37 0 0 0 .64 0L6.9.44C7.1.2 7 0 6.7 0z'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 7px 5px;
  mask-size: 7px 5px;
}

.booking-modal-status[open] .booking-modal-status__caret,
.booking-modal-language[open] .booking-modal-language__caret {
  transform: rotate(180deg);
}

.booking-modal-status__icon svg,
.booking-modal-language__icon svg,
.booking-modal-status__caret svg,
.booking-modal-language__caret svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.booking-modal-status__caret svg,
.booking-modal-language__caret svg {
  display: none;
}

.booking-modal-flyout {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: min(290px, calc(100vw - 48px));
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e7edf7;
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
  color: #1f2937;
}

.booking-modal-flyout::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 26px;
  width: 20px;
  height: 20px;
  border-top: 1px solid #e7edf7;
  border-left: 1px solid #e7edf7;
  background: #ffffff;
  transform: rotate(45deg);
}

.booking-modal-flyout--safety {
  width: min(290px, calc(100vw - 48px));
}

.booking-modal-flyout p {
  margin: 0;
}

.booking-modal-flyout--secured p {
  font-size: 13px;
  line-height: 1.4;
}

.booking-modal-flyout--safety p {
  font-size: 13px;
  line-height: 1.55;
}

.booking-modal-flyout a {
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

.booking-modal-flyout a:hover {
  text-decoration: underline;
}

.close-embed-control {
  position: absolute;
    top: 12px;
    right: 12px;
  display: flex;
  align-items: center;
  z-index: 10000;
}

.close-embed-button {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-embed-button:hover {
  background: #f4f6fb;
}

.close-embed-button svg {
  width: 22px;
  height: 22px;
  fill: #111827;
}

.confirm-modal {
  position: absolute;
  top: calc(100% + 12px);
  right: -12px;
  width: min(290px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid #e7edf7;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  z-index: 40;
}

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

.confirm-modal h2 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  color: #111827;
  margin: 0 0 10px;
}

.confirm-modal p {
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
  margin: 0 0 18px;
}

.confirm-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-stay-button,
.confirm-leave-button {
  min-height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.confirm-stay-button {
  background: #edf4ff;
  color: #2452d6;
}

.confirm-leave-button {
  background: #111827;
  color: #ffffff;
}

.flow-breadcrumbs {
  border-bottom: 0;
  padding: 0 28px 16px;
}

.flow-breadcrumbs ol,
.flow-breadcrumbs ol > li {
  align-items: center;
}

.flow-breadcrumbs ol {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-breadcrumbs ol > li {
  display: inline-flex;
  gap: 0;
}

.flow-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-breadcrumbs a:hover {
  border-radius: 14px;
  border: 1px solid #e3e9fb;
  background: #f5f7ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.flow-breadcrumbs .icon-home path {
  fill: #2b4b96;
}

.flow-breadcrumbs a.activity-booking-breadcrumb-home--disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.5;
}

.activity-package-picker {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 0;
  padding: 0 16px 22px;
  overflow: auto;
  background: #ffffff;
}

.activity-package-picker__toolbar {
  display: none;
  justify-content: flex-end;
  align-items: center;
  padding-top: 6px;
}

.activity-package-picker__search {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d6dfec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.activity-package-picker__search-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #244a93;
  font-size: 15px;
  font-weight: 500;
}

.activity-package-picker__search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 42px;
  background: #244a93;
}

.activity-package-picker__search-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.activity-package-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  margin-top: 50px;
}

.activity-package-card {
  position: relative;
  min-height: 182px;
  border-radius: 6px;
  overflow: hidden;
  background: #233552;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  cursor: pointer;
}

.activity-package-card__media,
.activity-package-card__overlay,
.activity-package-card__content {
  position: absolute;
  inset: 0;
}

.activity-package-card__media {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.02);
}

.activity-package-card--gift-card .activity-package-card__media {
  background-image:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.34),
      transparent 38%
    ),
    linear-gradient(135deg, #1d7fa8 0%, #214f8f 42%, #16386f 100%);
}

.activity-package-card__overlay {
  background: linear-gradient(180deg, transparent 0, #000);
  bottom: -20px;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  -webkit-transition: bottom 0.4s ease;
  transition: bottom 0.4s ease;
}

.activity-package-card__content {
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: self-end;
  padding: 16px;
  gap: 20px;
}

.activity-package-card__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 8px);
}

.activity-package-card__title,
.activity-package-card__description {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.activity-package-card__title {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 500;
}

.activity-package-card:hover .activity-package-card__title {
  text-decoration: underline;
}

.activity-package-card__description {
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.activity-package-card__action {
  display: flex;
  justify-content: flex-end;
}

.activity-package-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #244a93;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(9, 25, 59, 0.34);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
  width: max-content;
}

.activity-package-card__button:hover {
  transform: translateY(-1px);
  background: #1c3d7c;
  box-shadow: 0 14px 28px rgba(9, 25, 59, 0.4);
}

.activity-package-card__button--link {
  cursor: pointer;
}

#bookingModalCalendarContainer {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  flex: 1 1 auto;
}

.activity-booking-calendar-shell-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 220px;
  padding: 40px 16px;
  color: #374151;
  font-size: 15px;
  background: #ffffff;
}

.activity-booking-calendar-frame-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  height: 100%;
    min-height: calc(100% - 62px);
}

.activity-booking-calendar-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #ffffff;
}

.activity-booking-calendar-frame-wrap--ready .activity-booking-calendar-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.activity-booking-calendar-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #374151;
  font-size: 14px;
}

.activity-booking-calendar-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #489ee0;
  border-radius: 50%;
  animation: activity-booking-calendar-spin 0.75s linear infinite;
}

@keyframes activity-booking-calendar-spin {
  to {
    transform: rotate(360deg);
  }
}

.activity-calendar-remote-content,
.booking-modal-calendar-remote-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  height: 100%;
    min-height: calc(100vh - 62px);
}

.item-header-wide > .tr > .td {
  background-color: #4c5761;
  background-position: 50% 50%;
  background-size: cover;
  border-bottom: 1px solid #e7edf7;
  box-sizing: border-box;
  color: #fff;
  min-height: 175px;
  padding: 25px 16px;
  display: flex;
  align-items: end;
}

.item-header-wide h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.item-header-wide h1,
.item-header-wide p {
  text-shadow:
    1px 1px 4px rgba(0, 0, 0, 0.75),
    0 0 10px rgba(0, 0, 0, 0.5);
}

.item-header-wide p {
  margin: 5px 0 0;
  font-size: 14px;
}

.book-embed-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px 20px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #e7edf7;
}

.book-embed-footer-left,
.book-embed-footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-embed-footer-left {
  align-items: flex-start;
}

.book-embed-footer-right {
  align-items: flex-end;
  text-align: right;
}

.booking-modal-language > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}

.book-embed-footer .booking-modal-flyout {
  top: auto;
  bottom: calc(100% + 14px);
  left: 0;
  width: 180px;
  padding: 12px;
}

.book-embed-footer .booking-modal-flyout::before {
  top: auto;
  bottom: -10px;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid #e7edf7;
  border-bottom: 1px solid #e7edf7;
}

.booking-modal-language-option {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.book-embed-fine-print {
  color: #8a94a6;
  font-size: 12px;
}

.powered-by-fh,
.dsa-link a {
  color: #64748b;
}

.powered-by-fh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
}

@media only screen and (min-width: 680px) {
  .item-header-wide > .tr > .td {
    padding-left: 55px;
    padding-right: 40px;
  }

  .flow-breadcrumbs ol {
    padding: 0;
  }
}

@media (max-width: 767px) {
  .booking-modal {
    padding: 8px;
  }

  .booking-modal__panel {
    height: min(100%, calc(100vh - 16px));
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }

  .book-embed-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-embed-nav {
    padding: 16px 16px 8px;
    gap: 12px;
  }

  .booking-modal-status-strip {
    gap: 10px;
  }

  .booking-modal-status > summary {
    min-height: 48px;
    padding: 0 14px;
    font-size: 14px;
  }

  .booking-modal-flyout,
  .booking-modal-flyout--safety {
    width: min(calc(100vw - 32px), 520px);
    padding: 22px 20px;
  }

  .flow-breadcrumbs {
    padding: 0 20px 14px;
  }

  .activity-package-picker {
    padding: 0 12px 18px;
  }

  .activity-package-picker__toolbar {
    justify-content: stretch;
    display: none;
  }

  .activity-package-picker__search {
    width: 100%;
  }

  .activity-package-picker__search-label {
    flex: 1 1 auto;
  }

  .activity-package-picker__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .activity-package-card {
    min-height: 164px;
  }

  .book-embed-footer {
    padding: 16px 20px 20px;
  }

  .book-embed-footer-right {
    align-items: flex-start;
    text-align: left;
  }

  .book-embed-footer .booking-modal-flyout {
    width: min(220px, calc(100vw - 32px));
  }

  .confirm-modal {
    right: 0;
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  .activity-package-picker__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
