* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, sans-serif;
  background: #fafbfc;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

.checkout-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.checkout-back-link {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.checkout-back-link:hover {
  color: #374151;
}
.checkout-back-link.hidden {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  cursor: default;
}

.logo:hover { color: #1a1a1a; }

.nav-btn {
  padding: 10px 20px;
  background: #1a1a1a;
  color: white;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-btn:hover { background: #333; color: white; }

.checkout-main {
  padding: 24px 0 48px;
}

.checkout-error {
  padding: 12px 16px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 8px;
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.checkout-error.hidden { display: none; }

/* Preço garantido — estilo discreto (cartão / Stripe-like), alinhado ao .checkout-card */
.checkout-price-lock {
  margin-bottom: 20px;
  padding: 13px 16px;
  background: #f6f9fc;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  border-left: 3px solid #22c55e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.checkout-price-lock.hidden {
  display: none;
}
.checkout-price-lock-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.checkout-price-lock-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #64748b;
}
.checkout-price-lock-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #425466;
  font-weight: 400;
}
.checkout-price-lock-label {
  display: inline;
  font-weight: 500;
  color: #425466;
  letter-spacing: 0;
  text-transform: none;
}
.checkout-price-lock-countdown {
  display: inline;
  margin-left: 0.35em;
  white-space: nowrap;
}
.checkout-price-lock-timer {
  font-size: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #0a2540;
}
.checkout-price-lock-unit {
  font-weight: 500;
  font-size: 0.9em;
  color: #6b7c8f;
  margin-left: 0.15em;
}
.checkout-price-lock--ended {
  border-left-color: #cbd5e1;
  background: #f8fafc;
}
.checkout-price-lock--ended .checkout-price-lock-timer {
  color: #94a3b8;
}
.checkout-price-lock--ended .checkout-price-lock-label,
.checkout-price-lock--ended .checkout-price-lock-text {
  color: #64748b;
}

.checkout-debug {
  margin-bottom: 24px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: monospace;
}

.checkout-debug.hidden { display: none; }

.checkout-debug-title {
  font-weight: 600;
  margin: 0 0 12px;
  color: #475569;
}

#checkoutDebugSteps .debug-step {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
}

#checkoutDebugSteps .debug-step.error { border-left-color: #ef4444; }

#checkoutDebugSteps .debug-step pre {
  margin: 6px 0 0;
  padding: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.8rem;
  max-height: 200px;
  overflow-y: auto;
}

.checkout-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.checkout-card.hidden { display: none; }
.form-row.hidden { display: none !important; }

/* Genérico: wrappers fora de .form-row (ex.: #mensalBillingBlock) */
.hidden { display: none !important; }

.checkout-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Resumo do pedido (checkout avulso e mensal) — hierarquia tipo Stripe Checkout */
.checkout-order-summary {
  margin: 0 0 4px;
}
.checkout-card .checkout-order-summary > h1 {
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

/* Resumo colapsável: linha fixa com total + ▼; detalhes não empurram a página ao marcar order bump */
.checkout-order-summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 14px;
  background: #f6f9fc;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: #0f172a;
  -webkit-tap-highlight-color: transparent;
}
.checkout-order-summary-toggle:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.checkout-order-summary-toggle-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.checkout-order-summary-toggle-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.checkout-order-summary-toggle-total {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0d9488;
  letter-spacing: -0.02em;
}
.checkout-order-summary-toggle-icon {
  font-size: 0.65rem;
  color: #64748b;
  line-height: 1;
}
.checkout-order-summary-details {
  display: none;
  margin: 0 0 16px;
}
.checkout-order-summary-details.is-open {
  display: block;
}
.checkout-order-summary-inner {
  margin: 0 0 8px;
  padding: 16px 18px 15px;
  background: #f6f9fc;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.checkout-order-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #425466;
}
.checkout-order-line-label {
  font-weight: 500;
  color: #0f172a;
  flex: 1;
  min-width: 0;
}
.checkout-order-line-price {
  flex-shrink: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  color: #0f172a;
}
.checkout-order-line-price .checkout-order-price-note {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0;
  text-transform: none;
}
.checkout-order-total-follow {
  margin-top: 4px !important;
  font-weight: 500;
}
.checkout-order-line-price .checkout-price-strike {
  color: #94a3b8;
  font-weight: 500;
  margin-right: 6px;
}
.checkout-order-line-price .checkout-price-current {
  font-weight: 600;
  color: #0f172a;
}
.checkout-order-line-price .checkout-price-off-pct {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: #16a34a;
  font-weight: 500;
}
.checkout-order-extra-lines {
  margin: 0;
}
.checkout-order-extra-lines.hidden {
  display: none !important;
}
.checkout-order-line--extra,
.checkout-order-line--discount {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  font-size: 0.875rem;
}
.checkout-order-line--extra .checkout-order-line-label {
  color: #475569;
  font-weight: 500;
}
.checkout-order-line--discount .checkout-order-line-label {
  color: #64748b;
  font-weight: 500;
}
.checkout-order-discount-value {
  color: #15803d;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.checkout-order-total-block {
  margin: 0;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.checkout-order-total-block.hidden {
  display: none !important;
}
.checkout-order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.checkout-order-total-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.checkout-order-total-amount {
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #0d9488;
  letter-spacing: -0.02em;
}
.checkout-order-total-detail {
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: #64748b;
  text-align: right;
}

.checkout-plan-info {
  margin: 0 0 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}
.checkout-plan-info .checkout-price-strike {
  color: #9ca3af;
  font-weight: 500;
  margin-right: 6px;
}
.checkout-plan-info .checkout-price-current {
  font-weight: 600;
  color: #1a1a1a;
}
.checkout-plan-info .checkout-price-off-pct {
  font-size: 0.85em;
  color: #16a34a;
  font-weight: 500;
  margin-left: 4px;
}
.checkout-price-mensal-first {
  color: #166534;
}

.checkout-upsell-today {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #059669;
  line-height: 1.2;
  margin: 8px 0 4px;
}

.checkout-upsell-today strong {
  font-size: 2.4rem;
}

.checkout-upsell-depois {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af;
}

.checkout-upsell-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #92400e;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
}
.checkout-plan-promo {
  display: block;
  font-size: 0.75em;
  font-weight: 600;
  color: #ea580c;
  margin-top: 2px;
}

.checkout-plan-benefit {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: #047857;
  font-weight: 600;
}
.checkout-plan-benefit.hidden { display: none; }
.checkout-plan-benefit--subscriber {
  display: inline-block;
  margin: 8px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  font-weight: 700;
}

.checkout-mensal-lock-cta {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

/* Mensal: login obrigatório — aviso antes de qualquer campo */
.checkout-mensal-gate {
  max-width: 420px;
  margin: 0 auto 24px;
  padding: 24px 22px;
  border-radius: 16px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(165deg, #eef2ff 0%, #fff 55%);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}
.checkout-mensal-gate-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.25;
}
.checkout-mensal-gate-text {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: #4338ca;
  line-height: 1.55;
}
.checkout-mensal-gate .btn-checkout {
  display: inline-block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.checkout-mensal-gate-hint {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

/* Mensal: já tem o mesmo plano ativo */
.checkout-mensal-same-plan {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}
.checkout-mensal-same-plan.hidden {
  display: none;
}
.checkout-form--blocked {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.checkout-coupon-msg.hidden,
.coupon-msg.hidden { display: none; }

.checkout-summary {
  display: none;
}
.checkout-summary-features {
  display: none;
}
.checkout-summary-row {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-summary-row:last-child {
  margin-bottom: 0;
}
.checkout-summary-row span:first-child {
  flex-shrink: 0;
}
.checkout-summary-highlight {
  font-weight: 600;
  color: #047857;
  background: rgba(5, 150, 105, 0.09);
  padding: 6px 10px !important;
  margin: 6px 0 !important;
  border-radius: 8px;
  border-left: 3px solid #059669;
}
.checkout-plan-total {
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #047857;
}
.checkout-plan-total.hidden { display: none; }
#mensalCouponMsg {
  display: none !important;
}

/* Order pump: acima do botão Gerar Pix */
.ordempump-box {
  margin: 0 0 10px;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ordempump-box:has(input:checked) {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}
.ordempump-box:hover {
  border-color: #a7f3d0;
}
.ordempump-box.hidden { display: none; }
.ordempump-title {
  margin: 0;
  padding: 5px 12px;
  background: #f0fdf4;
  font-size: 0.68rem;
  font-weight: 700;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #d1fae5;
}
.ordempump-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  cursor: pointer;
  margin: 0;
  padding: 10px 12px;
}
.ordempump-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.ordempump-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #059669;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 4px;
}
.ordempump-row-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 4px;
}
.ordempump-prehead {
  display: block;
  font-size: 0.72rem;
  color: #047857;
  font-weight: 600;
  line-height: 1.3;
}
.ordempump-offer {
  font-size: 0.88rem;
  color: #111827;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  flex: 1;
}
.ordempump-offer .ordempump-price-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
  margin-left: 4px;
  white-space: nowrap;
  vertical-align: middle;
}
.ordempump-credits {
  color: #111827;
  font-weight: 700;
}
.ordempump-benefit {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 2px;
}
.ordempump-strike {
  text-decoration: line-through;
  color: #9ca3af;
  margin-right: 4px;
}
.ordempump-points {
  display: block;
  font-size: 0.76rem;
  color: #334155;
  line-height: 1.3;
}

.checkout-you-buying {
  margin: 28px 0 16px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.checkout-you-buying-title {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.checkout-you-buying-list {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.checkout-you-buying-list li {
  margin-bottom: 4px;
}

.checkout-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
}

.checkout-trust-item {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.checkout-plan-intro {
  margin: 0 0 20px;
  color: #6b6b6b;
}

.checkout-plan-picker {
  margin-top: 8px;
}

.plan-picker-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin: 20px 0 10px;
}

.plan-picker-label:first-child { margin-top: 0; }

.plan-picker-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-picker-btn {
  padding: 12px 16px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.plan-picker-btn s {
  color: #9ca3af;
  margin-right: 4px;
}

.plan-picker-btn.plan-picker-featured s {
  color: rgba(255, 255, 255, 0.78);
}

.plan-picker-btn:hover {
  border-color: #1a1a1a;
  background: #fafafa;
}

.plan-picker-btn.plan-picker-featured {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border-color: #047857;
}

.plan-picker-btn.plan-picker-featured:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  border-color: #065f46;
}

.payment-method-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.pm-tab {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  background: white;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #1a1a1a;
}

.pm-tab:hover { border-color: #999; }

.pm-tab.active {
  background: #1a1a1a;
  color: #fff !important;
  border-color: #1a1a1a;
}

.checkout-form .form-row {
  margin-bottom: 20px;
}

.checkout-form .field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.35;
}

.checkout-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  letter-spacing: 0.01em;
}

.checkout-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
  color: #1a1a1a;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.checkout-form input::placeholder {
  color: #94a3b8;
}

.checkout-form input:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.checkout-form input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* Feedback visual: destacar apenas campos inválidos (vermelho). */
.checkout-mensal-wrap .checkout-form input.checkout-input-valid,
.checkout-avulso-wrap .checkout-form input.checkout-input-valid {
  border-color: #d1d5db;
  background: #fff;
  box-shadow: none;
}

.checkout-mensal-wrap .checkout-form input.checkout-input-valid:focus,
.checkout-avulso-wrap .checkout-form input.checkout-input-valid:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.checkout-mensal-wrap .checkout-form input.checkout-input-invalid,
.checkout-avulso-wrap .checkout-form input.checkout-input-invalid {
  border-color: #dc2626;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.checkout-mensal-wrap .checkout-form input.checkout-input-invalid:focus,
.checkout-avulso-wrap .checkout-form input.checkout-input-invalid:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.checkout-form .checkout-field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #dc2626;
  line-height: 1.35;
}

.checkout-form .checkout-field-error.hidden {
  display: none;
}

.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card-fields.hidden { display: none; }

/* CEP com status inline */
.cep-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cep-input-wrap input {
  flex: 1;
}
.cep-status {
  font-size: 0.82rem;
  white-space: nowrap;
  min-width: 24px;
}
.cep-status.cep-loading { color: #6b7280; }
.cep-status.cep-ok { color: #059669; font-weight: 600; }
.cep-status.cep-error { color: #dc2626; font-size: 0.78rem; }
.cep-manual-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.83rem;
  color: #475569;
}
.cep-manual-toggle input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #059669;
}
.cep-address-card {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 10px;
}
.cep-address-card input[readonly] {
  background: #ffffff;
  color: #14532d;
  border-color: #86efac;
}
.cep-addr-preview {
  margin: 4px 0 12px;
  font-size: 0.82rem;
  color: #059669;
  font-weight: 500;
  display: none;
}
.cep-addr-preview:not(.hidden) {
  display: block;
}
.addr-manual {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}
.addr-manual.hidden { display: none; }
.addr-manual .form-row { margin-bottom: 12px; }
.addr-manual .form-row:last-child { margin-bottom: 0; }

.btn-checkout {
  width: 100%;
  margin-top: 32px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.btn-checkout:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

/* Botões mais próximos da caixa "Você está comprando/assinando" */
.btn-checkout-avulso,
.btn-checkout-mensal {
  margin-top: 8px;
  padding: 17px 20px;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.38);
}
.btn-checkout-mensal:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.btn-checkout.btn-pix {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.btn-checkout.btn-pix:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}
@keyframes btn-urgency-pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
  }
}
@keyframes btn-shimmer {
  0% { left: -100%; }
  60%, 100% { left: 150%; }
}

.btn-checkout-mensal::before,
.btn-checkout-avulso::before {
  display: none;
}
.btn-checkout-mensal:disabled,
.btn-checkout-avulso:disabled {
  opacity: 0.8;
  transform: none;
}

/* Plano mensal — fluxo Pix recorrente (Woovi) */
.checkout-mensal--pix-flow .mensal-pix-intro {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #0c4a6e;
  line-height: 1.45;
}
.mensal-pix-result {
  margin-top: 8px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.mensal-pix-result-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #0f172a;
}
.mensal-pix-result-hint {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
}
.mensal-pix-qr-wrap {
  text-align: center;
  margin-bottom: 14px;
}
.mensal-pix-qr-wrap img {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.mensal-pix-br-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}
.mensal-pix-br-field {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  resize: vertical;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.btn-checkout-mensal-secondary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35) !important;
}
.btn-checkout-mensal-secondary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
}

