/* ==========================================================================
   PROMO POPUP - ifieldsmart.com (v6.0, white theme)
   Event / campaign popup that opens at 10% page scroll (how often: CONFIG.remember in promo-popup.js). Self-contained:
   works on any page with only this file and promo-popup.js (no jQuery or Bootstrap needed). All text, links, dates,
   the venue and the countdown target are set in the CONFIG block at the top of promo-popup.js.
   Desktop / tablet: centred card, 3D stage left (amber pyramid, floor disc, countdown), content right.
   Phones (<= 640px): bottom sheet, stage on top.
   Colours: a white theme with cool-grey shading and slate text; amber #F6B93B is kept for the button and small accents.
   ========================================================================== */

.ifs-promo {
  --ifsp-amber: #F6B93B;
  --ifsp-amber-hover: #EAA826;
  --ifsp-amber-deep: #B7791F;   /* amber for icons and small text: readable on white */
  --ifsp-brown: #2B3445;   /* (name kept: now the slate used for numbers) */
  --ifsp-text: #1E2430;
  --ifsp-body: #5B6678;
  --ifsp-muted: #8892A3;
  --ifsp-line: rgba(30, 36, 48, 0.12);
  --ifsp-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: fixed;
  inset: 0;
  z-index: 1000001; /* above the site's floating buttons (999999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  visibility: hidden;
  pointer-events: none;
}

.ifs-promo.is-open {
  visibility: visible;
  pointer-events: auto;
}

.ifs-promo *,
.ifs-promo *::before,
.ifs-promo *::after {
  box-sizing: border-box;
}

/* ---------- backdrop ---------- */
.ifs-promo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 30, 44, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s var(--ifsp-ease);
}

.ifs-promo.is-open .ifs-promo__backdrop {
  opacity: 1;
}

/* ---------- card ---------- */
.ifs-promo__card {
  position: relative;
  display: grid;
  grid-template-columns: 46% 54%;
  width: min(900px, 100%);
  min-height: min(490px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border-radius: 24px;
  color: var(--ifsp-text);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(160, 175, 205, 0.16) 0%, rgba(160, 175, 205, 0) 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 40px 100px -28px rgba(30, 36, 48, 0.4),
    0 12px 30px -12px rgba(30, 36, 48, 0.16);
  opacity: 0;
  transform: translateY(24px) scale(0.965);
  transition: opacity 0.5s var(--ifsp-ease), transform 0.6s var(--ifsp-ease);
}

.ifs-promo.is-open .ifs-promo__card {
  opacity: 1;
  transform: none;
}

/* a thin light edge along the top of the card */
.ifs-promo__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(150, 165, 195, 0.7), transparent);
}

/* faint blueprint grid behind the content */
.ifs-promo__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 36, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 36, 48, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(90% 80% at 80% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(90% 80% at 80% 20%, #000 0%, transparent 75%);
}

/* ---------- media (left) ---------- */
.ifs-promo__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #F3E9D2;
}

.ifs-promo__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--ifsp-ease);
}

.ifs-promo.is-open .ifs-promo__media img {
  transform: scale(1);
}

/* Faded merge: the photo itself fades out (mask) on its right edge and the card shows through, so photo and
   content read as one surface with no seam. */
.ifs-promo__media:not(.ifs-promo__media--fallback) {
  background: transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.78) 71%, rgba(0, 0, 0, 0.45) 83%, rgba(0, 0, 0, 0.15) 93%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.78) 71%, rgba(0, 0, 0, 0.45) 83%, rgba(0, 0, 0, 0.15) 93%, transparent 100%);
}

/* soft shade in the bottom-left corner keeps the booth number readable */
.ifs-promo__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(85% 55% at 0% 100%, rgba(60, 38, 28, 0.6) 0%, rgba(60, 38, 28, 0.3) 45%, rgba(60, 38, 28, 0) 78%),
    linear-gradient(0deg, rgba(60, 38, 28, 0.35) 0%, rgba(60, 38, 28, 0) 30%);
}

