/* ═══════════════════════════════════════════════════════════════════
   BCX Theme, checkout.css
   Estilo do checkout BCX (identificação, pagamento, Pix confirmação)
   Mobile-first 390px iPhone, baseline dos mockups bcx-ui-padrao v1.1.
   v1.1.0, 15/05/2026, Sprint Dia 1 do checkout.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Variáveis locais do checkout (não conflitam com base) ─────── */
.bcx-checkout {
  --bcx-cor-pix: var(--bcx-accent, #10B981);
  --bcx-cor-pix-dark: #047857;
  --bcx-cor-pix-light: #D1FAE5;
  --bcx-cor-promo: #EF4444;
  --bcx-cor-destaque: #F59E0B;
  --bcx-checkout-radius: 12px;
  --bcx-checkout-radius-sm: 8px;
  --bcx-checkout-pad: 16px;
}

/* ─── Reset interno ────────────────────────────────────────────── */
.bcx-checkout, .bcx-checkout * {
  box-sizing: border-box;
}

/* ─── Form root, mobile-first ──────────────────────────────────── */
.bcx-checkout {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--bcx-text, #0F172A);
  line-height: 1.5;
  padding: var(--bcx-checkout-pad);
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Stepper visual ───────────────────────────────────────────── */
.bcx-stepper {
  margin-bottom: 20px;
}
.bcx-stepper ol {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 8px;
}
.bcx-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  font-size: 12px;
  color: var(--bcx-text-soft, #94A3B8);
}
.bcx-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bcx-border, #E2E8F0);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.bcx-step.is-done .bcx-step-num {
  background: var(--bcx-cor-pix);
  color: #fff;
}
.bcx-step.is-current {
  color: var(--bcx-primary, #2563EB);
  font-weight: 600;
}
.bcx-step.is-current .bcx-step-num {
  background: var(--bcx-primary, #2563EB);
  color: #fff;
}
.bcx-step + .bcx-step::before {
  content: '';
  position: absolute;
  top: 14px; left: -50%;
  width: 100%; height: 2px;
  background: var(--bcx-border, #E2E8F0);
  z-index: -1;
}

/* Stepper clicável (calderon 17/05/2026): steps is-done viram link/button
   pra cliente voltar pra etapa anterior. */
.bcx-step-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition: opacity .12s ease;
}
.bcx-step.is-done .bcx-step-link:hover .bcx-step-label {
  color: #047857;
  text-decoration: underline;
}
.bcx-step.is-done .bcx-step-link:hover .bcx-step-num {
  transform: scale(1.08);
  transition: transform .12s ease;
}
.bcx-step.is-done .bcx-step-link:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 4px;
  border-radius: 6px;
}

/* ─── Vehicle context (autopeças, diferencial BCX) ─────────────── */
.bcx-vehicle-context {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bcx-primary-light, #DBEAFE);
  border-left: 4px solid var(--bcx-primary, #2563EB);
  padding: 12px 16px;
  border-radius: var(--bcx-checkout-radius-sm);
  margin-bottom: 16px;
}
.bcx-vehicle-icon { font-size: 24px; }
.bcx-vehicle-info { display: flex; flex-direction: column; }
.bcx-vehicle-info strong { font-size: 12px; color: var(--bcx-primary-dark, #1E40AF); }
.bcx-vehicle-info span { font-size: 14px; font-weight: 600; }

/* ─── Section wrapper ──────────────────────────────────────────── */
.bcx-checkout-section {
  background: #fff;
  border-radius: var(--bcx-checkout-radius);
  padding: 20px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.bcx-section-header { margin-bottom: 16px; }
.bcx-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--bcx-text, #0F172A);
}
.bcx-section-help {
  font-size: 13px;
  color: var(--bcx-text-mid, #475569);
  margin: 0;
}
.bcx-subsection-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bcx-text-mid, #475569);
  margin: 16px 0 8px;
}
.bcx-checkout-subsection { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--bcx-border, #E2E8F0); }

/* ─── Welcome banner (cliente recorrente, Frame 2) ─────────────── */
/* IMPORTANTE: respeitar atributo HTML hidden, JS controla quando exibe */
.bcx-welcome-banner[hidden] { display: none !important; }
.bcx-welcome-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bcx-cor-pix-light);
  border-left: 4px solid var(--bcx-cor-pix);
  padding: 14px 16px;
  border-radius: var(--bcx-checkout-radius-sm);
  margin-bottom: 16px;
  animation: bcx-slide-down 0.3s ease-out;
}
.bcx-welcome-icon { font-size: 22px; }
.bcx-welcome-text { display: flex; flex-direction: column; gap: 2px; }
.bcx-welcome-text strong { color: var(--bcx-cor-pix-dark); font-size: 15px; }
.bcx-welcome-text span { font-size: 13px; color: var(--bcx-text-mid, #475569); }

/* ─── Field group ──────────────────────────────────────────────── */
.bcx-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.bcx-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bcx-text, #0F172A);
}
.bcx-req { color: var(--bcx-cor-promo); margin-left: 2px; }
.bcx-optional { color: var(--bcx-text-soft, #94A3B8); font-weight: 400; font-size: 12px; margin-left: 4px; }
.bcx-field-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 16px; /* >= 16px evita zoom iOS */
  font-family: inherit;
  background: #fff;
  border: 2px solid var(--bcx-border, #E2E8F0);
  border-radius: var(--bcx-checkout-radius-sm);
  color: var(--bcx-text, #0F172A);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bcx-field-input:focus-visible {
  outline: none;
  border-color: var(--bcx-primary, #2563EB);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.bcx-field-input.valid {
  border-color: var(--bcx-cor-pix);
}
.bcx-field-input.invalid {
  border-color: var(--bcx-cor-promo);
}
.bcx-field-input.loading {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10' opacity='0.25'/%3E%3Cpath d='M12 2a10 10 0 0 1 10 10' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.bcx-field-input[readonly] {
  background: #F8FAFC;
  color: var(--bcx-text-mid, #475569);
  cursor: not-allowed;
}
.bcx-field-status {
  font-size: 13px;
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bcx-field-status.success { color: var(--bcx-cor-pix-dark); }
.bcx-field-status.info { color: var(--bcx-primary, #2563EB); }
.bcx-field-status.warning { color: var(--bcx-cor-destaque); }
.bcx-field-status.error { color: var(--bcx-cor-promo); }
.bcx-field-help {
  font-size: 12px;
  color: var(--bcx-text-mid, #475569);
  min-height: 14px;
}
.bcx-field-help.success { color: var(--bcx-cor-pix-dark); font-weight: 500; }
.bcx-field-hint {
  font-size: 11px;
  color: var(--bcx-text-soft, #94A3B8);
  margin-top: 2px;
}
.bcx-field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bcx-field-row > .bcx-field-1-3 { grid-column: span 1; }
.bcx-field-row > .bcx-field-2-3 { grid-column: span 1; }
.bcx-field-uf { max-width: 80px; }

/* ─── Bloco PJ (Frame 4) ───────────────────────────────────────── */
.bcx-pj-block {
  background: #FFFBEB;
  border: 1px dashed #FCD34D;
  border-radius: var(--bcx-checkout-radius-sm);
  padding: 14px;
  margin-bottom: 16px;
  animation: bcx-slide-down 0.3s ease-out;
}
.bcx-pj-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #92400E;
}
.bcx-pj-icon { font-size: 16px; }

/* ─── Create account checkbox ──────────────────────────────────── */
.bcx-create-account label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.bcx-create-account-pwd { margin-top: 12px; }

/* ─── CEP + addresses ──────────────────────────────────────────── */
.bcx-cep-group { position: relative; }
.bcx-cep-help-link {
  position: absolute;
  top: 0; right: 0;
  font-size: 12px;
  color: var(--bcx-primary, #2563EB);
  text-decoration: none;
}
.bcx-cep-help-link:hover { text-decoration: underline; }

.bcx-saved-addresses ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bcx-saved-addresses li {
  padding: 12px;
  border: 2px solid var(--bcx-border, #E2E8F0);
  border-radius: var(--bcx-checkout-radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bcx-saved-addresses li input[type="radio"]:checked + span {
  font-weight: 600;
}
.bcx-saved-addresses li:has(input:checked) {
  border-color: var(--bcx-primary, #2563EB);
  background: var(--bcx-primary-light, #DBEAFE);
}
.bcx-link-button {
  background: none;
  border: none;
  color: var(--bcx-primary, #2563EB);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.bcx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px; /* padronizado com cart */
  padding: 0 20px;
  font-family: inherit;
  font-size: 15px; /* padronizado com cart */
  font-weight: 700;
  border: none;
  border-radius: var(--bcx-checkout-radius-sm);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
}
.bcx-button-lg { min-height: 52px; font-size: 15px; }
.bcx-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.bcx-button-block { width: 100%; }
/* Botão azul Guedes padronizado pra todas as etapas do checkout */
.bcx-button-primary {
  background: #5BB0E5 !important;
  color: #fff !important;
  border: 0 !important;
}
.bcx-checkout .bcx-button-primary:hover:not(:disabled),
.bcx-checkout .bcx-button-primary:focus:not(:disabled),
.bcx-button-primary:hover:not(:disabled),
.bcx-button-primary:focus:not(:disabled) {
  background: #3A90C8 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.bcx-button-primary:disabled {
  background: #B9DFF3 !important;
  color: #fff !important;
  cursor: not-allowed;
  transform: none !important;
}
.bcx-checkout .bcx-button-pix:hover:not(:disabled),
.bcx-button-pix:hover:not(:disabled) {
  background: var(--bcx-cor-pix-dark, #047857) !important;
  color: #fff !important;
}
.bcx-button-pix,
.bcx-button-secondary {
  background: var(--bcx-cor-pix);
  color: #fff;
}
.bcx-button-pix:hover:not(:disabled) {
  background: var(--bcx-cor-pix-dark);
}
.bcx-button-secondary {
  background: #fff;
  color: var(--bcx-primary, #2563EB);
  border: 2px solid var(--bcx-primary, #2563EB);
}

/* ─── Order summary expandível ─────────────────────────────────── */
.bcx-order-summary {
  background: #F8FAFC;
  border-radius: var(--bcx-checkout-radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}
.bcx-order-summary summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}
.bcx-order-summary summary::-webkit-details-marker { display: none; }
.bcx-summary-label {
  flex: 1;
  font-size: 13px;
  color: var(--bcx-text-mid, #475569);
}
.bcx-summary-total {
  color: var(--bcx-cor-pix-dark);
  font-size: 16px;
}
.bcx-summary-toggle {
  font-size: 12px;
  color: var(--bcx-text-soft, #94A3B8);
  transition: transform 0.2s;
}
.bcx-order-summary[open] .bcx-summary-toggle { transform: rotate(180deg); }

/* ─── Payment methods ──────────────────────────────────────────── */
.bcx-payment-methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bcx-payment-method {
  background: #fff;
  border: 2px solid var(--bcx-border, #E2E8F0);
  border-radius: var(--bcx-checkout-radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.bcx-payment-method.is-selected {
  border-color: var(--bcx-cor-pix);
}
.bcx-method-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  font-size: 14px;
}
.bcx-method-radio {
  width: 18px; height: 18px;
  accent-color: var(--bcx-cor-pix);
  flex-shrink: 0;
}
.bcx-method-icon { font-size: 20px; }
.bcx-method-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bcx-method-title strong { font-size: 15px; }
.bcx-method-subtitle { font-size: 12px; color: var(--bcx-text-mid, #475569); }
.bcx-method-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bcx-badge-success { background: var(--bcx-cor-pix); color: #fff; }
.bcx-method-arrow {
  font-size: 12px;
  color: var(--bcx-text-soft, #94A3B8);
  transition: transform 0.2s;
}
.bcx-payment-method.is-expanded .bcx-method-arrow { transform: rotate(180deg); }
.bcx-method-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--bcx-border, #E2E8F0);
}
.bcx-method-body[hidden] { display: none; }
.bcx-method-desc { font-size: 13px; color: var(--bcx-text-mid, #475569); margin: 12px 0; }
.bcx-pix-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0;
}
.bcx-pix-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--bcx-cor-pix-dark);
}
.bcx-pix-economy {
  font-size: 12px;
  font-weight: 600;
  color: var(--bcx-cor-pix-dark);
  background: var(--bcx-cor-pix-light);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ─── Bandeira do cartão (auto-detect via BIN) ─────────────────── */
.bcx-card-input-wrap {
  position: relative;
}
.bcx-card-input-wrap .bcx-field-input {
  padding-right: 56px;
}
.bcx-card-brand-slot {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}
.bcx-card-brand-slot .bcx-card-brand-svg {
  display: block;
  width: 36px;
  height: auto;
  border-radius: 3px;
}

/* Strip "Aceitamos:" abaixo do input */
.bcx-card-brands-accepted {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.bcx-card-brands-label {
  font-size: 11px;
  color: var(--bcx-text-soft, #94A3B8);
  font-weight: 500;
}
.bcx-card-brands-strip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.bcx-card-brands-strip .bcx-card-brand-svg {
  display: inline-block;
}

/* ─── Trust footer ─────────────────────────────────────────────── */
.bcx-checkout-trust {
  background: var(--bcx-primary-light, #DBEAFE);
  border-radius: var(--bcx-checkout-radius-sm);
  padding: 12px;
  text-align: center;
  margin-top: 16px;
}
.bcx-checkout-trust p {
  font-size: 12px;
  margin: 4px 0;
  color: var(--bcx-primary-dark, #1E40AF);
  font-weight: 500;
}

/* ─── Thankyou (Pix confirmação) ───────────────────────────────── */
.bcx-thankyou {
  font-family: 'Inter', sans-serif;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}
.bcx-thankyou-header { text-align: center; padding: 16px 0; }
.bcx-thankyou-status {
  font-size: 14px;
  color: var(--bcx-cor-pix-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.bcx-thankyou-icon {
  display: inline-block;
  margin-right: 4px;
}
.bcx-thankyou-title {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.bcx-thankyou-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  background: #FEF3C7;
  color: #92400E;
  padding: 4px 12px;
  border-radius: 16px;
  font-weight: 700;
}
.bcx-thankyou-timer.is-urgent {
  background: #FEE2E2;
  color: var(--bcx-cor-promo);
  animation: bcx-pulse 1s infinite;
}

/* ─── Botão COPIAR Pix (hero, 60-70% da tela) ──────────────────── */
.bcx-button-pix-copy {
  width: 100%;
  min-height: 72px;
  background: linear-gradient(135deg, var(--bcx-cor-pix) 0%, var(--bcx-cor-pix-dark) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border: none;
  border-radius: var(--bcx-checkout-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  margin: 20px 0;
  letter-spacing: 0.5px;
  transition: transform 0.1s, box-shadow 0.15s;
}
.bcx-button-pix-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45);
}
.bcx-button-pix-copy.is-copied {
  background: linear-gradient(135deg, var(--bcx-cor-pix-dark) 0%, #065F46 100%);
  animation: bcx-flash 0.3s;
}
.bcx-pix-copy-icon { font-size: 28px; }

.bcx-pix-steps {
  background: #F8FAFC;
  padding: 16px 20px 16px 36px;
  margin: 16px 0;
  border-radius: var(--bcx-checkout-radius-sm);
  font-size: 14px;
  color: var(--bcx-text-mid, #475569);
}
.bcx-pix-steps li { margin: 6px 0; }

/* ─── Logo oficial Pix + "Pague em qualquer banco" ────────────── */
.bcx-pix-universal {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.bcx-pix-logo {
  width: 48px;
  height: 48px;
  display: block;
}
.bcx-pix-universal-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--bcx-text, #0F172A);
  text-align: center;
  margin: 0;
}

/* ─── QR Code centralizado ─────────────────────────────────────── */
.bcx-pix-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px auto;
  max-width: 240px;
}
.bcx-pix-or {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bcx-text-soft, #94A3B8);
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.bcx-pix-or::before, .bcx-pix-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bcx-border, #E2E8F0);
}
.bcx-pix-qr-image {
  display: block;
  width: 140px;
  height: 140px;
  border: 2px solid var(--bcx-border, #E2E8F0);
  border-radius: var(--bcx-checkout-radius);
  padding: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin: 0 auto;
}

.bcx-thankyou-footer { text-align: center; margin-top: 24px; }
.bcx-thankyou-footer p { font-size: 13px; color: var(--bcx-text-mid, #475569); margin: 8px 0; }
.bcx-thankyou-trust { color: var(--bcx-cor-pix-dark) !important; font-weight: 600; }

/* ─── Confirmado, frame 3 ──────────────────────────────────────── */
.bcx-pix-confirmed {
  text-align: center;
  padding: 32px 16px;
  animation: bcx-fade-in 0.4s ease-out;
}
.bcx-pix-confirmed-check, .bcx-thankyou-check {
  width: 80px; height: 80px;
  background: var(--bcx-cor-pix);
  color: #fff;
  border-radius: 50%;
  font-size: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  animation: bcx-bounce 0.5s ease-out;
}
.bcx-pix-confirmed h2 {
  font-size: 22px;
  margin: 12px 0;
}
.bcx-pix-confirmed p {
  font-size: 14px;
  color: var(--bcx-text-mid, #475569);
  margin: 8px 0;
}
.bcx-thankyou-meta { font-size: 13px; }
.bcx-pix-confirmed-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

/* ─── Boleto ───────────────────────────────────────────────────── */
.bcx-boleto-line-wrap {
  background: #F8FAFC;
  padding: 14px;
  border-radius: var(--bcx-checkout-radius-sm);
  margin: 16px 0;
  text-align: center;
}
.bcx-boleto-line {
  display: block;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 14px;
  word-break: break-all;
  margin-bottom: 12px;
  color: var(--bcx-text, #0F172A);
}

/* ─── Order details collapse ───────────────────────────────────── */
.bcx-order-details {
  margin: 24px 0;
  padding: 12px;
  background: #F8FAFC;
  border-radius: var(--bcx-checkout-radius-sm);
}
.bcx-order-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--bcx-primary, #2563EB);
}

/* ─── Animations ───────────────────────────────────────────────── */
@keyframes bcx-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bcx-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bcx-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes bcx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes bcx-flash {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ─── Layout 1 coluna unificado (desktop + mobile) ─────────────────
   Decisão UX (calderon, 16/05/2026): consistência total entre cart,
   identificação e pagamento. Cart já era 1 coluna, pagamento mostra 1 coluna
   no mockup mobile. Identificação herdada do mockup desktop tinha 2 colunas,
   foi padronizada pra 1 coluna full-width centralizado.
   Vantagens: consistência visual + experiência mobile e desktop iguais +
   menos código CSS responsive + resumo acessível via accordion fechado. */
.bcx-checkout {
  max-width: 880px; /* padronizado com cart.php pra coerência das 3 telas */
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .bcx-checkout {
    padding: 32px 24px;
    gap: 24px;
  }
}
/* ─── FRAMES (3 telas navegáveis: Identificação / Pagamento / Pix) ─────────
   Decisão calderon 16/05/2026, alinhado com mockup preview-checkout-guedes.html.
   JS controla qual frame está ativo via .is-active + atributo hidden. */
.bcx-frame { display: none; }
.bcx-frame.is-active { display: block; animation: bcx-frame-fade 0.3s ease-out; }
.bcx-frame[hidden] { display: none !important; }
@keyframes bcx-frame-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Vehicle context (autopeças) no topo do frame Identificação */
.bcx-vehicle-context {
  display: flex; align-items: center; gap: 10px;
  background: var(--bcx-primary-light, #DEF1FE);
  border-left: 4px solid var(--bcx-primary, #37B7FF);
  padding: 10px 14px;
  border-radius: var(--bcx-checkout-radius-sm, 8px);
  margin-bottom: 14px;
}
.bcx-vehicle-icon { color: var(--bcx-primary, #37B7FF); flex-shrink: 0; }
.bcx-vehicle-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bcx-vehicle-info small {
  font-size: 10px; color: var(--bcx-primary-deep, #0F5E94);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.bcx-vehicle-info strong { font-size: 13px; font-weight: 700; color: var(--bcx-text-dark, #0F172A); }

/* Section Entrega: fundo BRANCO (campos cinza por dentro), igual ao resto do form */
.bcx-section-entrega {
  background: #FFFFFF !important;
  border-radius: var(--bcx-checkout-radius-md, 12px);
  padding: 16px 14px;
  margin-top: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid #E2E8F0 !important;
}

/* Order summary compacto (header do frame Pagamento) */
.bcx-order-summary-compact {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bcx-bg-soft, #F8FAFC);
  border-radius: var(--bcx-checkout-radius-sm, 8px);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.bcx-summary-left { display: flex; flex-direction: column; gap: 2px; }
.bcx-summary-left strong { font-size: 14px; color: var(--bcx-text-dark, #0F172A); }
.bcx-summary-left small { font-size: 11px; color: var(--bcx-text-soft, #94A3B8); }
.bcx-order-summary-compact .bcx-summary-total {
  font-size: 18px; font-weight: 800; color: var(--bcx-cor-pix-dark, #047857);
}

/* Trust badge na tela de pagamento */
.bcx-trust {
  background: var(--bcx-primary-light, #DEF1FE);
  border-radius: var(--bcx-checkout-radius-sm, 8px);
  padding: 10px;
  text-align: center;
  margin: 16px 0;
}
.bcx-trust p {
  font-size: 11px; color: var(--bcx-primary-deep, #0F5E94);
  font-weight: 500; margin: 0;
  display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center;
}

/* Botão voltar (link discreto) */
.bcx-back-to-identificacao,
.bcx-frame .bcx-link-button[data-bcx-frame] {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; padding: 8px 12px;
  font-size: 13px; color: var(--bcx-text-mid, #475569);
  cursor: pointer; font-family: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.bcx-back-to-identificacao:hover { color: var(--bcx-primary, #37B7FF); }

/* Frame Pix placeholder */
.bcx-pix-placeholder {
  text-align: center; padding: 40px 20px;
  background: var(--bcx-bg, #FFFFFF);
  border-radius: var(--bcx-checkout-radius-md, 12px);
  border: 1px dashed var(--bcx-border, #E2E8F0);
}
.bcx-pix-placeholder svg { color: var(--bcx-cor-pix, #10B981); margin-bottom: 12px; }
.bcx-pix-placeholder p { font-size: 14px; color: var(--bcx-text-mid, #475569); margin: 6px 0; }
.bcx-pix-placeholder-help { font-size: 12px; color: var(--bcx-text-soft, #94A3B8); }

/* ─── COLUNA DIREITA: Seu pedido (resumo, sempre visível, sem preço unit) ── */
.bcx-mini-summary {
  background: var(--bcx-bg, #FFFFFF);
  border: 1px solid var(--bcx-border, #E2E8F0);
  border-radius: var(--bcx-checkout-radius-sm, 8px);
  padding: 16px;
  margin-bottom: 16px;
}
/* <details>/<summary> reset (necessário pra usar como accordion sem marker) */
.bcx-mini-summary > summary { list-style: none; cursor: pointer; }
.bcx-mini-summary > summary::-webkit-details-marker { display: none; }

.bcx-mini-summary-summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}
.bcx-mini-summary-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--bcx-text-dark, #1A1A1A);
  margin: 0;
  text-align: left;
}
.bcx-mini-summary-meta {
  font-size: 13px;
  color: var(--bcx-text-mid, #475569);
  white-space: nowrap;
}
.bcx-mini-summary-total-inline {
  font-weight: 700;
  color: var(--bcx-cor-pix-dark, #047857);
}
.bcx-mini-summary-chevron {
  display: flex;
  align-items: center;
  color: var(--bcx-text-mid, #94A3B8);
  transition: transform 0.2s ease;
}
.bcx-mini-summary[open] .bcx-mini-summary-chevron { transform: rotate(180deg); }

.bcx-mini-summary-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bcx-border, #E2E8F0);
}

.bcx-mini-summary-items {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bcx-mini-summary-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}
.bcx-mini-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--bcx-checkout-radius-sm, 8px);
  background: var(--bcx-bg-soft, #F8FAFC);
  border: 1px solid var(--bcx-border, #E2E8F0);
}
.bcx-mini-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bcx-mini-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--bcx-text-dark, #1A1A1A);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bcx-mini-meta {
  font-size: 11px;
  color: var(--bcx-text-mid, #94A3B8);
}
.bcx-mini-totals {
  border-top: 1px dashed var(--bcx-border, #E2E8F0);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bcx-mini-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--bcx-text-mid, #475569);
}
.bcx-mini-total-row.bcx-mini-total-pix {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--bcx-border, #E2E8F0);
  font-size: 15px;
  color: var(--bcx-text-dark, #1A1A1A);
}
.bcx-mini-total-row.bcx-mini-total-pix strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--bcx-cor-pix-dark, #047857);
}

/* ─── Frame Pagamento: estilização do gateway WC ────────────────────
   Esconde tabela default WC (resumo já temos no order-summary-compact),
   força width 100% no #payment pra evitar layout flutuante herdado. */
/* Tirar a borda/shadow externa do bloco "Como você quer pagar?", deixar só
   os cards de método visíveis (calderon 17/05/2026, padrão ML puro) */
.bcx-section-pagamento {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
}
.bcx-section-pagamento .woocommerce-checkout-review-order-table { display: none !important; }
/* WC nativo renderiza outro "Forma de pagamento" dentro de .woocommerce-checkout-payment, esconder duplicado */
.bcx-section-pagamento .woocommerce-checkout-payment > h3,
.bcx-section-pagamento .bcx-payment > h3,
.bcx-section-pagamento #payment > h3:not(.bcx-subsection-title) { display: none !important; }
.bcx-section-pagamento #order_review,
.bcx-section-pagamento #payment {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  padding: 0 !important;
  float: none !important;
}
.bcx-section-pagamento .wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bcx-section-pagamento .wc_payment_method,
.bcx-section-pagamento .payment_method {
  width: 100%;
}

/* ─── Mobile: accordion fechado no topo, full-width ─── */
@media (max-width: 767px) {
  .bcx-section-pedido { order: -1; } /* sobe pro topo se em flex container */
  .bcx-mini-summary { padding: 12px 14px; margin-bottom: 12px; }
  .bcx-mini-summary-heading { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   EXPRESS CHECKOUT, login com Google (calderon 18/05/2026 v1.20.1)
   Visual aprovado em mockup, backend OAuth proxima sprint.
   Padrao Shopify/Stripe: botao branco com border + logo Google colorido +
   divider "ou" antes do form CPF/CNPJ. CPF continua chave primaria (NF-e).
   ═══════════════════════════════════════════════════════════════════ */
.bcx-express-block {
  margin-bottom: 4px;
}
.bcx-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: #fff;
  border: 1.5px solid #DADCE0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #3C4043;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, box-shadow 150ms;
  -webkit-appearance: none;
  appearance: none;
}
.bcx-google-btn:hover {
  background: #F8F9FA;
  border-color: #BDC1C6;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}
.bcx-google-btn:active {
  background: #F1F3F4;
}
.bcx-google-btn:focus-visible {
  outline: 2px solid var(--bcx-primary, #2563EB);
  outline-offset: 2px;
}
.bcx-google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.bcx-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bcx-or-divider::before,
.bcx-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}
.bcx-or-divider span {
  flex-shrink: 0;
}

/* ─── Acessibilidade ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Touch targets mínimos 44px (Apple HIG) ───────────────────── */
.bcx-button,
.bcx-method-header,
.bcx-saved-addresses li {
  min-height: 44px;
}

/* ═══════════════════════════════════════════════════════════════════
   PAYMENT v1.2.0 — alinhamento ao mockup pagamento-mobile.html
   Lei de Jakob (padrão e-commerce BR), 16/05/2026
   ═══════════════════════════════════════════════════════════════════ */

/* Section label pequeno cinza uppercase no topo da lista de métodos */
.bcx-payment .bcx-payment-title-row {
  padding: 4px 0 10px;
}
.bcx-payment .bcx-payment-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94A3B8;
}
/* Esconde h3 antigo do subsection-title no payment.php (mantém compat) */
.bcx-payment > .bcx-subsection-title { display: none !important; }

/* Container único de métodos: cards individuais com borda própria (calderon 17/05/2026 v2:
   tirou o border externo + radius do wrapper pra deixar cada método como card isolado) */
.bcx-payment .bcx-payment-methods {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 14px 0 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bcx-payment .bcx-payment-method {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.bcx-payment .bcx-payment-method.is-selected.is-expanded {
  border-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.08);
}
/* Header do frame Pagamento ganha respiro extra abaixo da help */
.bcx-payment > .bcx-section-header-tight { margin-bottom: 0; }
/* (regra legacy do container unificado, mantida inerte) */
.bcx-payment .bcx-payment-method:last-child { border-bottom: 0; }

/* Header do método */
.bcx-payment .bcx-method-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
}

/* Radio circular custom (cinza vazio → cheio verde quando ativo) */
.bcx-payment .bcx-method-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 2px solid #CBD5E1;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  margin: 0;
}
.bcx-payment .bcx-payment-method.is-selected .bcx-method-radio,
.bcx-payment .bcx-method-radio:checked {
  border-color: #10B981;
}
.bcx-payment .bcx-payment-method.is-selected .bcx-method-radio::after,
.bcx-payment .bcx-method-radio:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #10B981;
  border-radius: 50%;
}
/* Card method ativo usa azul */
.bcx-payment .bcx-method-card.is-selected .bcx-method-radio,
.bcx-payment .bcx-method-card .bcx-method-radio:checked { border-color: #5BB0E5; }
.bcx-payment .bcx-method-card.is-selected .bcx-method-radio::after,
.bcx-payment .bcx-method-card .bcx-method-radio:checked::after { background: #5BB0E5; }
/* Boleto ativo usa cinza escuro */
.bcx-payment .bcx-method-boleto.is-selected .bcx-method-radio,
.bcx-payment .bcx-method-boleto .bcx-method-radio:checked { border-color: #0F172A; }
.bcx-payment .bcx-method-boleto.is-selected .bcx-method-radio::after,
.bcx-payment .bcx-method-boleto .bcx-method-radio:checked::after { background: #0F172A; }

/* Pill badges coloridos no lugar de SVG Lucide */
.bcx-payment .bcx-method-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 38px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.3px;
  font-family: 'Inter', -apple-system, sans-serif;
  flex-shrink: 0;
}
.bcx-payment .bcx-pill-pix { background: #10B981; color: #fff; }
.bcx-payment .bcx-pill-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  color: #1A1F71;
  min-width: 42px;
}
.bcx-payment .bcx-pill-boleto {
  background: #0F172A;
  color: #fff;
  min-width: 50px;
  font-size: 9px;
}

/* Title e subtitle */
.bcx-payment .bcx-method-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.bcx-payment .bcx-method-title strong { font-size: 14px; font-weight: 700; color: #0F172A; }
.bcx-payment .bcx-method-subtitle {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 1px;
}

/* Badge "8% OFF" verde */
.bcx-payment .bcx-method-badge {
  display: inline-block;
  margin-left: 0;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.bcx-payment .bcx-badge-success { background: #10B981; color: #fff; }

/* Body separado por borda dashed (igual mockup) */
.bcx-payment .bcx-method-body {
  padding: 14px 16px 16px;
  margin: 0 16px;
  border-top: 1px dashed #E2E8F0;
  border-left: 0;
}
.bcx-payment .bcx-method-body[hidden] { display: none !important; }
.bcx-payment .bcx-payment-method.is-collapsed .bcx-method-body { display: none !important; }

/* Pix info box centralizado verde */
.bcx-payment .bcx-pix-info {
  background: #D1FAE5;
  border: 1px solid #6EE7B7;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}
.bcx-payment .bcx-pix-old {
  font-size: 13px;
  color: #94A3B8;
  text-decoration: line-through;
  margin-bottom: 4px;
}
.bcx-payment .bcx-pix-old .woocommerce-Price-amount,
.bcx-payment .bcx-pix-old bdi { color: inherit; text-decoration: inherit; font-weight: 500; }
.bcx-payment .bcx-pix-big {
  font-size: 32px;
  font-weight: 900;
  color: #047857;
  letter-spacing: -1px;
  line-height: 1;
  margin: 2px 0 4px;
}
.bcx-payment .bcx-pix-big .woocommerce-Price-amount,
.bcx-payment .bcx-pix-big bdi { font-size: inherit; font-weight: inherit; color: inherit; }
.bcx-payment .bcx-pix-eco {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
}

/* Pix howto, 4 steps numerados */
.bcx-payment .bcx-pix-howto {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bcx-payment .bcx-pix-howto li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #0F172A;
  line-height: 1.4;
  margin: 0;
}
.bcx-payment .bcx-pix-howto-num {
  width: 22px; height: 22px;
  background: #10B981;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* CTA finalizar do mockup, full width destacado */
.bcx-payment .bcx-cta-finalizar {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 900;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.bcx-payment .bcx-button-pix.bcx-cta-finalizar {
  background: #10B981 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16,185,129,0.25);
}
.bcx-payment .bcx-button-pix.bcx-cta-finalizar:hover:not(:disabled) {
  background: #047857 !important;
}
.bcx-payment .bcx-button-primary.bcx-cta-finalizar {
  background: #5BB0E5 !important;
  color: #fff !important;
}
.bcx-payment .bcx-cta-finalizar .bcx-icon,
.bcx-payment .bcx-cta-finalizar svg { color: currentColor; }

/* Card form: campo número com slot de bandeira à direita */
.bcx-payment .bcx-card-input-wrap { position: relative; }
.bcx-payment .bcx-card-input-wrap .bcx-card-brand-slot {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(20%);
  pointer-events: none;
}

/* Parcelamento como lista de opções (não select) */
.bcx-payment .bcx-installments-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bcx-payment .bcx-installment-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.bcx-payment .bcx-installment-option:hover { border-color: #5BB0E5; }
.bcx-payment .bcx-installment-option.is-active {
  border-color: #5BB0E5;
  background: #DBEAFE;
}
.bcx-payment .bcx-installment-qty { font-weight: 800; color: #0F172A; }
.bcx-payment .bcx-installment-meta { font-size: 11px; color: #475569; }
.bcx-payment .bcx-installment-val { font-weight: 700; color: #0F172A; }
.bcx-payment .bcx-installment-val .woocommerce-Price-amount,
.bcx-payment .bcx-installment-val bdi { font-weight: inherit; color: inherit; }

/* Trust strip estilo mockup */
.bcx-payment .bcx-payment-trust {
  list-style: none;
  padding: 14px 16px;
  margin: 12px 0 0;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bcx-payment .bcx-payment-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #475569;
  margin: 0;
}
.bcx-payment .bcx-payment-trust svg { color: #10B981; flex-shrink: 0; }

/* LGPD bottom */
.bcx-payment .bcx-payment-lgpd {
  padding: 14px 16px 4px;
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.5;
  text-align: center;
}
.bcx-payment .bcx-payment-lgpd a { color: #5BB0E5; text-decoration: underline; }
.bcx-payment .bcx-payment-lgpd-text { margin: 0 0 6px; }
.bcx-payment .bcx-payment-lgpd-processor {
  font-size: 10.5px;
  color: #94A3B8;
  margin: 0;
}

/* Esconde duplicidades do WC nativo dentro do .bcx-payment */
.bcx-payment .woocommerce-info,
.bcx-payment .place-order { display: none !important; }
.bcx-payment .bcx-wc-payment-fields { display: none !important; }

/* Method.desc, usado pelo boleto (texto descritivo) */
.bcx-payment .bcx-method-desc {
  font-size: 13px;
  color: #475569;
  margin: 0 0 14px;
}

/* Mobile fine-tune */
@media (max-width: 480px) {
  .bcx-payment .bcx-method-header { padding: 12px 14px; }
  .bcx-payment .bcx-method-body { padding: 12px 14px 14px; margin: 0 14px; }
  .bcx-payment .bcx-pix-big { font-size: 28px; }
  .bcx-payment .bcx-cta-finalizar { font-size: 13px; padding: 14px 12px; letter-spacing: 0.4px; }
}

/* Screen-reader only (acessibilidade) */
.bcx-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Lista de parcelamento completa 1x→max, padrão Mercado Livre/Magalu */
.bcx-payment .bcx-installments-list { gap: 4px; }
.bcx-payment .bcx-installment-option { padding: 9px 12px; font-size: 13px; }
.bcx-payment .bcx-installment-meta { text-align: center; }
@media (max-width: 480px) {
  .bcx-payment .bcx-installment-option { padding: 8px 10px; font-size: 12.5px; }
  .bcx-payment .bcx-installment-qty { font-size: 13px; }
}

/* Row 3 colunas (bairro / cidade / UF), 16/05/2026 calderon
   Desktop: 3 colunas na mesma linha (bairro / cidade / UF)
   Mobile (<=600px): bairro sozinho em cima, cidade + UF embaixo (cidade larga, UF estreito) */
.bcx-field-row.bcx-field-row-bcu {
  grid-template-columns: 1.4fr 1fr 70px;
}
@media (max-width: 600px) {
  .bcx-field-row.bcx-field-row-bcu {
    grid-template-columns: 1fr 70px;
    gap: 8px 8px;
  }
  /* Bairro (1º filho) ocupa linha inteira */
  .bcx-field-row.bcx-field-row-bcu > .bcx-field-group:first-child {
    grid-column: 1 / -1;
  }
}
.bcx-field-row.bcx-field-row-bcu .bcx-field-uf { max-width: none; }

/* ═══════════════════════════════════════════════════════════════════
   FRAME VERIFICAÇÃO WHATSAPP — código OTP 4 dígitos
   ═══════════════════════════════════════════════════════════════════ */
.bcx-section-verify {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.bcx-verify-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px 22px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.bcx-verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #D1FAE5;
  color: #047857;
  margin: 0 auto 14px;
}
.bcx-verify-card .bcx-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px;
}
.bcx-verify-help {
  font-size: 13.5px;
  color: #475569;
  margin: 0 0 22px;
  line-height: 1.5;
}
.bcx-verify-help strong { color: #0F172A; font-weight: 700; white-space: nowrap; }

.bcx-otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 14px;
}
.bcx-otp-input {
  width: 56px;
  height: 64px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  background: #fff;
  font-family: 'Inter', -apple-system, sans-serif;
}
.bcx-otp-input:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
@media (max-width: 380px) {
  .bcx-otp-input { width: 48px; height: 56px; font-size: 22px; }
  .bcx-otp-row { gap: 8px; }
}

.bcx-verify-msg {
  min-height: 18px;
  font-size: 12.5px;
  margin: 4px 0 14px;
  color: #475569;
}
.bcx-verify-msg.is-success { color: #047857; font-weight: 600; }
.bcx-verify-msg.is-error   { color: #DC2626; font-weight: 600; }
.bcx-verify-msg.is-info    { color: #475569; }

.bcx-verify-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  font-size: 12.5px;
}
.bcx-verify-footer .bcx-link-button {
  background: transparent;
  border: 0;
  color: #5BB0E5;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bcx-verify-footer .bcx-link-button[disabled] {
  color: #94A3B8;
  cursor: not-allowed;
}
.bcx-verify-timer { font-size: 12px; color: #94A3B8; font-weight: 500; }

/* Banner welcome cliente recorrente + CTAs claros */
.bcx-welcome-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: #D1FAE5;
  border: 1px solid #6EE7B7;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.bcx-welcome-banner .bcx-welcome-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  color: #064E3B;
  line-height: 1.45;
}
.bcx-welcome-banner .bcx-welcome-text strong { font-size: 15px; color: #047857; }
#bcx-welcome-phone { white-space: nowrap; }
.bcx-welcome-cta {
  align-self: stretch;
  background: #10B981 !important;
  color: #fff !important;
  min-height: 44px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
}
.bcx-welcome-cta:hover { background: #047857 !important; }
.bcx-welcome-not-me {
  background: transparent;
  border: 0;
  color: #047857;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  align-self: center;
}
/* Quando cliente recorrente identificado mas ainda não validou, "tranca" os campos abaixo */
body.bcx-recurring-locked .bcx-section-entrega,
body.bcx-recurring-locked #bcx-continuar-pagamento {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.3);
  transition: opacity 0.2s;
}

/* ═══════════════════════════════════════════════════════════════════
   Batch fix auditoria E2E 16/05/2026 calderon
   ═══════════════════════════════════════════════════════════════════ */

/* P3: Rua larga + Número estreito (calderon pediu) */
.bcx-field-row.bcx-field-row-rua-numero {
  grid-template-columns: 3.5fr 1fr;
}
@media (max-width: 480px) {
  .bcx-field-row.bcx-field-row-rua-numero { grid-template-columns: 3fr 1fr; gap: 8px; }
}

/* P1: Shipping methods limpos (cart + checkout)
   Renomear via bcx-shipping-cleanup.php, aqui só ajusta visual */
.bcx-shipping-rate-label .bcx-shipping-name {
  font-weight: 700;
  color: #0F172A;
  font-size: 13.5px;
}
.bcx-shipping-rate-label .bcx-shipping-name[data-type="pickup"]::before {
  content: '📍 ';
  font-style: normal;
}
.bcx-shipping-rate-label .bcx-shipping-name[data-type="sedex"]::before { content: '⚡ '; }
.bcx-shipping-rate-label .bcx-shipping-name[data-type="pac"]::before { content: '📦 '; }
.bcx-shipping-rate-label .bcx-shipping-eta {
  display: inline-block;
  margin-left: 6px;
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 500;
}

/* P2: Email mascarado revelar parcialmente (mostrar 3 chars antes do @) */
.bcx-field-input[readonly][data-masked] {
  background: #F8FAFC;
  color: #475569;
}

/* ═══════════════════════════════════════════════════════════════════
   PAGAMENTO BCX v1.14 — quick wins benchmark BR (calderon 17/05/2026)
   1. Resumo compacto topo
   2. Trust inline perto CTA
   5. Subtítulo no CTA
   7. Urgência despacho hoje
   8. Boleto opacidade 60%
   ═══════════════════════════════════════════════════════════════════ */

/* 1. RESUMO COMPACTO no topo (lê de relance: quantos itens, frete, total Pix) */
.bcx-payment-summary {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.bcx-payment-summary-items {
  display: flex; align-items: center; gap: 6px;
  color: #475569; font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px dashed #E2E8F0;
}
.bcx-payment-summary-items strong { color: #0F172A; font-weight: 800; }
.bcx-summary-icon { color: #5BB0E5; display: inline-flex; }
.bcx-summary-sep { color: #CBD5E1; margin: 0 2px; }
.bcx-summary-subtotal { margin-left: auto; color: #0F172A; font-weight: 700; }
.bcx-payment-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  font-size: 12.5px; color: #475569;
}
.bcx-payment-summary-row span { display: inline-flex; align-items: center; gap: 4px; }
.bcx-payment-summary-row span svg { color: #5BB0E5; }
.bcx-payment-summary-row strong { color: #0F172A; font-weight: 700; }
.bcx-payment-summary-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1.5px solid #E2E8F0;
  font-size: 14px;
}
.bcx-payment-summary-total span { color: #047857; font-weight: 600; }
.bcx-payment-summary-total strong { color: #047857; font-weight: 900; font-size: 16px; }

/* 7. URGÊNCIA: tarja amarela "Despacho HOJE até 14h" */
.bcx-payment-urgency {
  display: flex; align-items: center; gap: 8px;
  background: #FEF3C7;
  border-left: 3px solid #F59E0B;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  margin: 10px 0 12px;
  font-size: 12.5px; color: #92400E;
  animation: bcx-urgency-pulse 2.5s ease-in-out infinite;
}
.bcx-payment-urgency-icon { font-size: 16px; line-height: 1; flex-shrink: 0; }
.bcx-payment-urgency strong { font-weight: 800; }
@keyframes bcx-urgency-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  50%      { box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
}

/* 5. CTA com subtítulo (linha 2 menor com info de urgência) */
.bcx-cta-with-sub { flex-direction: column; padding: 12px 14px !important; gap: 2px !important; }
.bcx-cta-with-sub .bcx-cta-text {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bcx-cta-with-sub .bcx-cta-main { font-size: 15px; font-weight: 800; }
.bcx-cta-with-sub .bcx-cta-sub  {
  font-size: 11px; font-weight: 500; opacity: 0.92;
  letter-spacing: 0.1px;
}

/* 2. TRUST inline logo abaixo do CTA verde (Cielo processa, antifraude) */
.bcx-cta-trust {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 11px; color: #475569; font-weight: 500;
}
.bcx-cta-trust svg { color: #047857; flex-shrink: 0; }
.bcx-cta-trust span { line-height: 1.3; }

/* 8. BOLETO menos destacado (opacidade 60%, mantém clicável) */
.bcx-payment-method.bcx-method-deprioritized:not(.is-expanded) {
  opacity: 0.62;
  transition: opacity 0.15s;
}
.bcx-payment-method.bcx-method-deprioritized:hover,
.bcx-payment-method.bcx-method-deprioritized:focus-within,
.bcx-payment-method.bcx-method-deprioritized.is-expanded {
  opacity: 1;
}

/* Resumo do pedido expandable v2 (calderon 17/05/2026): defesa contra duplicação,
   mora FORA de #order_review pra WC AJAX não duplicar. Detail/summary nativo. */
.bcx-order-summary-expandable {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.bcx-order-summary-expandable summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.bcx-order-summary-expandable summary::-webkit-details-marker { display: none; }
.bcx-order-summary-expandable summary::after {
  content: '▾';
  color: #94A3B8;
  font-size: 11px;
  transition: transform .2s;
  margin-left: 8px;
}
.bcx-order-summary-expandable[open] summary::after { transform: rotate(180deg); }
.bcx-order-summary-expandable .bcx-summary-left strong {
  font-size: 14px; color: #0F172A; display: block; line-height: 1.2;
}
.bcx-order-summary-expandable .bcx-summary-left small {
  font-size: 11.5px; color: #64748B; font-weight: 500;
}
.bcx-order-summary-expandable .bcx-summary-total {
  font-size: 17px; font-weight: 900; color: #047857;
}
.bcx-summary-body {
  padding: 12px 16px 16px;
  border-top: 1px dashed #E2E8F0;
  background: #F8FAFC;
}
.bcx-summary-body .bcx-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0;
  font-size: 13px; color: #475569;
}
.bcx-summary-body .bcx-summary-row strong { color: #0F172A; font-weight: 700; }
.bcx-summary-body .bcx-summary-eco strong { color: #047857; }
.bcx-summary-body .bcx-free { color: #047857; font-weight: 800; }
.bcx-summary-body .bcx-summary-row-final {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1.5px solid #CBD5E1;
  font-size: 14px;
}
.bcx-summary-body .bcx-summary-row-final span { color: #047857; font-weight: 700; }
.bcx-summary-body .bcx-summary-row-final strong { color: #047857; font-size: 17px; font-weight: 900; }

/* ═══════════════════════════════════════════════════════════════════
   FLUXO ML v1.15.0 — Parcelas + Revisar + Loading
   Calderon 17/05/2026: 2 fluxos paralelos (Pix curto / Cartão longo)
   convergem em frame Revisar. Loading full-screen no submit final.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── CTA Next, padronizado (verde Pix / azul Cartão) ──────────── */
.bcx-payment .bcx-cta-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  margin-top: 14px;
}
.bcx-payment .bcx-cta-next:active { transform: translateY(1px); }
.bcx-payment .bcx-cta-next .bcx-cta-text {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
}
.bcx-payment .bcx-cta-next .bcx-cta-arrow {
  font-size: 18px; font-weight: 900; line-height: 1;
  transition: transform .15s ease;
}
.bcx-payment .bcx-cta-next:hover .bcx-cta-arrow { transform: translateX(3px); }

.bcx-payment .bcx-cta-pix {
  background: #10B981 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16,185,129,0.25);
}
.bcx-payment .bcx-cta-pix:hover { background: #047857 !important; box-shadow: 0 6px 18px rgba(16,185,129,0.32); }

.bcx-payment .bcx-cta-card,
.bcx-payment .bcx-cta-boleto {
  background: #2563EB !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.22);
}
.bcx-payment .bcx-cta-card:hover,
.bcx-payment .bcx-cta-boleto:hover { background: #1E40AF !important; box-shadow: 0 6px 18px rgba(37,99,235,0.3); }

/* ─── FRAME PARCELAS — card slim do cartão escolhido ─────────── */
.bcx-section-parcelas { padding: 0 4px; }
.bcx-section-header-tight { margin-bottom: 14px; }
.bcx-section-header-tight .bcx-section-title {
  font-size: 22px; font-weight: 900; letter-spacing: -0.4px;
  color: #0F172A; margin: 0 0 4px;
}
.bcx-section-header-tight .bcx-section-help {
  font-size: 13px; color: #64748B; margin: 0;
}

.bcx-card-slim {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.bcx-card-slim-brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bcx-card-slim-brand svg { width: 44px; height: auto; }
.bcx-card-slim-info { flex: 1; min-width: 0; line-height: 1.3; }
.bcx-card-slim-info strong {
  display: block;
  font-size: 13.5px; font-weight: 800; color: #0F172A;
}
.bcx-card-slim-info small {
  display: block;
  font-size: 12.5px; color: #64748B;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.bcx-card-slim-edit {
  background: transparent;
  border: 0;
  color: #2563EB;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: underline;
}
.bcx-card-slim-edit:hover { background: #EFF6FF; text-decoration: none; }

/* ─── Lista grande de parcelas (estilo ML) ─────────────────────── */
.bcx-installments-grand {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}
.bcx-installments-grand .bcx-grand-option {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: background .12s ease;
  background: #fff;
}
.bcx-installments-grand .bcx-grand-option:last-child { border-bottom: 0; }
.bcx-installments-grand .bcx-grand-option:hover { background: #F8FAFC; }
.bcx-installments-grand .bcx-grand-option.is-active {
  background: #EFF6FF;
  position: relative;
}
.bcx-installments-grand .bcx-grand-option.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #2563EB;
}

.bcx-installments-grand .bcx-grand-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: border-color .12s ease;
  margin-left: 4px;
}
.bcx-installments-grand .bcx-grand-option.is-active .bcx-grand-radio {
  border-color: #2563EB;
}
.bcx-installments-grand .bcx-grand-option.is-active .bcx-grand-radio::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2563EB;
}

.bcx-installments-grand .bcx-grand-mid {
  min-width: 0;
  line-height: 1.35;
}
.bcx-installments-grand .bcx-grand-qty {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}
.bcx-installments-grand .bcx-grand-qty .bcx-grand-x {
  font-weight: 600;
  color: #64748B;
  margin-right: 2px;
}
.bcx-installments-grand .bcx-grand-meta {
  display: block;
  font-size: 12px;
  color: #047857;
  font-weight: 600;
  margin-top: 1px;
}
.bcx-installments-grand .bcx-grand-meta.is-warn { color: #B45309; }

.bcx-installments-grand .bcx-grand-end {
  text-align: right;
  line-height: 1.3;
}
.bcx-installments-grand .bcx-grand-val {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}
.bcx-installments-grand .bcx-grand-total {
  display: block;
  font-size: 11.5px;
  color: #64748B;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 380px) {
  .bcx-installments-grand .bcx-grand-option { padding: 12px 14px; gap: 10px; }
  .bcx-installments-grand .bcx-grand-qty { font-size: 14px; }
  .bcx-installments-grand .bcx-grand-val { font-size: 13.5px; }
}

/* ─── CTA Installments (azul) ─────────────────────────────────── */
.bcx-cta-installments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: #2563EB !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.22);
  transition: background .15s ease, box-shadow .15s ease;
  margin-bottom: 12px;
}
.bcx-cta-installments:hover { background: #1E40AF !important; }
.bcx-cta-installments .bcx-cta-arrow { font-size: 18px; font-weight: 900; }

/* ─── Back link comum (Voltar) ─────────────────────────────────── */
.bcx-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  margin: 0 auto;
  width: 100%;
  justify-content: center;
}
.bcx-back-link:hover { color: #2563EB; }

/* ═══════════════════════════════════════════════════════════════
   FRAME REVISAR — cards de resumo + CTA gigante
   ═══════════════════════════════════════════════════════════════ */
.bcx-section-revisar { padding: 0 4px; }

.bcx-review-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.bcx-review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  border-bottom: 1px dashed #F1F5F9;
}
.bcx-review-card-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94A3B8;
}
.bcx-review-edit {
  background: transparent;
  border: 0;
  color: #2563EB;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: underline;
}
.bcx-review-edit:hover { background: #EFF6FF; text-decoration: none; }

.bcx-review-card-body {
  padding: 14px 16px;
  font-size: 13.5px;
  color: #0F172A;
  line-height: 1.5;
}

/* Bloco Forma de Pagamento (linha de cima grande, linha de baixo secundária) */
.bcx-review-payment-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bcx-review-payment-brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 32px;
}
.bcx-review-payment-brand .bcx-method-pill {
  width: 48px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.bcx-review-payment-brand svg { width: 48px; height: auto; }
.bcx-review-payment-text { flex: 1; min-width: 0; line-height: 1.35; }
.bcx-review-payment-title {
  display: block;
  font-size: 15px; font-weight: 800; color: #0F172A;
}
.bcx-review-payment-sub {
  display: block;
  font-size: 12.5px; color: #64748B;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.bcx-review-payment-amount {
  font-size: 17px;
  font-weight: 900;
  color: #047857;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

/* Bloco Faturamento (nome + doc + endereço compacto) */
.bcx-review-billing-line {
  margin-bottom: 6px;
  font-size: 13.5px;
}
.bcx-review-billing-line:last-child { margin-bottom: 0; }
.bcx-review-billing-line strong { font-weight: 700; color: #0F172A; }
.bcx-review-billing-line .bcx-rb-label {
  color: #64748B;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}

/* Card de Totais — breakdown final, valores grandes */
.bcx-review-totals .bcx-review-card-body {
  padding: 6px 16px 14px;
}
.bcx-review-totals .bcx-rt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13.5px;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.bcx-review-totals .bcx-rt-row strong { color: #0F172A; font-weight: 700; }
.bcx-review-totals .bcx-rt-row.is-eco strong { color: #047857; }
.bcx-review-totals .bcx-rt-row.is-free strong { color: #047857; font-weight: 800; }
.bcx-review-totals .bcx-rt-final {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1.5px solid #CBD5E1;
}
.bcx-review-totals .bcx-rt-final span { color: #047857; font-weight: 700; font-size: 14.5px; }
.bcx-review-totals .bcx-rt-final strong {
  color: #047857;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.bcx-review-totals .bcx-rt-final.is-card span { color: #1E40AF; }
.bcx-review-totals .bcx-rt-final.is-card strong { color: #1E40AF; }

/* LGPD pequenininho */
.bcx-review-lgpd {
  font-size: 11.5px;
  color: #94A3B8;
  text-align: center;
  margin: 12px 4px;
  line-height: 1.5;
}
.bcx-review-lgpd a { color: #5BB0E5; text-decoration: underline; }

/* CTA FINAL — esse é o submit real */
.bcx-cta-confirmar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 18px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.3px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: #10B981 !important;
  color: #fff !important;
  box-shadow: 0 6px 22px rgba(16,185,129,0.32);
  transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
  margin-bottom: 10px;
}
.bcx-cta-confirmar:hover { background: #047857 !important; box-shadow: 0 8px 26px rgba(16,185,129,0.4); }
.bcx-cta-confirmar:active { transform: translateY(1px); }
.bcx-cta-confirmar .bcx-cta-text {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bcx-cta-confirmar .bcx-cta-main { font-size: 16px; font-weight: 900; line-height: 1.1; }
.bcx-cta-confirmar .bcx-cta-sub {
  font-size: 11.5px; font-weight: 600; opacity: 0.95;
  letter-spacing: 0.2px;
}
.bcx-cta-confirmar svg { color: #fff; flex-shrink: 0; }

/* Modificador pra cartão (azul) */
.bcx-cta-confirmar.is-card {
  background: #2563EB !important;
  box-shadow: 0 6px 22px rgba(37,99,235,0.32);
}
.bcx-cta-confirmar.is-card:hover { background: #1E40AF !important; }
.bcx-cta-confirmar.is-boleto {
  background: #475569 !important;
  box-shadow: 0 6px 22px rgba(71,85,105,0.28);
}
.bcx-cta-confirmar.is-boleto:hover { background: #334155 !important; }

/* Estado disabled durante submit */
.bcx-cta-confirmar:disabled,
.bcx-cta-confirmar.is-loading {
  opacity: 0.7; cursor: progress;
}

/* ═══════════════════════════════════════════════════════════════
   OVERLAY DE LOADING — full-screen, dispara no Confirmar pedido
   ═══════════════════════════════════════════════════════════════ */
.bcx-checkout-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: #fff;
  padding: 20px;
  animation: bcx-loading-fadein .3s ease;
}
.bcx-checkout-loading[hidden] { display: none; }
.bcx-checkout-loading.is-pix {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}
@keyframes bcx-loading-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.bcx-checkout-loading-inner {
  text-align: center;
  max-width: 380px;
}
.bcx-checkout-loading-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bcx-spin 0.9s linear infinite;
}
@keyframes bcx-spin {
  to { transform: rotate(360deg); }
}
.bcx-checkout-loading-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  line-height: 1.2;
}
.bcx-checkout-loading-sub {
  font-size: 14px;
  opacity: 0.92;
  margin: 0;
  font-weight: 500;
}

/* Esconde elementos do payment.php que viraram navegação (place-order WC nativo + LGPD duplicado) */
.bcx-payment .bcx-payment-lgpd .woocommerce-terms-and-conditions-wrapper { display: none; }
.bcx-payment .bcx-payment-lgpd p:empty { display: none; }

/* Stepper compacto nos frames de pagamento (já não precisa do número da etapa) */
.bcx-frame-parcelas .bcx-stepper,
.bcx-frame-revisar .bcx-stepper { margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════════
   "Você pagará" — bloco resumo bottom do frame Pagamento (estilo ML)
   Calderon 17/05/2026: cliente vê total ao escolher método sem rolar.
   Atualiza dinâmico via JS quando troca método (Pix verde / Cartão azul / Boleto cinza).
   ═══════════════════════════════════════════════════════════════════ */
.bcx-pay-summary {
  margin: 16px 0 14px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label values"
    "eco eco";
  gap: 4px 10px;
  align-items: baseline;
  transition: border-color .2s ease, background .2s ease;
}
.bcx-pay-summary-label {
  grid-area: label;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}
.bcx-pay-summary-values {
  grid-area: values;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.bcx-pay-summary-cash {
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity .2s ease, max-width .2s ease;
}
.bcx-pay-summary.has-discount .bcx-pay-summary-cash {
  opacity: 1;
  max-width: 200px;
}
.bcx-pay-summary-final {
  font-size: 22px;
  font-weight: 900;
  color: #0F172A; /* sempre preto, padrão Mercado Livre (calderon 17/05/2026) */
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.bcx-pay-summary-eco {
  grid-area: eco;
  text-align: right;
  font-size: 12px;
  color: #047857; /* só o "economiza" em verde — neutro com destaque pra economia */
  font-weight: 700;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .2s ease, max-height .2s ease;
}
.bcx-pay-summary.has-discount .bcx-pay-summary-eco {
  opacity: 1;
  max-height: 24px;
}
/* Valor final SEMPRE preto; cor por método foi removida pra não dispersar atenção */

@media (max-width: 540px) {
  .bcx-pay-summary { padding: 12px 14px; }
  .bcx-pay-summary-final { font-size: 20px; }
  .bcx-pay-summary-values { gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════
   WhatsApp v1.17.0 — prefixo +55 visual fixo fora do input
   Calderon 17/05/2026: maskPhone duplicava "55 55" porque re-prefixava
   "+55" na string em cada keystroke. Solução: prefixo decorativo,
   cliente nunca interage com ele.
   ═══════════════════════════════════════════════════════════════════ */
.bcx-phone-wrap {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bcx-phone-wrap:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.bcx-phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #F1F5F9;
  border-right: 1px solid #E2E8F0;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  font-variant-numeric: tabular-nums;
  user-select: none;
  white-space: nowrap;
}
.bcx-phone-input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 12px !important;
  min-width: 0;
}
.bcx-phone-input:focus { box-shadow: none !important; }

/* Estados do input phone respeitam o wrap, não o input direto */
.bcx-phone-wrap.is-locked { background: #F8FAFC; }
.bcx-phone-wrap.is-locked .bcx-phone-prefix { background: #E2E8F0; }
.bcx-phone-input[readonly] {
  background: transparent !important;
  color: #475569 !important;
  cursor: not-allowed;
}
/* Valid/invalid no wrap */
.bcx-field-phone-group .bcx-phone-wrap:has(.bcx-phone-input.valid) {
  border-color: #10B981;
}
.bcx-field-phone-group .bcx-phone-wrap:has(.bcx-phone-input.invalid) {
  border-color: #EF4444;
}
