.discount-popover {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 1000;
  width: min(380px, calc(100vw - 36px));
  background: #ffffff;
  color: #101828;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
  padding: 18px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.discount-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.discount-popover__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.discount-popover__label {
  color: #1d4ed8;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.discount-popover h2 {
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 6px;
}

.discount-popover p {
  color: #475467;
  font-size: .92rem;
  line-height: 1.45;
  margin: 0;
}

.discount-popover__close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #ffffff;
  color: #475467;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
}

.discount-popover__code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 14px;
  padding: 10px;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  background: #eff6ff;
}

.discount-popover__code strong {
  flex: 1;
  color: #1e3a8a;
  font-size: 1.16rem;
  letter-spacing: .08em;
}

.discount-popover__copy,
.discount-popover__cta {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.discount-popover__copy {
  padding: 9px 12px;
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.discount-popover__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 14px;
  background: #1d4ed8;
  color: #ffffff;
}

.discount-popover__note {
  margin-top: 10px;
  font-size: .78rem;
  color: #667085;
}

@media (max-width: 560px) {
  .discount-popover {
    inset: auto 12px 12px 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discount-popover {
    transition: none;
  }
}
