.coupon-popup {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.coupon-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.coupon-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.coupon-popup__dialog {
  position: relative;
  width: min(100%, 420px);
  background: linear-gradient(160deg, #1a1a1a 0%, #101010 100%);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 18px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}

.coupon-popup.is-visible .coupon-popup__dialog {
  transform: translateY(0) scale(1);
}

.coupon-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d4cfc6;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.coupon-popup__eyebrow {
  margin: 0 0 8px;
  color: #c9a962;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.coupon-popup__title {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 600;
  color: #f5f0e8;
}

.coupon-popup__text,
.coupon-popup__note {
  margin: 0;
  color: #a8a39a;
  font-size: 0.92rem;
  line-height: 1.5;
}

.coupon-popup__code-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 14px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(201, 169, 98, 0.08);
  border: 1px dashed rgba(201, 169, 98, 0.45);
}

.coupon-popup__code {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #f5f0e8;
}

.coupon-popup__copy,
.coupon-popup__cta {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: 0.2s ease;
}

.coupon-popup__copy {
  padding: 10px 16px;
  background: #c9a962;
  color: #0a0a0a;
}

.coupon-popup__copy:hover {
  filter: brightness(1.08);
}

.coupon-popup__cta {
  width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid rgba(201, 169, 98, 0.45);
  color: #f5f0e8;
}

.coupon-popup__cta:hover {
  background: rgba(201, 169, 98, 0.12);
}

.checkout-coupon {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.checkout-coupon__row {
  display: flex;
  gap: 10px;
}

.checkout-coupon__row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
}

.checkout-coupon__row button {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #c9a962;
  color: #0a0a0a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.checkout-coupon__message {
  margin: 0;
  font-size: 0.88rem;
}

.checkout-coupon__message--success {
  color: #86efac;
}

.checkout-coupon__message--error {
  color: #fca5a5;
}

.checkout-coupon__hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--white-muted);
}

.checkout-totals__row--discount span:last-child {
  color: #86efac;
}
