.discount-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.discount-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.discount-popup-overlay.is-closing {
  opacity: 0;
}

.discount-popup-card {
  width: min(92vw, 420px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  padding: 1.5rem;
  border: 1px solid #e6eefb;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease;
}

.discount-popup-overlay.is-open .discount-popup-card {
  transform: scale(1);
  opacity: 1;
}

.discount-popup-overlay.is-closing .discount-popup-card {
  transform: scale(0.96);
  opacity: 0;
}

.discount-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 1.2rem;
  cursor: pointer;
}

.discount-popup-close:hover {
  background: #eff6ff;
  color: #334155;
}

.discount-popup-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.25;
}

.discount-popup-subtext {
  margin: 0.75rem 0 1.2rem;
  color: #334155;
  font-size: 0.98rem;
}

.discount-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.discount-popup-copy,
.discount-popup-secondary {
  border: 0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.66rem 1rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.discount-popup-copy {
  background: #dbeafe;
  color: #0f172a;
}

.discount-popup-copy:hover {
  background: #bfdbfe;
}

.discount-popup-copy.is-copied {
  background: #93c5fd;
}

.discount-popup-secondary {
  background: #f8fafc;
  color: #475569;
}

.discount-popup-secondary:hover {
  background: #f1f5f9;
}

.discount-popup-feedback {
  color: #0369a1;
  font-size: 0.86rem;
  min-height: 1.15rem;
  margin-top: 0.6rem;
}

.discount-popup-badge {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1100;
  border: 1px solid #dbeafe;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.52rem 0.82rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.discount-popup-badge.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .discount-popup-overlay,
  .discount-popup-card,
  .discount-popup-badge {
    transition: none;
  }
}
