.offer-popup {
  --offer-accent: var(--dtci-orange, #FE8804);
  --offer-accent-dark: var(--dtci-orange-dark, #C66800);
  --offer-ink: var(--dtci-navy, #021A46);
  --offer-ink-light: var(--dtci-navy-light, #0A2E72);
  --offer-surface: var(--dtci-white, #FFFFFF);
  --offer-copy: var(--dtci-muted, #64748B);
  --offer-border: var(--dtci-border, #E2E8F0);
  position: fixed;
  z-index: 10000;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(2, 26, 70, 0.1);
  border-radius: 20px;
  color: var(--dtci-text, #0F172A);
  background: var(--offer-surface);
  box-shadow:
    0 24px 60px rgba(1, 19, 51, 0.2),
    0 5px 16px rgba(2, 26, 70, 0.08);
  opacity: 0;
  visibility: hidden;
  font-family: var(--dtci-font, 'Plus Jakarta Sans', system-ui, sans-serif);
}

.offer-popup[hidden] {
  display: none;
}

.offer-popup.is-visible {
  visibility: visible;
  opacity: 1;
}

.offer-popup__dismiss {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 11px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(2, 26, 70, 0.12);
  border-radius: 50%;
  color: var(--offer-ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(1, 19, 51, 0.12);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
}

.offer-popup__dismiss:hover {
  background: #fff;
}

.offer-popup__dismiss:focus-visible,
.offer-popup__button:focus-visible {
  outline: 3px solid var(--offer-accent);
  outline-offset: 3px;
}

.offer-popup__hero {
  overflow: hidden;
  border-radius: 19px 19px 0 0;
}

.offer-popup__banner {
  display: block;
  width: 100%;
  height: auto;
}

.offer-popup__validity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  color: var(--offer-ink);
  background: color-mix(in srgb, var(--offer-accent) 13%, #fff);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.offer-popup__validity i,
.offer-popup__validity time {
  color: var(--offer-accent-dark);
}

.offer-popup__validity time {
  font-weight: 900;
}

.offer-popup__content {
  padding: 20px 22px 22px;
}

.offer-popup__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  color: var(--offer-accent-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.05px;
  line-height: 1.4;
  text-transform: uppercase;
}

.offer-popup__title {
  margin: 0 34px 5px 0;
  color: var(--offer-ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.offer-popup__subtitle {
  margin: 0 0 4px;
  color: var(--offer-ink-light);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

.offer-popup__description {
  margin: 0 0 15px;
  color: var(--offer-copy);
  font-size: 13px;
  line-height: 1.55;
}

.offer-popup__countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 15px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--offer-accent) 18%, var(--offer-border));
  border-radius: 11px;
  background: color-mix(in srgb, var(--offer-accent) 7%, var(--offer-surface));
}

.offer-popup__countdown-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--offer-ink-light);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.offer-popup__countdown-label i {
  color: var(--offer-accent-dark);
}

.offer-popup__timer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: var(--offer-ink);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.offer-popup__timer-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.offer-popup__timer-unit small {
  color: var(--offer-copy);
  font-size: 8px;
  font-weight: 700;
}

.offer-popup__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 9px;
}

.offer-popup__button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--dtci-radius-sm, 6px);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.offer-popup__button:hover {
  filter: brightness(0.96);
}

.offer-popup__button--claim {
  color: #fff;
  background: linear-gradient(135deg, var(--offer-accent), var(--offer-accent-dark));
  box-shadow: 0 5px 12px color-mix(in srgb, var(--offer-accent) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.offer-popup__button--claim:hover {
  box-shadow: 0 8px 17px color-mix(in srgb, var(--offer-accent) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.offer-popup__button--learn {
  border-color: var(--offer-border);
  color: var(--offer-ink);
  background: rgba(255, 255, 255, 0.74);
}

.offer-popup__button--learn:hover {
  border-color: color-mix(in srgb, var(--offer-ink) 32%, var(--offer-border));
  background: var(--offer-surface);
  box-shadow: 0 5px 12px rgba(2, 26, 70, 0.08);
}

.offer-popup__button:active {
  filter: brightness(0.92);
}

.offer-popup__button[aria-disabled="true"] {
  cursor: not-allowed;
  filter: grayscale(0.3);
  opacity: 0.62;
}

@media (max-width: 700px) {
  .offer-popup {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    width: min(344px, calc(100vw - 28px));
    max-height: min(480px, calc(100dvh - 28px));
  }

  .offer-popup__content {
    padding: 17px 18px 19px;
  }

  .offer-popup__title {
    font-size: 21px;
  }
}

@media (max-width: 380px) {
  .offer-popup {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: min(340px, calc(100vw - 20px));
    max-height: min(440px, calc(100dvh - 20px));
  }

  .offer-popup__content {
    padding: 12px 13px 13px;
  }

  .offer-popup__countdown {
    gap: 5px;
    padding: 7px;
  }

  .offer-popup__countdown-label {
    font-size: 9px;
  }

  .offer-popup__timer {
    gap: 3px;
    font-size: 10px;
  }

  .offer-popup__actions {
    gap: 7px;
  }

  .offer-popup__button {
    padding: 8px 6px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-popup,
  .offer-popup *,
  .offer-popup::before,
  .offer-popup::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
