/* ============================================================
   CLOUD9 DUTY FREE — top banner + Priority Boarding pop-up
   Self-contained: every selector is prefixed c9df- so nothing
   existing on the site is affected.
   ============================================================ */

/* ---------- Top banner ---------- */
.c9df-banner { display: block; }
.c9df-banner[hidden] { display: none; }

.c9df-banner__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.6rem 16px;
  border: 0;
  border-radius: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.c9df-banner__bar:hover { text-decoration: underline; text-underline-offset: 3px; }
.c9df-banner__bar:focus-visible { outline: 3px solid currentColor; outline-offset: -5px; }

.c9df-banner--1 .c9df-banner__bar { background: #D22B2B; color: #ffffff; }
.c9df-banner--2 .c9df-banner__bar { background: #D22B2B; color: #ffffff; }

@media (max-width: 600px) {
  .c9df-banner__bar { font-size: 0.75rem; letter-spacing: 0.05em; }
}

/* While either Duty Free banner is live, the older 10%-off pop-up is paused
   (it still opens when the URL has ?popup, e.g. /mailingListDiscountCode). */
html.c9df-pause-legacy #popup-overlay { display: none !important; }

/* ---------- Priority Boarding pop-up ---------- */
.c9df-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 17, 17, 0.6);
  box-sizing: border-box;
}
.c9df-overlay[hidden] { display: none; }

.c9df-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #AED6F0;
  color: #111111;
  border-radius: 12px;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.c9df-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  color: #111111;
  cursor: pointer;
}
.c9df-modal__close:hover { background: rgba(0, 0, 0, 0.08); }
.c9df-modal__close:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }

.c9df-modal__logo { display: block; height: 30px; width: auto; margin: 0 auto 1.25rem; }

.c9df-modal__pill {
  display: inline-block;
  background: #111111;
  color: #D4FB0D;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.c9df-modal__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #111111;
}
.c9df-modal__title span { color: #D22B2B; }

.c9df-modal__text {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  color: #111111;
}

.c9df-form { text-align: left; }
.c9df-form__label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: #111111;
}
.c9df-form__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 2px solid #111111;
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  margin-bottom: 0.75rem;
}
.c9df-form__input:focus { outline: 3px solid #D22B2B; outline-offset: 1px; }

.c9df-form__btn {
  display: block;
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: 6px;
  background: #D22B2B;
  color: #ffffff;
  cursor: pointer;
}
.c9df-form__btn:hover { opacity: 0.9; }
.c9df-form__btn:focus-visible { outline: 3px solid #111111; outline-offset: 2px; }
.c9df-form__btn[disabled] { opacity: 0.7; cursor: wait; }

.c9df-form__error {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9e1b1b;
  text-align: center;
}
.c9df-form__error:empty { display: none; }

.c9df-modal__small {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: #333333;
  text-align: center;
}

.c9df-success { text-align: center; }
.c9df-success[hidden] { display: none; }
.c9df-success:focus { outline: none; }
.c9df-success__text {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0.25rem 0 0;
  color: #111111;
}
.c9df-success__btn {
  margin-top: 1.25rem;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .c9df-modal { padding: 2rem 1.25rem 1.5rem; }
  .c9df-modal__title { font-size: 1.85rem; }
}

/* ---------- /duty-free page ---------- */
.c9df-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.c9df-page {
  background: #AED6F0;
  color: #111111;
  padding: 4.5rem 16px 5rem;
  min-height: 60vh;
}
.c9df-page__inner { text-align: center; }

.c9df-page__intro { max-width: 620px; margin: 0 auto; }

.c9df-page__pill { margin-bottom: 1.25rem; }

.c9df-page__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #111111;
  margin: 0 0 1.25rem;
}
.c9df-page__title span { color: #D22B2B; }
.c9df-page__title--closed {
  text-transform: none;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.15;
}

.c9df-page__text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #111111;
  margin: 0 0 2rem;
}

.c9df-page__card {
  max-width: 460px;
  margin: 0 auto;
  background: #ffffff;
  color: #111111;
  border-radius: 12px;
  padding: 1.75rem 1.5rem 1.25rem;
  text-align: left;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
}

.c9df-page__cta { display: inline-block; text-decoration: none; margin-top: 0.5rem; }

/* Product (multi-pack BOGOF) */
.c9df-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}
.c9df-product__image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ffffff;
}
.c9df-product__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.c9df-product__title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }
.c9df-product__line {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #D22B2B;
  margin: 0 0 1rem;
}
.c9df-product__text { margin-bottom: 1.5rem; }

.c9df-product__price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}
.c9df-product__now { font-size: 2rem; font-weight: 700; color: #111111; }
.c9df-product__was { font-size: 1.15rem; color: rgba(17, 17, 17, 0.55); }

.c9df-product__cta { width: 100%; text-align: center; }
.c9df-product__cta[disabled] { opacity: 0.7; cursor: wait; }

.c9df-product__error { margin: 0.75rem 0 0; color: #9e1b1b; font-weight: 600; }
.c9df-product__error:empty { display: none; }

.c9df-product__small {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #333333;
}

@media (max-width: 760px) {
  .c9df-page { padding: 3rem 16px 4rem; }
  .c9df-product { grid-template-columns: 1fr; gap: 2rem; }
  .c9df-product__image { aspect-ratio: 1 / 1; }
  .c9df-page__card { padding: 1.5rem 1.25rem 1rem; }
}

/* ---------- Duty Free multi-pack chooser ---------- */
.c9df-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.25rem 0 0.75rem; }
.c9df-pack { background: #ffffff; border-radius: 16px; padding: 14px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.c9df-pack__name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; margin: 0; text-transform: uppercase; }
.c9df-pack__sachets { margin: 0; font-size: 0.85rem; }
.c9df-pack .c9df-product__price { margin: 4px 0 8px; }
.c9df-pack .c9df-product__cta { margin-top: auto; width: 100%; padding-left: 8px; padding-right: 8px; font-size: 0.85rem; }
@media (max-width: 600px) { .c9df-packs { grid-template-columns: 1fr; } }

/* ---------- Homepage Duty Free hero + multi-pack note (open stage only) ---------- */
.c9df-hero[hidden], .c9df-pack-note[hidden] { display: none; }
.c9df-hero {
  background: #AED6F0;
  color: #111111;
  padding: 3.5rem 16px;
  text-align: center;
  border-bottom: 6px solid #D32F21;
}
.c9df-hero__inner { max-width: 720px; margin: 0 auto; }
.c9df-hero .c9df-modal__pill { margin-bottom: 1rem; }
.c9df-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #111111;
}
.c9df-hero__title span { color: #D32F21; }
.c9df-hero__text { font-size: 1.125rem; line-height: 1.5; margin: 0 auto 1.5rem; max-width: 560px; }
.c9df-hero__cta { display: inline-block; }
.c9df-hero__small { font-size: 0.8rem; color: #333333; margin: 1rem 0 0; }
.c9df-hero__small a { color: #111111; text-decoration: underline; }

.c9df-pack-note {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  background: #D32F21;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
}