/* No image set: a branded panel instead (orange glow, grid, big booth number) */
.ifs-promo__media--fallback {
  display: flex;
  align-items: flex-end;
  padding: 32px;
  background:
    radial-gradient(80% 70% at 20% 10%, rgba(246, 185, 59, 0.7) 0%, rgba(246, 185, 59, 0) 60%),
    linear-gradient(200deg, #F7E7BE 0%, #E9D6A6 100%);
}

.ifs-promo__media--fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(97, 57, 50, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 57, 50, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.ifs-promo__fallback-mark {
  position: relative;
  z-index: 1;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 9vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(97, 57, 50, 0.6);
}

.ifs-promo__fallback-mark small {
  display: block;
  margin-bottom: 10px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(97, 57, 50, 0.8);
  -webkit-text-stroke: 0;
}

/* on the photo: pinned bottom-left, above the darkening overlay */
.ifs-promo__media:not(.ifs-promo__media--fallback) .ifs-promo__fallback-mark {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 2;
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 24px rgba(42, 27, 22, 0.45);
}

.ifs-promo__media:not(.ifs-promo__media--fallback) .ifs-promo__fallback-mark small {
  color: rgba(255, 255, 255, 0.95);
}

/* ---------- 3D stage (left) ---------- */
.ifs-promo__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 26px 25px 24px 25px;
}

/* soft cool-grey studio glow behind the pyramid + a soft white light from the top left; fades out towards the content so there is no seam */
.ifs-promo__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(72% 56% at 50% 52%, rgba(196, 206, 226, 0.7) 0%, rgba(196, 206, 226, 0) 72%),
    radial-gradient(90% 55% at 15% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 65%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 60%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 60%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
}

/* a floor grid in perspective that slowly slides towards the viewer */
.ifs-promo__floor {
  position: absolute;
  left: -35%;
  right: -35%;
  bottom: 0;
  height: 58%;
  overflow: hidden;
  pointer-events: none;
  transform: perspective(460px) rotateX(63deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.7) 40%, transparent 92%);
  mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.7) 40%, transparent 92%);
}

.ifs-promo__floor i {
  position: absolute;
  left: 0;
  right: 0;
  top: -40px;
  bottom: 0;
  background-image:
    linear-gradient(rgba(120, 135, 160, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 135, 160, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: ifsp-floor 3.6s linear infinite;
}

@keyframes ifsp-floor {
  to { transform: translateY(40px); }
}

/* booth number: big outlined type, top left of the stage */
.ifs-promo__booth {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ifsp-brown);
}

.ifs-promo__booth small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ifsp-muted);
  text-shadow: none;
}

.ifs-promo__booth small::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ifsp-amber);
}

.ifs-promo__pyramid {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 190px;
  margin: 0 -10px;
}

.ifs-pyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---------- 3D countdown ---------- */
.ifs-cd {
  position: relative;
  z-index: 2;
}

.ifs-cd__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ifsp-brown);
}

.ifs-cd__dash {
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--ifsp-amber);
}

.ifs-cd.is-live .ifs-cd__dash {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(246, 185, 59, 0.7);
  animation: ifsp-live 1.6s ease-out infinite;
}

@keyframes ifsp-live {
  70% { box-shadow: 0 0 0 9px rgba(246, 185, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 185, 59, 0); }
}

.ifs-cd.is-live .ifs-cd__grid {
  display: none;
}

.ifs-cd__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ifs-cd__unit {
  text-align: center;
}

.ifs-cd__tile {
  position: relative;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(30, 36, 48, 0.12);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFD 49.5%, #EEF1F7 50.5%, #F7F9FC 100%);
  box-shadow: 0 12px 22px -12px rgba(30, 36, 48, 0.3), inset 0 1px 0 #FFFFFF;
}

/* the hinge line across the middle of the tile */
.ifs-cd__tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(30, 36, 48, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ifs-cd__num {
  display: block;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 54px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ifsp-brown);
  transform-origin: 50% 0;
  backface-visibility: hidden;
}

.ifs-cd__unit:last-child .ifs-cd__num {
  color: #C98400;
}

.ifs-cd__num.is-flip {
  animation: ifsp-flip 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes ifsp-flip {
  0% { transform: perspective(240px) rotateX(-72deg); opacity: 0.2; }
  100% { transform: perspective(240px) rotateX(0); opacity: 1; }
}

.ifs-cd__lab {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ifsp-muted);
}

