/**
 * Exit-intent coupon popup — loja/cupons
 */

.exit-coupon-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1065;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.exit-coupon-modal.is-open {
  display: flex;
}

.exit-coupon-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.exit-coupon-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  max-width: 440px;
  width: 100%;
  box-shadow:
    0 4px 6px rgba(10, 15, 30, 0.05),
    0 24px 64px rgba(10, 15, 30, 0.2);
  text-align: center;
  animation: exitCouponModalIn 0.28s ease-out;
}

@keyframes exitCouponModalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.exit-coupon-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.exit-coupon-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.exit-coupon-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.exit-coupon-text {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #475569;
}

.exit-coupon-offer-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

.exit-coupon-code-preview {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f172a;
}

.exit-coupon-cta {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.exit-coupon-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.42);
}

body.exit-coupon-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .exit-coupon-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .exit-coupon-card {
    max-width: none;
    width: calc(100% - 8px);
    margin: 0 auto 8px;
    border-radius: 18px 18px 16px 16px;
    padding: 24px 18px 20px;
  }

  .exit-coupon-title {
    font-size: 1.08rem;
    padding-right: 28px;
  }

  .exit-coupon-cta {
    padding: 15px 16px;
    font-size: 1.02rem;
  }
}
