/* ==========================================================================
   FormGent BFCM deal: top bar + pricing banner
   Content is managed in Site Content → Deals.
   ========================================================================== */

.fmg-deal-topbar,
.fmg-deal-banner {
  --fmg-deal-bg: #0d1235;
  --fmg-deal-bg-2: #16193f;
  --fmg-deal-ink: #ffffff;
  --fmg-deal-muted: rgba(226, 228, 245, .78);
  --fmg-deal-red: #e02a2a;
  --fmg-deal-coral: #ff6f6f;
  --fmg-deal-maroon: rgba(140, 32, 58, .55);
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.fmg-deal-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 52px;
  background:
    radial-gradient(ellipse 60% 140% at 70% 50%, var(--fmg-deal-maroon), transparent 70%),
    var(--fmg-deal-bg);
  border-bottom: 2px dashed var(--fmg-deal-red);
  color: var(--fmg-deal-ink);
  font-size: 15px;
  line-height: 1.3;
}

.admin-bar .fmg-deal-topbar {
  top: 32px;
}

.fmg-deal-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.fmg-deal-topbar__label {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--fmg-deal-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.1;
  white-space: nowrap;
}

.fmg-deal-topbar__text {
  margin: 0;
  color: var(--fmg-deal-ink);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.fmg-deal-topbar__highlight {
  color: var(--fmg-deal-coral);
  font-weight: 800;
  white-space: nowrap;
}

.fmg-deal-topbar__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--fmg-deal-bg) !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.fmg-deal-topbar__cta:hover,
.fmg-deal-topbar__cta:focus-visible {
  color: var(--fmg-deal-bg) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--fmg-deal-coral);
}

.fmg-deal-topbar__close {
  position: absolute;
  top: 50%;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.fmg-deal-topbar__close:hover,
.fmg-deal-topbar__close:focus-visible {
  background: rgba(255, 255, 255, .22);
}

/* Push the page (and the fixed header) below the bar. */
body.has-fmg-deal-topbar {
  padding-top: var(--fmg-deal-topbar-h, 59px);
}

body.has-fmg-deal-topbar.trheader .site-header {
  top: var(--fmg-deal-topbar-h, 59px) !important;
}

body.has-fmg-deal-topbar.admin-bar.trheader .site-header {
  top: calc(var(--fmg-deal-topbar-h, 59px) + 32px) !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .fmg-deal-topbar {
    top: 46px;
  }

  body.has-fmg-deal-topbar.admin-bar.trheader .site-header {
    top: calc(var(--fmg-deal-topbar-h, 59px) + 46px) !important;
  }
}

@media screen and (max-width: 991.98px) {
  .fmg-deal-topbar .fmg-deal-countdown {
    display: none;
  }
}

@media screen and (max-width: 767.98px) {
  .fmg-deal-topbar {
    padding: 8px 44px 8px 12px;
  }

  .fmg-deal-topbar__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
  }

  .fmg-deal-topbar__label {
    display: none;
  }

  .fmg-deal-topbar__text {
    font-size: 13px;
    text-align: left;
  }

  .fmg-deal-topbar__cta {
    padding: 6px 12px;
    font-size: 13px;
  }

  .fmg-deal-topbar__cta span {
    display: none;
  }

  .fmg-deal-topbar__close {
    right: 8px;
    width: 26px;
    height: 26px;
  }
}

/* --------------------------------------------------------------------------
   Countdown (shared)
   -------------------------------------------------------------------------- */

.fmg-deal-countdown {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
}

.fmg-deal-countdown__item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  line-height: 1;
}

.fmg-deal-countdown__value {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fmg-deal-countdown__label {
  margin-top: 3px;
  color: rgba(255, 255, 255, .7);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Pricing banner (coupon)
   -------------------------------------------------------------------------- */

.fmg-deal-banner {
  padding: 20px 0 40px;
  background: var(--fmg-deal-bg);
  color: var(--fmg-deal-ink);
}

/* From 1200px the "Best Value" (-46px) and "Lifetime" (-112px) plan cards
   pull up into the section above, so leave room for the tallest one. */
@media (min-width: 1200px) {
  .fmg-deal-banner {
    padding-bottom: 136px;
  }
}

.fmg-deal-banner__coupon {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px dashed var(--fmg-deal-red);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 55% 75% at 75% 50%, var(--fmg-deal-maroon), transparent 72%),
    linear-gradient(110deg, var(--fmg-deal-bg-2) 0%, #1a1c45 50%, #271a3f 100%);
}

.fmg-deal-banner__left,
.fmg-deal-banner__right {
  min-width: 0;
  padding: 24px 40px;
}

.fmg-deal-banner__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px dashed var(--fmg-deal-red);
  text-align: center;
}

.fmg-deal-banner p {
  margin: 0;
}

/* Left */
.fmg-deal-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--fmg-deal-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.fmg-deal-banner__dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fmg-deal-red);
}