/* ---------- live state: one tile per event day, today highlighted ---------- */
.ifs-cd__days { display: none; }

.ifs-cd.is-live .ifs-cd__days {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}

.ifs-cd__day { text-align: center; }

.ifs-cd__day .ifs-cd__num { color: inherit; }

.ifs-cd__day.is-past { opacity: 0.45; }

.ifs-cd__day.is-today .ifs-cd__tile {
  border-color: rgba(246, 185, 59, 0.95);
  box-shadow: 0 0 0 1px rgba(246, 185, 59, 0.45), 0 10px 26px -10px rgba(201, 132, 0, 0.55), inset 0 1px 0 #FFFFFF;
}

.ifs-cd__day.is-today .ifs-cd__num,
.ifs-cd__day.is-today .ifs-cd__lab { color: #C98400; }

/* ---------- content (right) ---------- */
.ifs-promo__card:focus {
  outline: none;
}

.ifs-promo__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 38px 44px 32px 32px; /* less on the left (next to the photo), room for the close button on the right */
  overflow-y: auto;
}

/* Centre the content vertically when there is room; when it is taller than the box it starts at the top and scrolls
   (justify-content: center would cut off the top). */
.ifs-promo__body > :first-child { margin-top: auto; }
.ifs-promo__body > :last-child { margin-bottom: auto; }

/* children rise in one after another */
.ifs-promo__body > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ifsp-ease), transform 0.6s var(--ifsp-ease);
}

.ifs-promo.is-open .ifs-promo__body > * {
  opacity: 1;
  transform: none;
}

.ifs-promo.is-open .ifs-promo__body > :nth-child(1) { transition-delay: 0.12s; }
.ifs-promo.is-open .ifs-promo__body > :nth-child(2) { transition-delay: 0.18s; }
.ifs-promo.is-open .ifs-promo__body > :nth-child(3) { transition-delay: 0.24s; }
.ifs-promo.is-open .ifs-promo__body > :nth-child(4) { transition-delay: 0.30s; }
.ifs-promo.is-open .ifs-promo__body > :nth-child(5) { transition-delay: 0.36s; }

/* event logo (or the event name as text when no logo is set) */
.ifs-promo__logo {
  display: block;
  align-self: flex-start;
  width: auto;
  height: 46px;
  max-width: calc(100% - 48px); /* clear of the close button */
  margin: 0 0 6px;
  object-fit: contain;
  object-position: left center;
}
.ifs-promo__event {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ifsp-muted);
}

/* Two deliberate lines: "Meet iFieldSmart AI" / "in Cleveland" - the small word "in" is light and muted so the eye
   goes from the brand name straight to the highlighted place name. */
.ifs-promo__title {
  margin: 18px 0 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ifsp-text);
  text-wrap: balance;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

.ifs-promo__title small {
  font-size: inherit;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #98A1B2;
}

