/* ---------------------------------------------------------
   checkout-style.min.css — Versión 9F Premium + FIX Brick
   Continuidad total con tu landing
   Sin tocar DOM interno del Brick (100% seguro)
---------------------------------------------------------- */

body {
  background:#FAF7F2;
  margin:0;
  font-family:'Inter',sans-serif;
  color:#1F1F1F;
}

* { box-sizing:border-box; }

.checkout-page {
  display:flex;
  justify-content:center;
  padding:20px 12px;
}

/* ---------------------------------------------------------
   FIX DESBORDE BRICK
   (PADRES SIN PADDING HORIZONTAL)
---------------------------------------------------------- */

.checkout-container {
  width:100%;
  max-width:450px;
  background:#fff;
  padding:22px 0; /* ← FIX: SIN padding horizontal */
  border-radius:18px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

/* padding horizontal en elementos internos */
.inner-padding {
  padding-left:18px;
  padding-right:18px;
}

/* ---------------------------------------------------------
   HEADER
---------------------------------------------------------- */

.checkout-header {
  text-align:center;
  margin-bottom:18px;
}

.checkout-header,
.email-section,
.footer-legal {
  padding-left:18px;
  padding-right:18px;
}

.title {
  margin:0;
  font-size:22px;
  font-weight:700;
}

.product-title {
  font-size:15px;
  margin-top:6px;
  font-weight:600;
  color:#0F4E43;
}

.product-price {
  font-size:26px;
  font-weight:800;
  margin:6px 0 10px;
  color:#0F4E43;
}

.secure-mini {
  font-size:13px;
  color:#555;
  margin-top:2px;
}

/* ---------------------------------------------------------
   PASO 1 — EMAIL + WALLET
---------------------------------------------------------- */

.email-section {
  border:1px solid rgba(15,78,67,0.12);
  border-radius:16px;
  padding:16px 14px;
  background:#FAF7F2;
  margin-bottom:18px;
}

.step-pill {
  padding:4px 10px;
  border-radius:999px;
  background:rgba(15,78,67,0.1);
  color:#0F4E43;
  font-size:11px;
  font-weight:600;
  display:inline-block;
  margin-bottom:10px;
}

.email-label {
  font-size:13px;
  font-weight:600;
  color:#0F4E43;
}

.email-caption {
  font-size:12px;
  color:#777;
  margin:2px 0 10px;
}

.email-input {
  width:100%;
  padding:11px 12px;
  border:1px solid #ccc;
  border-radius:10px;
  font-size:14px;
  margin-bottom:14px;
  transition:all .15s ease;
}

.email-input:focus {
  border-color:#0F4E43;
  box-shadow:0 0 0 1px rgba(15,78,67,0.25);
  outline:none;
}

.input-error {
  border-color:#d9534f !important;
}

/* BOTÓN WALLET */
.mp-wallet-btn {
  width:100%;
  background:#009ee3;
  color:#fff;
  border:none;
  padding:13px;
  border-radius:12px;
  font-size:15px;
  font-weight:700;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  cursor:pointer;
  transition:background .18s ease;
}

.mp-wallet-btn:hover {
  background:#008fcc;
}

.mp-icon {
  height:18px;
}

/* Separador */
.separator {
  text-align:center;
  margin:14px 0 4px;
  font-size:12px;
  color:#999;
}

.separator span {
  background:#FAF7F2;
  padding:0 8px;
}

/* ---------------------------------------------------------
   PASO 2 — TARJETA (sin box)
---------------------------------------------------------- */

.card-section {
  margin-top: 8px;
  padding-left:18px;
  padding-right:18px;
}

/* El wrapper del Brick SIN padding interno para evitar overflow */
.brick-clean-wrapper {
  margin-top: 14px;
  padding: 0; /* ← CLAVE: SIN padding interno */
  border-radius: 14px;

  /* marco atmosférico premium */
  background: rgba(15, 78, 67, 0.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: all .25s ease;
}

/* Eliminamos reglas viejas */
.card-box {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* ---------------------------------------------------------
   FOOTER
---------------------------------------------------------- */

.footer-legal {
  margin-top:28px;
  text-align:center;
  font-size:11px;
  color:#777;
}

.footer-legal p {
  margin:4px 0;
}

/* ---------------------------------------------------------
   REMOCIÓN DE REGLAS INSEGURAS PREVIAS
---------------------------------------------------------- */

.product-card,
.product-img,
.price,
.secure {
  display:none !important;
}

/* ===============================================
   FIX FINAL — Alineación Brick 9F (compatible 100%)
================================================ */

/* 1. Alinear Brick sin box y sin sobresalir */
.brick-clean-wrapper {
  margin-top: 12px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* 2. Forzar que el iframe del Brick respete el ancho del contenedor */
#cardBrick_container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* 3. Restaurar estética del Step 1 (que se comprimió antes) */
.email-section {
  padding: 18px 14px !important;
  border-radius: 16px !important;
  background: #FAF7F2 !important;
}

/* 4. Evitar que cualquier regla global afecte internamente al Brick */
.card-section * {
  line-height: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* =========================================================
   OPCIÓN A — Bloqueo del Brick hasta que exista email válido
   ========================================================= */

#cardBrick_container {
  opacity: .18;
  pointer-events: none;
  filter: grayscale(80%);
  transition: opacity .25s ease, filter .25s ease;
}

#cardBrick_container.brick-active {
  opacity: 1;
  pointer-events: auto;
  filter: none;
}