.fmg-deal-banner__title {
  display: flex;
  flex-direction: column;
  margin: 14px 0 0;
  color: var(--fmg-deal-ink);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: .9;
  text-transform: uppercase;
}

.fmg-deal-banner__title-accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fmg-deal-coral);
  letter-spacing: -.02em;
}

.fmg-deal-banner__campaign-label {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--fmg-deal-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.1;
}

.fmg-deal-banner__description {
  max-width: 32em;
  margin-top: 12px !important;
  color: var(--fmg-deal-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Right */
.fmg-deal-banner__offer-label,
.fmg-deal-banner__countdown-label {
  color: var(--fmg-deal-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.fmg-deal-banner__prefix {
  margin-top: 14px !important;
  color: var(--fmg-deal-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.fmg-deal-banner__discount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-top: 4px !important;
  font-weight: 700;
  line-height: 1;
}

.fmg-deal-banner__discount-number {
  color: var(--fmg-deal-ink);
  font-size: 84px;
  letter-spacing: -.05em;
}

.fmg-deal-banner__discount-percent {
  color: var(--fmg-deal-coral);
  font-size: 84px;
  letter-spacing: -.03em;
}

.fmg-deal-banner__discount-suffix {
  margin-left: 4px;
  color: var(--fmg-deal-ink);
  font-size: 22px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.fmg-deal-banner__countdown-label {
  margin-top: 12px !important;
}

.fmg-deal-countdown--banner {
  gap: 6px;
  margin-top: 8px;
}

.fmg-deal-countdown--banner .fmg-deal-countdown__item {
  min-width: 54px;
  padding: 8px 6px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.fmg-deal-countdown--banner .fmg-deal-countdown__value {
  font-size: 20px;
  font-weight: 700;
}

.fmg-deal-countdown--banner .fmg-deal-countdown__label {
  margin-top: 4px;
  color: var(--fmg-deal-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.fmg-deal-banner__end-date {
  margin-top: 8px !important;
  color: var(--fmg-deal-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Focus line: spans the full coupon width */
.fmg-deal-banner__focus {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-top: 1px dashed var(--fmg-deal-red);
  background: rgba(224, 42, 42, .14);
  color: var(--fmg-deal-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.fmg-deal-banner__focus-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--fmg-deal-coral);
  animation: fmg-deal-pulse 1.6s ease-in-out infinite;
}

.fmg-deal-banner__focus-highlight {
  color: var(--fmg-deal-coral);
  font-weight: 700;
}

@keyframes fmg-deal-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  .fmg-deal-banner__focus-icon {
    animation: none;
  }
}

@media screen and (max-width: 767.98px) {
  .fmg-deal-banner__coupon {
    grid-template-columns: minmax(0, 1fr);
  }

  .fmg-deal-banner__left,
  .fmg-deal-banner__right {
    padding: 20px 16px;
  }

  .fmg-deal-banner__left {
    text-align: center;
  }

  .fmg-deal-banner__title {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 .22em;
    font-size: clamp(30px, 10.5vw, 44px);
  }

  .fmg-deal-banner__title-accent {
    -webkit-text-stroke-width: 1px;
  }

  .fmg-deal-banner__campaign-label {
    margin-top: 10px;
  }

  .fmg-deal-banner__description {
    margin-left: auto;
    margin-right: auto;
  }

  .fmg-deal-banner__right {
    border-left: 0;
    border-top: 1px dashed var(--fmg-deal-red);
  }

  .fmg-deal-banner__prefix {
    margin-top: 10px !important;
  }

  .fmg-deal-banner__discount-number,
  .fmg-deal-banner__discount-percent {
    font-size: 64px;
  }

  .fmg-deal-banner__focus {
    align-items: flex-start;
    padding: 10px 16px;
    text-align: left;
  }

  .fmg-deal-banner__focus-icon {
    margin-top: 1px;
  }
}