.ifs-promo__title em {
  font-style: normal;
  font-weight: 700;
  padding: 0 0.06em;
  background: linear-gradient(180deg, transparent 60%, rgba(246, 185, 59, 0.6) 60%, rgba(246, 185, 59, 0.6) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ifs-promo__text {
  margin: 14px 0 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ifsp-body);
}

.ifs-promo__text strong {
  font-weight: 600;
  color: var(--ifsp-text);
}

/* date + location: plain rows between hairlines (no boxes). Both are links/buttons. */
.ifs-promo__details {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.ifs-promo__detail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ifsp-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ifs-promo__detail-icon {
  flex: none;
  display: flex;
  color: var(--ifsp-amber-deep);
}

.ifs-promo__detail-value {
  min-width: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ifsp-text);
  border-bottom: 1px dashed rgba(30, 36, 48, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.ifs-promo__detail-go {
  flex: none;
  display: flex;
  color: var(--ifsp-muted);
  transition: color 0.2s, transform 0.3s var(--ifsp-ease);
}

.ifs-promo__detail:hover .ifs-promo__detail-value,
.ifs-promo__detail:hover .ifs-promo__detail-go {
  color: var(--ifsp-amber-deep);
}

.ifs-promo__detail:hover .ifs-promo__detail-value {
  border-bottom-color: var(--ifsp-amber-deep);
}

.ifs-promo__detail[data-promo-map]:hover .ifs-promo__detail-go {
  transform: translate(2px, -2px);
}

.ifs-promo__detail.is-open .ifs-promo__detail-go {
  color: var(--ifsp-amber-deep);
  transform: rotate(45deg);
}

/* calendar choices that open under the date */
.ifs-promo__cal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 0 0 8px 32px;
  animation: ifsp-rise 0.3s var(--ifsp-ease);
}

.ifs-promo__cal-lead {
  font-size: 12.5px;
  color: var(--ifsp-muted);
}

.ifs-promo__cal[hidden] {
  display: none;
}

@keyframes ifsp-rise {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.ifs-promo__cal a,
.ifs-promo__cal button {
  margin: 0;
  padding: 2px 0;
  border: 0;
  border-bottom: 1.5px solid var(--ifsp-amber);
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ifsp-text);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.ifs-promo__cal a:hover,
.ifs-promo__cal button:hover {
  color: var(--ifsp-amber-deep);
  border-color: var(--ifsp-amber-deep);
}

.ifs-promo__detail:focus-visible,
.ifs-promo__cal a:focus-visible,
.ifs-promo__cal button:focus-visible {
  outline: 2px solid var(--ifsp-amber-deep);
  outline-offset: 3px;
}

/* buttons */
.ifs-promo__actions {
  display: flex;
  flex-nowrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 18px;
  margin-top: 22px;
}

.ifs-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--ifsp-amber);
  box-shadow: 0 10px 24px -10px rgba(214, 150, 20, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ifsp-text);
  text-decoration: none;
  transition: transform 0.2s var(--ifsp-ease), box-shadow 0.2s, background 0.2s;
}

.ifs-promo__cta:hover {
  color: var(--ifsp-text);
  background: var(--ifsp-amber-hover);
  box-shadow: 0 14px 30px -10px rgba(214, 150, 20, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.ifs-promo__cta:active {
  transform: translateY(0) scale(0.98);
}

.ifs-promo__cta svg {
  transition: transform 0.2s var(--ifsp-ease);
}

.ifs-promo__cta:hover svg {
  transform: translateX(3px);
}

.ifs-promo__link {
  font-size: 13.5px;
  color: var(--ifsp-body);
  text-decoration: none;
  white-space: nowrap;
}

.ifs-promo__link span {
  color: var(--ifsp-text);
  font-weight: 600;
  border-bottom: 1.5px solid var(--ifsp-amber);
  transition: border-color 0.2s, color 0.2s;
}

.ifs-promo__link:hover span {
  color: var(--ifsp-amber-deep);
  border-color: var(--ifsp-amber-deep);
}

.ifs-promo__cta:focus-visible,
.ifs-promo__link:focus-visible,
.ifs-promo__close:focus-visible {
  outline: 2px solid var(--ifsp-amber);
  outline-offset: 3px;
}

/* close button */
.ifs-promo__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid var(--ifsp-line);
  background: #FFFFFF;
  box-shadow: 0 4px 12px -4px rgba(30, 36, 48, 0.18);
  color: var(--ifsp-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ifsp-ease);
}

.ifs-promo__close:hover {
  background: #F1F4F9;
  transform: rotate(90deg);
}

/* drag handle: phones only */
.ifs-promo__grabber {
  display: none;
}

/* While the popup is open: hide the site's floating buttons and cookie bar, and stop the page scrolling */
html.ifs-promo-open .schedule-btn,
html.ifs-promo-open .get-quote,
html.ifs-promo-open #cookie-banner {
  visibility: hidden !important;
}

html.ifs-promo-open,
html.ifs-promo-open body {
  overflow: hidden;
}

/* ---------- tablets ---------- */
@media (max-width: 860px) {
  .ifs-promo__card { grid-template-columns: 38% 62%; }
  .ifs-promo__body { padding: 40px 32px 32px 24px; }
  .ifs-promo__logo { height: 48px; }
  .ifs-promo__stage { padding: 22px 14px 20px 18px; }
  .ifs-promo__booth { font-size: 38px; }
  .ifs-cd__tile { height: 48px; }
  .ifs-cd__num { font-size: 25px; line-height: 46px; }
}

/* ---------- phones: bottom sheet ---------- */
@media (max-width: 640px) {
  .ifs-promo {
    align-items: flex-end;
    padding: 0;
  }

  .ifs-promo__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    width: 100%;
    min-height: 0;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    opacity: 1;
    transform: translateY(100%);
    transition: transform 0.55s var(--ifsp-ease);
  }

  .ifs-promo.is-open .ifs-promo__card { transform: translateY(var(--ifsp-drag, 0px)); }
  .ifs-promo__card.is-dragging { transition: none; }

  /* photo mode: the strip dissolves downwards into the card */
  .ifs-promo__media { height: 176px; min-height: 0; }

  .ifs-promo__media:not(.ifs-promo__media--fallback) {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 56%, rgba(0, 0, 0, 0.7) 74%, rgba(0, 0, 0, 0.3) 88%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 56%, rgba(0, 0, 0, 0.7) 74%, rgba(0, 0, 0, 0.3) 88%, transparent 100%);
  }

  .ifs-promo__media::after { display: none; }

  .ifs-promo__media--fallback { padding: 22px 24px; }
  .ifs-promo__fallback-mark { font-size: 64px; }

  .ifs-promo__media:not(.ifs-promo__media--fallback) .ifs-promo__fallback-mark {
    left: auto;
    right: 20px;
    bottom: 40px;
    font-size: 44px;
    text-align: right;
  }

  .ifs-promo__media:not(.ifs-promo__media--fallback) .ifs-promo__fallback-mark small {
    margin-bottom: 6px;
    font-size: 10px;
  }

  /* 3D stage: a compact strip with the pyramid on top and the countdown under it */
  .ifs-promo__stage {
    height: 318px;
    min-height: 0;
    padding: 14px 18px 10px;
  }

  .ifs-promo__stage::before {
    -webkit-mask-image: none;
    mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  }

  .ifs-promo__floor { height: 50%; }
  .ifs-promo__booth { position: absolute; top: 16px; left: 18px; font-size: 30px; }
  .ifs-promo__booth small { margin-bottom: 4px; font-size: 9.5px; }
  .ifs-promo__pyramid { min-height: 0; margin: 4px 0 0; }
  .ifs-cd__head { margin-bottom: 7px; font-size: 10px; }
  .ifs-cd__grid { gap: 6px; }
  .ifs-cd__tile { height: 38px; border-radius: 10px; }
  .ifs-cd__num { font-size: 19px; line-height: 36px; }
  .ifs-cd__lab { margin-top: 5px; font-size: 9px; }

  .ifs-promo__grabber {
    display: block;
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 3;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: rgba(30, 36, 48, 0.25);
  }

  .ifs-promo__close {
    top: 14px;
    right: 14px;
    width: 36px !important;
    min-width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .ifs-promo__body {
    padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
  }

  .ifs-promo__logo { height: 38px; }
  .ifs-promo__title { margin-top: 8px; font-size: 30px; }
  .ifs-promo__text { margin-top: 8px; font-size: 14px; line-height: 1.48; }
  .ifs-promo__details { margin-top: 14px; }
  .ifs-promo__detail { padding: 6px 0; }
  .ifs-promo__detail-value { font-size: 15.5px; }
  .ifs-promo__cal { padding-left: 32px; }

  .ifs-promo__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 20px;
  }

  .ifs-promo__cta { width: 100%; }
  .ifs-promo__link { text-align: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ifs-promo__backdrop,
  .ifs-promo__card,
  .ifs-promo__media img,
  .ifs-promo__body > *,
  .ifs-promo__close,
  .ifs-promo__cta {
    transition: opacity 0.2s linear !important;
    transform: none !important;
  }

  .ifs-promo__floor i,
  .ifs-cd__num.is-flip,
  .ifs-cd.is-live .ifs-cd__dash,
  .ifs-promo__cal {
    animation: none !important;
  }
}
