/* Booking widget – enhance experience upsell modal (layout-level, matches design mockup) */

body.bw-addon-upsell-modal--open {
  overflow: hidden;
}

body.bw-addon-upsell-modal--open .contentWrapper,
body.bw-product-desc-modal--open .contentWrapper {
  position: relative;
  z-index: 10040;
}

body.bw-addon-upsell-modal--open .homeBanner-wrapper.landing-hero-compact,
body.bw-product-desc-modal--open .homeBanner-wrapper.landing-hero-compact {
  z-index: 10041;
}

body.bw-addon-upsell-modal--open .landing-hero-inner,
body.bw-addon-upsell-modal--open .home-landing-booking-section,
body.bw-product-desc-modal--open .landing-hero-inner,
body.bw-product-desc-modal--open .home-landing-booking-section {
  isolation: auto;
}

.bw-addon-upsell-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.bw-addon-upsell-modal[hidden] {
  display: none !important;
}

.bw-addon-upsell-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.bw-addon-upsell-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(92vh, 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* Header – maroon bar, white title, white close */
.bw-addon-upsell-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  background: #681235;
  color: #fff;
  flex-shrink: 0;
  border-bottom: 0;
}

.bw-addon-upsell-modal__title {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.bw-addon-upsell-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Summary strip – beige background, maroon text */
.bw-addon-upsell-modal__summary-bar {
  padding: 12px 24px;
  background: #f3efe9;
  border-bottom: 1px solid #e8e2da;
  flex-shrink: 0;
}

.bw-addon-upsell-modal__summary {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.bw-addon-upsell-modal__summary-lead {
  color: #555;
  font-weight: 400;
}

.bw-addon-upsell-modal__summary-highlight {
  color: #681235;
  font-weight: 500;
}

.bw-addon-upsell-modal__summary-sep {
  color: #555;
  font-weight: 400;
  padding: 0 0.4em;
}

.bw-addon-upsell-modal__feedback {
  padding: 12px 24px;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 500;
  flex-shrink: 0;
}

.bw-addon-upsell-modal__feedback[hidden] {
  display: none !important;
}

.bw-addon-upsell-modal__feedback--success {
  background: #e8f5e9;
  color: #1b5e20;
  border-bottom: 1px solid #c8e6c9;
}

.bw-addon-upsell-modal__body {
  padding: 24px 20px 16px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
}

.bw-addon-upsell-modal__section,
.bw-addon-upsell-modal__section--upsells,
.bw-addon-upsell-modal__section--addons,
.bw-addon-upsell-modal__upsells-host,
.bw-addon-upsell-modal__addons-host,
.bw-upsell-modal-carousel-wrap,
.bw-upsell-modal-carousel-scroll,
.bw-upsell-modal-carousel {
  background: #fff;
  padding: 0;
}

.bw-addon-upsell-modal__section {
  margin-bottom: 0;
}

.bw-addon-upsell-modal__section-title {
  display: none;
}

/* Footer – white bar, primary Skip */
.bw-addon-upsell-modal__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid #e8e2da;
  flex-shrink: 0;
}

.bw-addon-upsell-modal__footer:has(
  .bw-addon-upsell-modal__back-to-upgrade:not([hidden])
) {
  justify-content: space-between;
}

.bw-addon-upsell-modal__back-to-upgrade {
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #681235;
  background: #fff;
  color: #681235;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.bw-addon-upsell-modal__back-to-upgrade:hover {
  background: #f9f5f7;
  border-color: #530e2a;
  color: #530e2a;
}

.bw-addon-upsell-modal__back-to-upgrade[hidden] {
  display: none !important;
}

.bw-addon-upsell-modal__skip {
  margin: 0;
  margin-left: auto;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #681235;
  background: #681235;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
}

.bw-addon-upsell-modal__skip:hover {
  background: #530e2a;
  border-color: #530e2a;
  color: #fff;
}

/* Carousel */
.bw-upsell-modal-carousel-wrap {
  width: 100%;
  --bw-upsell-carousel-card-max: 310px;
}

.bw-upsell-modal-carousel-outer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.bw-upsell-modal-carousel-wrap.is-overflowing .bw-upsell-modal-carousel-outer {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.bw-upsell-modal-carousel-scroll {
  min-width: 0;
  overflow: hidden;
}

.bw-upsell-modal-carousel {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 4px 8px;
}

.bw-upsell-modal-carousel-wrap.is-overflowing .bw-upsell-modal-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--bw-upsell-carousel-card-max);
  justify-content: start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.bw-upsell-modal-carousel::-webkit-scrollbar {
  display: none;
}

.bw-upsell-modal-slide {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  max-width: var(--bw-upsell-carousel-card-max);
  width: 100%;
  height: 100%;
}

.bw-upsell-modal-carousel-wrap.is-overflowing .bw-upsell-modal-slide {
  flex: 0 0 var(--bw-upsell-carousel-card-max);
  width: var(--bw-upsell-carousel-card-max);
  max-width: var(--bw-upsell-carousel-card-max);
}

.bw-upsell-modal-slide .bw-upsell-modal-addon-card,
.bw-upsell-modal-slide .bw-upsell-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--bw-upsell-carousel-card-max);
  min-height: 100%;
  height: 100%;
}

