/* ======================================================
   EXIT INTENT POPUP — MÉTODO BOMBOM DE MORANGO CRAVEJADO
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* Overlay */
.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 44, 76, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal */
.exit-popup-modal {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 20px 60px rgba(16, 44, 76, 0.25);
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exit-popup-overlay.active .exit-popup-modal {
  transform: translateY(0) scale(1);
}

/* Botão Fechar (X) */
.exit-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 18px;
  color: #6C6864;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.exit-popup-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #222222;
}

/* Tag superior */
.exit-popup-tag {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #C79A44;
  text-transform: uppercase;
  padding: 24px 24px 0;
}

/* Conteúdo principal */
.exit-popup-content {
  padding: 12px 28px 0;
  text-align: center;
}

.exit-popup-headline {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #102C4C;
  line-height: 1.25;
  margin-bottom: 10px;
}

.exit-popup-subheadline {
  font-size: 14.5px;
  color: #6C6864;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Imagem do produto */
.exit-popup-image {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(16, 44, 76, 0.1);
  border: 2px solid #F1E9DE;
}

.exit-popup-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bloco de preço */
.exit-popup-price-block {
  background: linear-gradient(135deg, #FBFAF7 0%, #F1E9DE 100%);
  border: 1.5px solid #E8E2D9;
  border-radius: 14px;
  padding: 20px;
  margin: 0 28px 16px;
  text-align: center;
}

.exit-popup-price-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #C79A44;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.exit-popup-price-old {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 4px;
}

.exit-popup-price-intro {
  font-size: 13px;
  color: #6C6864;
  margin-bottom: 2px;
}

.exit-popup-price-new {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: #102C4C;
  line-height: 1.1;
  margin-bottom: 4px;
}

.exit-popup-price-new .currency {
  font-size: 24px;
  vertical-align: super;
  margin-right: 2px;
}

.exit-popup-price-payment {
  font-size: 13px;
  color: #6C6864;
  margin-bottom: 8px;
}

.exit-popup-price-savings {
  display: inline-block;
  background: #D94A43;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
}

/* Checklist */
.exit-popup-checklist {
  text-align: left;
  padding: 0 28px;
  margin-bottom: 16px;
}

.exit-popup-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #222222;
  padding: 5px 0;
}

.exit-popup-checklist-item .check-icon {
  color: #2FB65D;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

/* Copy emocional */
.exit-popup-emotional {
  font-size: 13.5px;
  color: #6C6864;
  font-style: italic;
  padding: 0 28px;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.5;
}

/* CTA Principal */
.exit-popup-cta-wrapper {
  padding: 0 28px;
  margin-bottom: 12px;
}

.exit-popup-cta {
  display: block;
  width: 100%;
  height: 58px;
  background: #2FB65D;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(47, 182, 93, 0.35);
}

.exit-popup-cta:hover {
  background: #24974C;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(36, 151, 76, 0.45);
}

.exit-popup-cta:active {
  transform: translateY(0);
}

/* Microcopy segurança */
.exit-popup-security {
  text-align: center;
  font-size: 12px;
  color: #6C6864;
  margin-bottom: 12px;
}

/* Recusa */
.exit-popup-decline-wrapper {
  text-align: center;
  padding: 0 28px 8px;
}

.exit-popup-decline {
  background: none;
  border: none;
  font-size: 12.5px;
  color: #999;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px;
  transition: color 0.2s ease;
}

.exit-popup-decline:hover {
  color: #6C6864;
}

/* Urgência */
.exit-popup-urgency {
  text-align: center;
  font-size: 11.5px;
  color: #C79A44;
  font-weight: 600;
  padding: 10px 28px 20px;
  border-top: 1px solid #F1E9DE;
  margin-top: 4px;
}

/* Timer (opcional) */
.exit-popup-timer {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  color: #D94A43;
  margin-left: 4px;
}

/* ======================================================
   RESPONSIVIDADE
   ====================================================== */
@media (max-width: 640px) {
  .exit-popup-modal {
    border-radius: 16px;
    max-height: 92vh;
  }

  .exit-popup-headline {
    font-size: 22px;
  }

  .exit-popup-content {
    padding: 10px 20px 0;
  }

  .exit-popup-price-block {
    margin: 0 20px 14px;
    padding: 16px;
  }

  .exit-popup-price-new {
    font-size: 40px;
  }

  .exit-popup-checklist {
    padding: 0 20px;
  }

  .exit-popup-emotional {
    padding: 0 20px;
  }

  .exit-popup-cta-wrapper {
    padding: 0 20px;
  }

  .exit-popup-decline-wrapper {
    padding: 0 20px 8px;
  }

  .exit-popup-urgency {
    padding: 10px 20px 18px;
  }
}

@media (max-width: 380px) {
  .exit-popup-headline {
    font-size: 20px;
  }

  .exit-popup-price-new {
    font-size: 36px;
  }

  .exit-popup-cta {
    font-size: 14px;
    height: 52px;
  }
}
