.offer-teaser {
  --offer-blue: #284adc;
  --offer-lilac: #a4b3f9;
  --offer-navy: #010826;
  --offer-cream: #fcf5e7;
  --offer-green: #60d175;
  position: fixed;
  left: 0;
  bottom: 24px;
  z-index: 98;
  width: min(300px, calc(100vw - 18px));
  font-family: "DM Sans", sans-serif;
  opacity: 0;
  transform: translate3d(-42px, 12px, 0);
  animation: offerTeaserIntro 640ms ease forwards, offerTeaserFloat 5.5s ease-in-out 900ms infinite;
}

.offer-teaser,
.offer-teaser * {
  box-sizing: border-box;
}

.offer-teaser__card {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  padding: 13px 17px 13px 24px;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(252, 245, 231, 0.24);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background:
    linear-gradient(248deg, rgba(252, 245, 231, 0.16), rgba(252, 245, 231, 0) 34%),
    linear-gradient(135deg, var(--offer-blue) 0%, var(--offer-green) 100%);
  box-shadow: 0 18px 42px rgba(1, 8, 38, 0.22), 0 0 22px rgba(164, 179, 249, 0.34);
  overflow: hidden;
  isolation: isolate;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.offer-teaser__card::before {
  content: "";
  position: absolute;
  inset: -52% -30% -52% auto;
  width: 42%;
  background: linear-gradient(90deg, rgba(252, 245, 231, 0), rgba(252, 245, 231, 0.42), rgba(252, 245, 231, 0));
  transform: rotate(18deg);
  animation: offerTeaserShine 4.8s ease-in-out 1.2s infinite;
  z-index: -1;
}

.offer-teaser__card:hover,
.offer-teaser__card:focus-visible {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(1, 8, 38, 0.28), 0 0 28px rgba(164, 179, 249, 0.48);
  filter: saturate(1.04);
}

.offer-teaser__card:focus-visible,
.offer-teaser__close:focus-visible,
.offer-teaser__collapsed:focus-visible {
  outline: 3px solid var(--offer-cream);
  outline-offset: 3px;
}

.offer-teaser__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: var(--offer-cream);
  border-radius: 50%;
  background: rgba(1, 8, 38, 0.24);
  box-shadow: inset 0 0 0 1px rgba(252, 245, 231, 0.2), 0 8px 18px rgba(1, 8, 38, 0.2);
}

.offer-teaser__icon i {
  font-size: 18px;
  line-height: 1;
}

.offer-teaser__content {
  min-width: 0;
  line-height: 1.15;
  flex: 1 1 auto;
}

.offer-teaser__eyebrow {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.offer-teaser__detail {
  display: block;
  margin-top: 3px;
  color: var(--offer-cream);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.offer-teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.offer-teaser__cta i {
  font-size: 10px;
}

.offer-teaser__close {
  position: absolute;
  top: -11px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #ffffff;
  border: 1px solid rgba(252, 245, 231, 0.36);
  border-radius: 50%;
  background: var(--offer-navy);
  box-shadow: 0 8px 18px rgba(1, 8, 38, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.offer-teaser__close:hover {
  transform: scale(1.05);
  background: #284adc;
}

.offer-teaser__close i {
  font-size: 12px;
  line-height: 1;
}

.offer-teaser__collapsed {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  color: #ffffff;
  border: 1px solid rgba(252, 245, 231, 0.28);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(135deg, var(--offer-blue), var(--offer-green));
  box-shadow: 0 16px 34px rgba(1, 8, 38, 0.24), 0 0 22px rgba(164, 179, 249, 0.36);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-24px, 0, 0) scale(0.92);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

.offer-teaser__collapsed i {
  font-size: 18px;
  line-height: 1;
}

.offer-teaser.is-collapsed .offer-teaser__card,
.offer-teaser.is-collapsed .offer-teaser__close {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-110%, 0, 0) scale(0.96);
  transition: opacity 220ms ease, visibility 220ms ease, transform 260ms ease;
}

.offer-teaser.is-collapsed .offer-teaser__collapsed {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes offerTeaserIntro {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes offerTeaserFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes offerTeaserShine {
  0%,
  42% {
    right: -34%;
  }
  70%,
  100% {
    right: 118%;
  }
}

@media (max-width: 575px) {
  .offer-teaser {
    left: 0;
    right: auto;
    bottom: 16px;
    width: min(270px, calc(100vw - 12px));
  }

  .offer-teaser__card {
    min-height: 68px;
    gap: 10px;
    padding: 10px 14px 10px 18px;
    border-radius: 0 999px 999px 0;
  }

  .offer-teaser__icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .offer-teaser__eyebrow {
    font-size: 13px;
  }

  .offer-teaser__detail,
  .offer-teaser__cta {
    font-size: 11px;
  }

  .offer-teaser__collapsed {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-teaser,
  .offer-teaser__card::before {
    animation: none;
  }

  .offer-teaser {
    opacity: 1;
    transform: none;
  }

  .offer-teaser__card,
  .offer-teaser__close,
  .offer-teaser__collapsed {
    transition-duration: 1ms;
  }
}
