/* ============================================================
   TiendaTienda — Newsletter Form
   Alta especificidad para sobreescribir estilos del tema
   Temas: morado (default) | azul
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

/* ── Wrapper ────────────────────────────────────────────────── */
.tt-nl-wrap,
div.tt-nl-wrap {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  box-sizing: border-box;
}

/* ── Contenedor principal ───────────────────────────────────── */
.tt-nl-wrap .tt-nl-container,
div.tt-nl-wrap div.tt-nl-container {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-wrap: nowrap !important;
}

/* ── Input email ────────────────────────────────────────────── */
.tt-nl-wrap .tt-nl-container input.tt-nl-email-input,
.tt-nl-wrap .tt-nl-container input[type="email"].tt-nl-email-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 28px !important;
  height: 56px !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1.5px solid #64748B !important;
  border-radius: 100px !important;
  font-size: 15px !important;
  color: #64748B !important;
  outline: none !important;
  transition: all 0.3s ease !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tt-nl-wrap .tt-nl-container input.tt-nl-email-input::placeholder {
  color: #64748B !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

.tt-nl-wrap .tt-nl-container input.tt-nl-email-input:focus {
  border-color: #94a3b8 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ── Botón base ─────────────────────────────────────────────── */
.tt-nl-wrap .tt-nl-container button.tt-nl-submit-btn {
  flex-shrink: 0 !important;
  padding: 0 40px !important;
  height: 56px !important;
  border: none !important;
  border-radius: 100px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  text-shadow: none !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
}

.tt-nl-wrap .tt-nl-container button.tt-nl-submit-btn:active  { transform: scale(0.98) !important; }
.tt-nl-wrap .tt-nl-container button.tt-nl-submit-btn:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* ════════════════════════════════════════════════════════════
   TEMA MORADO (default)
   ════════════════════════════════════════════════════════════ */
.tt-nl-tema--morado .tt-nl-container button.tt-nl-submit-btn {
  background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%) !important;
  background-color: #A855F7 !important;
}
.tt-nl-tema--morado .tt-nl-thankyou .tt-nl-check {
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
}

/* ════════════════════════════════════════════════════════════
   TEMA AZUL
   ════════════════════════════════════════════════════════════ */
.tt-nl-tema--azul .tt-nl-container button.tt-nl-submit-btn {
  background: #4F6EF7 !important;
  background-color: #4F6EF7 !important;
}
.tt-nl-tema--azul .tt-nl-thankyou .tt-nl-check {
  background: linear-gradient(135deg, #4F6EF7 0%, #3B5BDB 100%);
}

/* ── Mensaje error ──────────────────────────────────────────── */
.tt-nl-wrap .tt-nl-error {
  display: none;
  margin-top: 10px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #64748B;
}

/* ── Thank you ──────────────────────────────────────────────── */
.tt-nl-wrap .tt-nl-thankyou {
  display: none !important;
  text-align: center;
  padding: 40px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tt-nl-wrap .tt-nl-thankyou.tt-nl-thankyou--show {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.tt-nl-wrap .tt-nl-thankyou .tt-nl-check {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  animation: ttNlScaleIn 0.5s ease;
}

@keyframes ttNlScaleIn {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.tt-nl-wrap .tt-nl-thankyou .tt-nl-thanks-title {
  font-size: clamp(24px, 3vw, 32px) !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.tt-nl-wrap .tt-nl-thankyou .tt-nl-thanks-text {
  font-size: 16px !important;
  color: #64748B !important;
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tt-nl-wrap .tt-nl-container { gap: 10px !important; }

  .tt-nl-wrap .tt-nl-container input.tt-nl-email-input {
    padding: 0 20px !important;
    font-size: 14px !important;
    height: 52px !important;
  }

  .tt-nl-wrap .tt-nl-container button.tt-nl-submit-btn {
    padding: 0 28px !important;
    font-size: 14px !important;
    height: 52px !important;
  }
}

@media (max-width: 480px) {
  .tt-nl-wrap .tt-nl-container {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .tt-nl-wrap .tt-nl-container input.tt-nl-email-input,
  .tt-nl-wrap .tt-nl-container button.tt-nl-submit-btn {
    width: 100% !important;
  }

  .tt-nl-wrap .tt-nl-thankyou { padding: 30px 15px; }

  .tt-nl-wrap .tt-nl-thankyou .tt-nl-check {
    width: 60px !important;
    height: 60px !important;
    font-size: 30px !important;
  }
}