.btn-checkout:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  animation: none;
}
.btn-checkout:disabled::before {
  display: none;
}

.btn-loading.hidden { display: none; }

.pm-tab-pix-icon {
  display: inline-block;
  width: 28px;
  height: 20px;
  background: url('https://cdn.varvos.com/videos/2889edc1-1a70-456a-a32c-e3f050102347.png') no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.pm-tab-card-icon {
  font-size: 1.1em;
  line-height: 1;
}

.checkout-pix-messages {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.checkout-pix-messages.hidden {
  display: none;
}

.checkout-pix-row {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.checkout-pix-icon-col {
  width: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-pix-icon-col .pm-tab-pix-icon,
.checkout-pix-icon-col .pm-tab-card-icon {
  flex-shrink: 0;
}
.checkout-credits-icon {
  display: inline-flex;
  align-items: center;
}
.checkout-credits-icon svg {
  display: block;
}

.pix-credits-msg {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #059669;
  text-align: center;
}

.pix-credits-msg.hidden {
  display: none;
}

.checkout-trust {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  text-align: center;
}

.checkout-trust-security {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: #6b7280;
}

.checkout-trust-cards {
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: #9ca3af;
}

.checkout-trust-cards.hidden {
  display: none;
}

.checkout-trust-cancel {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Modo Stripe: esconde tudo exceto o QR Code */
.checkout-avulso-wrap.pix-mode > *:not(#pixSuccess) {
  display: none !important;
}

.pix-success {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.pix-success.hidden { display: none; }

.pix-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px 0 0;
}

.pix-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.pix-subtitle {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.pix-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0;
}

.pix-waiting-text {
  font-size: 0.82rem;
  color: #059669;
  font-weight: 500;
}

.pix-waiting-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  animation: pixDotPulse 1.4s ease-in-out infinite;
}

.pix-waiting-dot:nth-child(2) { animation-delay: 0.2s; }
.pix-waiting-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pixDotPulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.pix-qr {
  margin-bottom: 16px;
  text-align: center;
}

.pix-qr img { max-width: 200px; height: auto; }

.pix-copy-label {
  font-size: 0.9rem;
  color: #6b6b6b;
  margin: 0 0 8px;
}

.pix-copy-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.pix-copy-wrap input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: monospace;
}

.pix-copy-wrap button {
  padding: 10px 16px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.pix-copy-wrap button:hover { background: #333; }

.pix-timer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 20px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-radius: 10px;
  font-size: 0.95rem;
}

.pix-timer-icon {
  font-size: 1.1rem;
  color: #d97706;
}

.pix-timer-label {
  color: #92400e;
  font-weight: 500;
}

.pix-timer-value {
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  color: #b45309;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pix-timer-wrap.pix-timer-urgent .pix-timer-value {
  color: #dc2626;
}

.pix-timer-wrap.pix-timer-urgent {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
}

.pix-verify-row {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pix-verify-row.hidden { display: none; }

.btn-verify-pix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-verify-pix:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.btn-verify-pix:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@keyframes pixTimerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

/* Success / Thank you page — compacto para oferta ficar above the fold */
.checkout-card.success-card {
  padding: 20px 20px 24px;
}

.checkout-card.success-card.success-digital {
  padding: 0;
  text-align: left;
}

.success-card {
  text-align: center;
}

.success-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-card h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1a1a;
}

.success-card #successMsg {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 16px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.success-redirect-msg {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0 0 20px;
}

.success-redirect-msg span {
  font-weight: 600;
  color: #10b981;
}

/* Upsell pós-compra → plano mensal — prioridade visual, above the fold */
.success-upsell {
  margin: 0;
  padding: 20px 18px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.success-upsell.hidden { display: none; }
.success-no-upsell.hidden { display: none; }

.success-upsell-headline {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
}

.success-upsell-unlocked {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #4b5563;
}

.success-upsell-unlocked strong {
  color: #059669;
}

.success-upsell-cta {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
}

.success-upsell-benefits {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.success-upsell-benefits li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: #374151;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.success-upsell-benefits .benefit-credits-item {
  padding: 8px 10px;
  margin: 4px 0;
  background: rgba(5, 150, 105, 0.08);
  border-radius: 8px;
  border-left: 3px solid #059669;
}

.success-upsell-benefits .benefit-credits-row {
  font-size: 0.95rem;
  color: #047857;
  font-weight: 600;
}

.success-upsell-benefits li:last-child {
  border-bottom: none;
}

.btn-upsell-cta {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.btn-upsell-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.45);
}

.success-upsell-urgency-line {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b45309;
  text-align: center;
}

.success-upsell-recurring {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
}

.success-upsell-recurring strong {
  color: #374151;
}

.btn-success-skip {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  font-size: 0.9rem;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-success-skip:hover {
  color: #374151;
}

.success-no-upsell {
  margin-top: 20px;
}

/* Upsell pós-compra Starter → Popular — visual premium, hierarquia clara */
.starter-upsell {
  margin: 20px 0 16px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.starter-upsell.hidden { display: none; }
.starter-upsell-urgency {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}
.starter-upsell-headline {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
}
.starter-upsell-price-old {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: line-through;
}
.starter-upsell-price {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #047857;
}
.starter-upsell-gain {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f766e;
}
.starter-upsell-comparison {
  margin: 0 0 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid #fde68a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.starter-upsell-comp-from {
  font-size: 0.9rem;
  color: #4b5563;
}
.starter-upsell-comp-arrow {
  font-size: 0.8rem;
  color: #9ca3af;
}
.starter-upsell-comp-to {
  font-size: 0.95rem;
  font-weight: 700;
  color: #047857;
}
.starter-upsell .btn-upsell {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  margin-top: 0;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 20px;
  border: none;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}
.starter-upsell .btn-upsell:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.success-card .btn-checkout {
  margin-top: 0;
}

.mensal-form-trust {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.7rem;
  color: #6b7280;
  line-height: 1.3;
}

/* Checkout avulso e mensal mobile — sem card, layout direto (estilo Stripe/Notion) */
@media (max-width: 600px) {
  .checkout-avulso-wrap,
  .checkout-mensal-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 24px;
  }
  .checkout-avulso-wrap h1,
  .checkout-mensal-wrap h1 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  .checkout-avulso-wrap .checkout-order-summary-inner,
  .checkout-mensal-wrap .checkout-order-summary-inner {
    padding: 14px 14px 13px;
    margin: 8px 0 18px;
    border-radius: 8px;
  }
  .checkout-avulso-wrap .checkout-order-line,
  .checkout-mensal-wrap .checkout-order-line {
    font-size: 0.9rem;
    gap: 12px;
  }
  .checkout-avulso-wrap .checkout-order-total-amount,
  .checkout-mensal-wrap .checkout-order-total-amount {
    font-size: 1.05rem;
  }
  .checkout-mensal-wrap .checkout-upsell-today {
    font-size: 1.6rem;
  }
  .checkout-mensal-wrap .checkout-upsell-today strong {
    font-size: 1.9rem;
  }
  .checkout-avulso-wrap .form-row-inline,
  .checkout-mensal-wrap .form-row-inline {
    gap: 10px;
  }
  .checkout-avulso-wrap .checkout-form .form-row,
  .checkout-mensal-wrap .checkout-form .form-row {
    margin-bottom: 14px;
  }
  .checkout-avulso-wrap .checkout-form label,
  .checkout-mensal-wrap .checkout-form label {
    margin-bottom: 6px;
    font-size: 0.85rem;
  }
  .checkout-avulso-wrap .checkout-form input,
  .checkout-mensal-wrap .checkout-form input {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  .checkout-avulso-wrap .ordempump-box,
  .checkout-avulso-wrap .ordempump-box,
  .checkout-mensal-wrap .ordempump-box {
    margin: 0 0 10px;
  }
  .checkout-avulso-wrap .ordempump-label,
  .checkout-mensal-wrap .ordempump-label {
    padding: 12px 14px;
  }
  .checkout-avulso-wrap .ordempump-title,
  .checkout-mensal-wrap .ordempump-title {
    font-size: 0.72rem;
    padding: 7px 14px;
  }
  .checkout-avulso-wrap .btn-checkout-avulso,
  .checkout-mensal-wrap .btn-checkout-mensal {
    margin-top: 6px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  .checkout-mensal-wrap .mensal-form-trust {
    margin-top: 12px;
    padding-top: 12px;
    font-size: 0.65rem;
    gap: 8px 12px;
  }
  .checkout-page {
    padding: 16px 20px 24px;
  }
  .checkout-main {
    padding: 12px 0 24px;
  }
}