.bw-upsell-modal-carousel-wrap:not(.is-overflowing) .bw-upsell-modal-carousel-nav,
.bw-upsell-modal-carousel-wrap:not(.is-overflowing) .bw-upsell-modal-carousel-dots {
  display: none;
}

.bw-upsell-modal-carousel-nav {
  align-self: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  background: #fff;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1rem;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.bw-upsell-modal-carousel-nav:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #bbb;
  color: #555;
}

.bw-upsell-modal-carousel-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.bw-upsell-modal-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.bw-upsell-modal-carousel-wrap:not(.is-overflowing) .bw-upsell-modal-carousel-dots {
  margin-top: 0;
}

.bw-upsell-modal-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d9d5d2;
  cursor: pointer;
}

.bw-upsell-modal-carousel-dot.is-active {
  background: #681235;
}

/* Upsell card (mockup layout) */
.bw-upsell-card {
  width: 100%;
  max-width: var(--bw-upsell-carousel-card-max);
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f7f2;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.bw-upsell-card__media {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e8e6e3;
  border-radius: 10px 10px 0 0;
}

.bw-upsell-card__media-brand {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.bw-upsell-card__media-brand-line {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bw-upsell-card__media-brand-accent {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
}

.bw-upsell-card__content {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bw-upsell-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.bw-upsell-card__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  flex: 1;
  min-width: 0;
}

.bw-upsell-card__price {
  flex-shrink: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
}

.bw-upsell-card__location {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #666;
}

.bw-upsell-card__duration {
  margin: 0;
  padding-bottom: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bw-upsell-card__tags-wrap {
  padding-top: 12px;
  margin-bottom: 12px;
  border-top: 1px dashed #b8b4ad;
}

.bw-upsell-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bw-upsell-card__tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.6875rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #e8eae3;
  color: #3d4a3f;
}

.bw-upsell-card__learn-wrap {
  margin-bottom: 14px;
}

.bw-upsell-card__learn,
.bw-upsell-modal-learn-more.bw-upsell-card__learn {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #222;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.bw-upsell-card__learn:hover,
.bw-upsell-modal-learn-more.bw-upsell-card__learn:hover {
  color: #111;
}

.bw-upsell-card__learn-body {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #555;
}

.bw-upsell-card__upgrade,
.bw-addon-upsell-modal .bw-upsell-modal-card-upgrade {
  width: 100%;
  margin-top: auto;
  background: #2d5135;
  border-color: #2d5135;
  color: #fff;
}

.bw-upsell-card__upgrade:hover,
.bw-addon-upsell-modal .bw-upsell-modal-card-upgrade:hover {
  background: #244229;
  border-color: #244229;
  color: #fff;
}

.bw-upsell-card__upgrade.bw-upsell-action-btn--loading,
.bw-addon-upsell-modal
  .bw-upsell-modal-card-upgrade.bw-upsell-action-btn--loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  cursor: wait;
  pointer-events: none;
}

.bw-upsell-action-btn__spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bw-upsell-action-btn-spin 0.65s linear infinite;
}

@keyframes bw-upsell-action-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Legacy upgrade-service markup inside modal (fallback) */
.bw-addon-upsell-modal .upgrade-service .card .card-header::before {
  display: none;
}

.bw-addon-upsell-modal .upgrade-service .card .card-header {
  min-height: 168px;
  background-size: cover;
  background-position: center;
}

.bw-addon-upsell-modal .upgrade-service .lounge-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.bw-addon-upsell-modal .upgrade-service .lounge-top .card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
}

.bw-addon-upsell-modal .upgrade-service .lounge-top .lounge-loc {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #666;
  margin-top: 4px;
}

.bw-addon-upsell-modal .upgrade-service .upgrade-price {
  font-weight: 700;
  white-space: nowrap;
}

.bw-addon-upsell-modal .upgrade-service .card-text {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.bw-addon-upsell-modal .upgrade-service .lounge-tags .tag.pink {
  background: #e8f4ea;
  color: #2d5a3d;
  border: 0;
}

.bw-addon-upsell-modal .upgrade-service .learn-more-btn {
  color: #681235;
  text-decoration: underline;
  font-size: 0.8125rem;
}

.bw-addon-upsell-modal .upgrade-service .card .card-body .btn-primary {
  width: 100%;
  background: #2d6a4f;
  border-color: #2d6a4f;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
}

/* Add-on cards */
.bw-upsell-modal-addon-card {
  width: 100%;
  max-width: var(--bw-upsell-carousel-card-max);
  border: 1px solid #e5e2de;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.bw-upsell-modal-addon-card__media {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e8e6e3;
}

.bw-upsell-modal-addon-card__body {
  background-color: #f5f5f4;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.bw-upsell-modal-addon-card__content {
  flex: 1 1 auto;
  min-height: 0;
}

.bw-upsell-modal-addon-card__footer {
  flex-shrink: 0;
  margin-top: auto;
}

.bw-upsell-modal-addon-card__title {
  margin: 0 0 4px;
  font-weight: 500;
}

.bw-upsell-modal-addon-card__learn {
  font-size: 0.8125rem;
  color: #681235;
  text-decoration: underline;
  margin-bottom: 12px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.bw-upsell-modal-addon-card__guest-rows {
  margin-bottom: 10px;
}

.bw-upsell-modal-addon-card__guest-rows .bw-upsell-modal-addon-card__qty-row {
  margin-bottom: 8px;
}

.bw-upsell-modal-addon-card__all-guests {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #444;
  margin: 4px 0 0;
  cursor: pointer;
}

.bw-upsell-modal-addon-card__all-guests input {
  margin: 0;
}

.bw-upsell-modal-addon-card__qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bw-upsell-modal-addon-card__qty-label {
  font-size: 0.875rem;
  color: #444;
}

.bw-upsell-modal-addon-card__number {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 25px;
  overflow: hidden;
}

.bw-upsell-modal-addon-card__number button {
  width: 36px;
  height: 30px;
  border: 0;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  background-color: #fff;
  color: #671235;
}

.bw-upsell-modal-addon-card__number button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bw-upsell-modal-addon-card__number input {
  width: 40px;
  height: 30px;
  border: 0;
  text-align: center;
  font-size: 0.9375rem;
}

.bw-upsell-modal-addon-card__total {
  font-size: 0.875rem;
  margin: 0 0 12px;
}

.bw-upsell-modal-addon-card__add {
  width: 100%;
}

.bw-upsell-modal-addon-card__total b {
  font-weight: 700;
}

.bw-upsell-modal-addon-card--added .bw-upsell-modal-addon-card__add,
.bw-upsell-modal-addon-card__add:disabled {
  cursor: default;
  opacity: 0.85;
}

.bw-upsell-modal-addon-card--added .bw-upsell-modal-addon-card__add:hover {
  background: #6b6b6b;
  border-color: #6b6b6b;
}

@media (max-width: 767.98px) {
  .bw-addon-upsell-modal {
    padding: 0;
    align-items: stretch;
  }

  .bw-addon-upsell-modal__panel {
    width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .bw-addon-upsell-modal__header,
  .bw-addon-upsell-modal__summary-bar,
  .bw-addon-upsell-modal__footer {
    padding-left: 16px;
    padding-right: 16px;
  }

}

@media (max-width: 479.98px) {
  .bw-addon-upsell-modal__body {
    padding: 0 15px;
  }

  .bw-upsell-modal-carousel-nav {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

@media (max-width: 450px) {
  .bw-upsell-modal-carousel-wrap {
    --bw-upsell-carousel-card-max: 250px;
  }
}
