/* Checkout público: medidas de mapeamento/checkout/tokens.md (Cakto, 11 e 13/11/2026). */
:root {
  --botao: #095A49;
  --botao-texto: #fff;
  --texto: #000;
  --texto-2: #4B5563;
  --placeholder: #637381;
  --borda: #DFE3E8;
  --resumo: #324858;
  --erro: #DB2147;
  --fundo: #F1F1F1;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #F0F0F0; color: var(--texto);
  font: 400 16px/24px Inter, "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
svg { display: block; flex-shrink: 0; }
[hidden], .painel:empty { display: none !important; }
p, h1, h2 { margin: 0; }

.faixa { background: var(--fundo); padding: 20px 48px; min-height: 100vh; }
.cartao { background: #fff; width: 720px; max-width: 100%; margin: 0 auto; padding: 20px; }

/* Cabeçalho do produto */
.produto { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.produto img { width: 96px; height: 96px; object-fit: cover; flex-shrink: 0; }
.produto h1 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.025em; }

/* Campos */
.secao { margin-top: 0; }
.comprador { display: flex; flex-direction: column; gap: 24px; }
.campo { min-width: 0; }
.rotulo { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--texto-2); }
.dica { color: var(--texto-2); width: 15.4px; height: 15.4px; border-radius: 9999px; display: inline-flex; }
.dica svg { width: 15.4px; height: 15.4px; }
.entrada { position: relative; display: flex; align-items: center; min-height: 50px; background: #fff; border: 1px solid var(--borda); border-radius: 10px; transition: box-shadow .15s; }
.entrada:focus-within { box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.entrada input, .entrada select { flex: 1; min-width: 0; width: 100%; height: 48px; border: 0; outline: 0; background: transparent; padding: 12px 16px; font-size: 16px; line-height: 24px; border-radius: 10px; }
.entrada input::placeholder { color: var(--placeholder); opacity: 1; }
.entrada.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.entrada.select > svg { position: absolute; right: 12px; width: 16px; height: 16px; color: rgba(0, 0, 0, .6); pointer-events: none; }
.icone-erro { display: none; position: absolute; right: 12px; color: var(--erro); pointer-events: none; }
.icone-erro svg { width: 16px; height: 16px; }
.erro { display: none; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--erro); }
.com-erro .erro { display: block; }
.com-erro .icone-erro { display: block; }
.com-erro .entrada input { padding-right: 44px; }
.com-erro .entrada:focus-within { box-shadow: 0 0 0 2px rgba(219, 33, 71, .25); }
.erro-metodo:not(:empty) { display: block; margin-top: 8px; }

.linha-contato { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.linha-contato.sem-documento { grid-template-columns: 1fr; }
.grupo-celular { overflow: visible; }
.ddi { display: flex; align-items: center; gap: 6px; width: 111px; min-height: 50px; padding: 0 16px; border-right: 1px solid var(--borda); font-size: 16px; font-weight: 500; }
.ddi svg:first-child { width: 20px; height: 20px; }
.ddi svg:last-child { width: 16px; height: 16px; color: var(--placeholder); margin-left: auto; }

.sugestao-email { font-size: 12px; line-height: 16px; color: var(--texto-2); margin-top: -20px; }
.sugestao-email button { color: var(--botao); font-weight: 600; text-decoration: underline; }

/* Endereço */
.endereco { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.endereco .entrada input { padding: 10px 12px; }
.titulo-secao { font-size: 16px; line-height: 24px; font-weight: 700; }
.titulo-secao.com-icone { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 28px; }
.titulo-secao.com-icone svg { width: 24px; height: 24px; }
.endereco-resto { display: flex; flex-direction: column; gap: 24px; }
.linha-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cep-situacao { font-size: 12px; line-height: 16px; color: var(--texto-2); margin-top: -12px; }

/* Forma de pagamento */
.pagamento { margin-top: 24px; }
.pagamento .titulo-secao { margin-bottom: 16px; }
.abas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.aba { width: 150px; height: 100px; padding: 10px; border-radius: 10px; border: 1px solid var(--borda); background: #fff; color: var(--texto-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 14px; line-height: 1.25; font-weight: 600; text-align: center; }
.aba .icone { height: 32px; display: flex; align-items: center; justify-content: center; color: var(--placeholder); }
.aba svg { width: 32px; height: 32px; }
.aba[data-metodo=credit_card] svg { width: 28.8px; height: 19.2px; }
.aba[data-metodo=pix] svg { width: 28px; height: 28px; }
.aba[data-metodo=multi_card] svg { width: 29px; height: 16px; }
.aba[data-metodo=card_pix] svg { width: 42px; height: 16px; }
.aba[aria-checked="true"] { background: var(--botao); border-color: var(--botao); color: var(--botao-texto); }
.aba[aria-checked="true"] .icone { color: var(--botao-texto); }
/* Largura das abas pela quantidade de formas, como o original: até 3 esticam; 4 e 5 esticam no computador; 6 ou mais fixas. */
.abas.n1 .aba, .abas.n2 .aba, .abas.n3 .aba, .abas.n4 .aba, .abas.n5 .aba { flex: 1 1 0; }
.aba:focus-visible { outline: 2px solid rgba(0, 0, 0, .25); outline-offset: 2px; }
.painel { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.linha-cartao { display: grid; grid-template-columns: 161px 161px 1fr; gap: 12px; }
.linha-cartao.dividida { grid-template-columns: 152px 152px 1fr; }
.sem-metodos { font-size: 14px; color: var(--texto-2); }

/* Pagamento dividido */
.caixa-divisao { background: rgb(248, 248, 249); border: 1px solid var(--borda); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.caixa-titulo { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 24px; font-weight: 700; }
.caixa-divisao.tracejada { border-style: dashed; }
.aviso-pix { font-size: 13px; line-height: 18px; color: #000; }
.numero { width: 24px; height: 24px; border-radius: 9999px; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.numero.n1 { background: var(--botao); }
.numero.n2 { background: rgb(83, 140, 128); }
.entrada.moeda .prefixo { position: absolute; left: 12px; color: var(--placeholder); pointer-events: none; }
.entrada.moeda input { padding-left: 40px; font-weight: 700; }
.entrada.travada { background: rgb(241, 241, 242); border-color: rgb(230, 231, 233); padding: 0 16px; justify-content: space-between; color: rgb(129, 136, 146); font-weight: 500; }
.entrada.travada .legenda { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; }
.entrada.travada svg { width: 14px; height: 14px; }
.aviso-divisao { font-size: 12px; line-height: 16px; color: var(--texto-2); }

/* Gerar Pix no checkout (D22) */
.pix-inline { display: grid; grid-template-columns: 1fr 200px; gap: 16px; align-items: center; background: rgb(244, 246, 248); border-radius: 8px; padding: 16px; }
.pix-inline-esquerda { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.selo-aprovacao { display: inline-block; align-self: flex-start; font-size: 12px; line-height: 16px; color: rgb(6, 95, 70); background: rgb(209, 250, 229); border: 1px solid rgb(52, 211, 153); border-radius: 9999px; padding: 6px 12px; }
.botao-cheio, .botao-contorno { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 8px; padding: 12px 16px; font-size: 16px; line-height: 24px; font-weight: 600; }
.botao-cheio { background: var(--botao); color: var(--botao-texto); }
.botao-contorno { background: #fff; color: var(--botao); border: 1px solid var(--botao); }
.botao-contorno svg { width: 16px; height: 16px; }
.botao-cheio:disabled { background: #E5E7EB; color: #9CA3AF; }
.botao-contorno:disabled { opacity: .5; }
.botao-cheio:not(:disabled):hover, .botao-contorno:not(:disabled):hover { opacity: .9; }
.moldura-qr { aspect-ratio: 1; border: 2px dashed rgb(223, 227, 232); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; }
.moldura-qr svg { width: 100%; height: 100%; }
.moldura-qr.com-qr { padding: 2px; }
.pix-inline-contagem { display: flex; flex-direction: column; gap: 8px; }

.contagem-titulo { font-size: 16px; line-height: 24px; font-weight: 500; }
.contagem { display: flex; align-items: center; gap: 4px; }
.quadro { width: 48px; height: 48px; border-radius: 10px; background: lab(56.1 79.43 31.45); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dois-pontos { font-size: 20px; line-height: 28px; font-weight: 700; }
.aguardando { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: #fff; border-radius: 10px; padding: 8px 12px; font-size: 14px; line-height: 20px; font-weight: 500; }
.aguardando svg, .girar { width: 16px; height: 16px; animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Order bump */
.bumps { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.bump { border: 1px dashed #D4A72C; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; }
.bump-chamada { min-height: 60px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; text-align: center; background: #FCF6D8; color: #836E00; font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: .025em; }
.bump-corpo { border-top: 1px dashed #D4A72C; padding: 16px 16px 12px; display: flex; gap: 16px; }
.bump-imagem { width: 92px; height: 92px; border-radius: 6px; object-fit: cover; }
.bump-titulo { font-weight: 700; color: #212B36; }
.bump-descricao { font-size: 14px; line-height: 20px; color: var(--placeholder); margin-top: 2px; }
.bump-preco { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--botao); }
.bump-de { font-size: 16px; font-weight: 400; color: var(--placeholder); text-decoration: line-through; }
/* Preço e preço riscado nunca quebram no meio; se faltar espaço, o selo desce de linha. */
.bump-preco { flex-wrap: wrap; }
.bump-preco > span { white-space: nowrap; }
.bump-selo { font-size: 12px; line-height: 16px; font-weight: 700; border-radius: 6px; padding: 4px 8px; background: var(--botao); color: #fff; }
.bump-acao { padding: 12px; }
.bump-linha { display: flex; align-items: center; gap: 12px; border-radius: 8px; padding: 12px 16px; background: #FCF6D8; color: #212B36; font-size: 16px; line-height: 24px; font-weight: 700; }
.caixinha { width: 20px; height: 20px; border-radius: 4px; border: 1px solid #C4CDD5; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.caixinha svg { width: 16px; height: 16px; color: #000; visibility: hidden; }
.bump[aria-checked="true"] { border-color: #36B37E; }
.bump[aria-checked="true"] .bump-chamada, .bump[aria-checked="true"] .bump-linha { background: #D8FBDE; color: #0A5554; }
.bump[aria-checked="true"] .bump-linha { color: #212B36; }
.bump[aria-checked="true"] .bump-corpo { border-top-color: #36B37E; }
.bump[aria-checked="true"] .caixinha { background: #36B37E; border-color: #36B37E; }
.bump[aria-checked="true"] .caixinha svg { visibility: visible; }

/* Resumo */
.resumo { margin-top: 36px; }
.resumo .titulo-secao { margin-bottom: 12px; }
.caixa-resumo { position: relative; background: #fff; border: 1px solid var(--borda); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 20px 20px 20px; color: var(--resumo); }
.resumo { margin-bottom: 48px; }
.caixa-resumo > .dentes { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; overflow: hidden; }
.caixa-resumo > .dentes div { height: 16px; background-image: linear-gradient(135deg, transparent 50%, var(--borda) 50%), linear-gradient(45deg, var(--borda) 50%, transparent 50%); background-size: 16px 16px; background-position: bottom; background-repeat: repeat-x; transform: translateY(4px); }
.linhas-resumo { display: flex; flex-direction: column; gap: 16px; }
.linha-resumo, .linha-taxa, .linha-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-variant-numeric: tabular-nums; }
.linha-resumo { font-size: 14px; line-height: 20px; align-items: flex-start; gap: 12px; }
.linha-resumo .valor, .linha-total .total-valor { white-space: nowrap; text-align: right; }
/* Assinatura: "Renovação mensal" embaixo do nome do plano (checkout 36 e 60). */
.linha-assinatura > span:first-child { display: flex; flex-direction: column; }
.linha-assinatura .renovacao { font-size: 12px; line-height: 16px; color: var(--resumo); }
.linha-desconto { color: var(--botao); margin-top: -4px; }
.linha-taxa { margin-top: 8px; padding: 8px 0; font-size: 12px; line-height: 16px; }
.linha-taxa > .dica-taxa { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; }
.linha-taxa .valor { font-weight: 500; }
.dica-taxa { color: var(--resumo); display: inline-flex; }
.dica-taxa svg { width: 16px; height: 16px; }
.separador { height: 2px; background: rgba(0, 0, 0, .08); margin: 16px 0; }
.linha-total { font-size: 14px; line-height: 20px; font-weight: 700; align-items: flex-start; }
.total-valor { display: flex; flex-direction: column; align-items: flex-end; }
.total-legenda { margin-top: 2px; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--texto-2); }

/* Cupom */
.cupom { margin-bottom: 16px; }
/* País da compra (D40): no topo do resumo, abre a lista de países com a moeda de cada um. A lista fica acima das camadas
   fixas dos modelos (o resumo do m04 no celular) e nunca passa da largura da tela. */
.popover-pais { z-index: 90; max-width: calc(100vw - 16px); }
.pais-compra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: 14px; line-height: 20px; }
.pais-rotulo { font-weight: 600; }
.pais-botao { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--borda); border-radius: 8px; background: #fff; color: var(--texto); font: inherit; font-size: 14px; cursor: pointer; }
.pais-botao:focus-visible { outline: 2px solid var(--botao); outline-offset: 2px; }
.pais-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pais-moeda { color: var(--texto-2); font-weight: 600; }
.pais-botao svg { flex: none; width: 16px; height: 16px; color: var(--placeholder); }
.cupom-moldura, .cupom-aplicado { display: flex; align-items: center; gap: 8px; min-height: 50px; border: 1px solid var(--borda); border-radius: 10px; padding: 0 12px; }
.cupom-aplicado { gap: 12px; min-height: 49px; }
.cupom-moldura > svg, .cupom-aplicado > svg { width: 20px; height: 20px; color: var(--texto-2); }
.cupom-moldura input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0; font-size: 16px; color: var(--texto); background: transparent; height: 47px; }
.cupom-moldura input::placeholder { color: var(--placeholder); }
.cupom-moldura:focus-within { box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.cupom.com-erro .cupom-moldura:focus-within { box-shadow: 0 0 0 2px rgba(219, 33, 71, .25); }
.cupom-aplicar { font-size: 14px; font-weight: 600; color: var(--botao); white-space: nowrap; }
.cupom-aplicar:disabled { opacity: .4; }
.cupom-codigo { flex: 1; font-size: 16px; font-weight: 500; color: var(--texto); }
.cupom-remover { font-size: 14px; font-weight: 500; color: #B91C1C; }
.cupom.com-erro .cupom-moldura { border-color: #FF6467; }
.cupom-erro { margin-top: 6px; font-size: 12px; color: #FB2C36; }
/* Tela estreita: o botão sai do campo e vira uma linha própria de 36 px; a borda fica só em volta do campo. */
@media (max-width: 479px) {
  .cupom-moldura { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; border: 0; padding: 0; }
  .cupom-moldura::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50px; border: 1px solid var(--borda); border-radius: 10px; pointer-events: none; box-sizing: border-box; }
  .cupom.com-erro .cupom-moldura::before { border-color: #FF6467; }
  .cupom-moldura > svg { margin-left: 12px; align-self: center; }
  .cupom-moldura input { height: 50px; padding-right: 12px; }
  .cupom-moldura .cupom-aplicar { grid-column: 1 / -1; height: 36px; margin-top: 8px; }
  .cupom-moldura:focus-within, .cupom.com-erro .cupom-moldura:focus-within { box-shadow: none; }
  .cupom-moldura:has(input:focus)::before { box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
}
.separador-fino { height: 2px; background: rgba(0, 0, 0, .08); margin: 0 0 16px; }

/* Recusa */
.recusa { display: flex; gap: 8px; margin-bottom: 16px; background: #FFFBEB; border: 1px solid rgba(252, 211, 77, .7); border-radius: 10px; padding: 12px; color: #92400E; }
.recusa > svg { width: 20px; height: 20px; color: #D97706; }
.recusa-motivo { font-size: 14px; line-height: 20px; font-weight: 500; }
.recusa-dica { font-size: 12px; line-height: 16px; color: #B45309; margin-top: 2px; }

/* Botão e rodapé */
.botao-pagar { width: 100%; min-height: 49px; border-radius: 6px; padding: 12px 16px; margin-bottom: 8px; background: var(--botao); color: var(--botao-texto); font-size: 18px; line-height: 24px; font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.botao-pagar:hover:not(:disabled) { opacity: .9; }
.botao-pagar:disabled { opacity: .6; }
.rodape { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--texto-2); }
.compra-segura { display: flex; align-items: center; gap: 4px; font-size: 10px; line-height: 15px; font-weight: 500; }
.compra-segura svg { width: 12px; height: 12px; }
.legal { max-width: 420px; font-size: 12px; line-height: 19.5px; }
.legal a { color: inherit; }
.legal strong { font-weight: 500; color: var(--texto-2); }
.processado { font-size: 12px; line-height: 16px; }

/* Tooltip */
.dica-caixa { position: absolute; z-index: 50; max-width: 320px; background: #fff; border: 1px solid var(--borda); border-radius: 8px; padding: 6px 12px; font-size: 14px; line-height: 20px; color: var(--texto-2); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
.dica-caixa p + p { margin-top: 4px; }
.dica-caixa .relaxado { line-height: 22.75px; }

/* Avisos (como o Sonner da Cakto) */
.avisos { position: fixed; right: 24px; bottom: 15px; margin: 0; padding: 0; list-style: none; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.aviso { width: 356px; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 6px; padding: 16px; border-radius: 8px; background: rgb(236, 253, 243); border: 1px solid rgb(191, 252, 217); color: rgb(0, 138, 46); font-size: 13px; line-height: 1.5; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); animation: entrar .3s ease; }
.aviso svg { width: 16px; height: 16px; margin: 0 4px 0 -3px; }
@keyframes entrar { from { transform: translateY(100%); opacity: 0; } }

/* Barra fixa do celular */
.barra-fixa { display: none; }

/* Página indisponível */
.indisponivel { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--fundo); color: var(--texto-2); font-size: 14px; }
.indisponivel .codigo { font-size: 48px; line-height: 1; font-weight: 700; color: var(--texto); margin-bottom: 16px; }

@media (max-width: 767px) {
  .faixa { padding: 0; }
  .cartao { width: 100%; }
  .linha-contato { grid-template-columns: 1fr; gap: 16px; }
  .ddi { width: 112px; }
  .abas.n4 .aba, .abas.n5 .aba, .aba { flex: 0 0 90px; width: 90px; }
  .abas.n1 .aba, .abas.n2 .aba, .abas.n3 .aba { flex: 1 1 0; width: auto; }
  .pix-inline { grid-template-columns: 1fr; }
  .pix-inline-qr { order: -1; max-width: 240px; width: 100%; margin: 0 auto; }
  .linha-dupla { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 639px) {
  .linha-cartao { grid-template-columns: 1fr; }
  .linha-cartao.dividida { grid-template-columns: 1fr; }
}
@media (max-width: 450px) {
  /* O que recebe foco não fica atrás da barra fixa de baixo. */
  html { scroll-padding-bottom: 96px; }
  .linha-total .total-valor { white-space: normal; min-width: 0; }
  body { padding-bottom: 69px; }
  .linha-cartao.dividida { grid-template-columns: 1fr 1fr; }
  .linha-cartao.dividida .campo-parcelas { grid-column: 1 / -1; }
  .botao-pagar { display: none; }
  .rodape { margin-top: 0; }
  .barra-total { font-size: 14px; line-height: 20px; }
  .barra-fixa { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--borda); border-bottom: 0; border-radius: 16px 16px 0 0; padding: 12px 15px; min-height: 69px; }
  .barra-total strong { font-weight: 700; font-variant-numeric: tabular-nums; }
  .barra-total { min-width: 0; margin-right: 12px; }
  .botao-comprar { flex-shrink: 0; white-space: nowrap; min-width: 149px; height: 44px; border-radius: 6px; padding: 8px 16px; background: var(--botao); color: var(--botao-texto); font-size: 16px; line-height: 24px; font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
  .avisos { right: 16px; left: 16px; bottom: 85px; }
}
@media (max-width: 639px) {
  .aba { font-size: 10px; }
  .aba .icone { height: 24px; }
  .aba[data-metodo=pix] .icone { height: 32px; }
  .aba[data-metodo=credit_card] svg { width: 21.6px; height: 14.4px; }
  .aba[data-metodo=multi_card] svg { width: 24px; height: 13px; }
  .aba[data-metodo=card_pix] svg { width: 36px; height: 14px; }
  .bump-chamada { font-size: 16px; }
}
@media (max-width: 349px) {
  .botao-pagar { font-size: 16px; }
}

/* Página do Pix e de obrigado */
.pagina-pagamento { background: var(--fundo); min-height: 100vh; }
.pagina-pagamento main { width: 720px; max-width: 100%; margin: 0 auto; padding: 24px 16px; }
.cartao-pagamento { background: #fff; border-radius: 8px 8px 0 0; padding: 28px 20px 6px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pagina-pagamento .serrilhado { height: 12px; }
.pagina-pagamento .serrilhado div { height: 12px; background:
  radial-gradient(circle 6px at 18px 6px, var(--fundo) 98%, transparent 100%) 0 0 / 24px 12px repeat-x,
  radial-gradient(circle 6px at 6px 6px, #fff 98%, transparent 100%) 0 0 / 24px 12px repeat-x,
  linear-gradient(#fff, #fff) 0 0 / 100% 6px no-repeat; }
.titulo-pix { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.titulo-pix h1 { font-size: 24px; line-height: 32px; font-weight: 700; }
.titulo-pix p { font-size: 14px; line-height: 20px; color: var(--texto-2); }
.resumo-dividido { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--borda); border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; font-size: 14px; line-height: 20px; }
.resumo-dividido .dividido-cartao span { color: var(--texto-2); }
.resumo-dividido .dividido-falta { font-weight: 600; }
.aviso-pix-automatico { border: 1px solid var(--borda); border-radius: 8px; padding: 12px 16px; margin: 0 0 8px; font-size: 14px; line-height: 20px; text-align: center; }
.resumo-dividido .dividido-prazo { color: var(--texto-2); }
.bloco-contagem { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 16px; margin-bottom: 8px; }
.pagina-pagamento .moldura-qr { width: 320px; max-width: 100%; padding: 0; }
.pagina-pagamento .moldura-qr svg { border-radius: 6px; }
.pagina-pagamento .aguardando { align-self: center; background: rgb(244, 246, 248); }
.bloco-selo { border-top: 1px solid rgba(0, 0, 0, .08); padding: 16px 24px; margin: -4px 0; }
.grupo-botoes { width: 320px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.botao-ja-paguei { height: 40px; border-radius: 8px; padding: 10px 12px; background: var(--botao); color: #fff; font-size: 14px; line-height: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.botao-ja-paguei:disabled { opacity: .6; }
.passos { width: 100%; background: rgb(244, 246, 248); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 16px; text-align: left; margin: 8px 0 0; list-style: none; }
.passos li { display: flex; gap: 8px; font-size: 16px; line-height: 26px; color: var(--texto-2); }
.passos li span { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9999px; background: rgb(209, 250, 229); color: rgb(6, 95, 70); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.obrigado-icone { width: 64px; height: 64px; border-radius: 9999px; background: #D1FAE5; color: #10B981; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.obrigado-icone svg { width: 36px; height: 36px; }
.obrigado-chamada { font-size: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #059669; }
.obrigado-nome { font-size: 24px; line-height: 32px; font-weight: 700; }
.obrigado-codigo { font-size: 14px; color: var(--texto-2); }
.obrigado-codigo code { font-size: 12px; font-weight: 600; background: #F3F4F6; border-radius: 8px; padding: 2px 8px; }
.obrigado-situacao { font-size: 16px; font-weight: 600; color: #059669; }
.obrigado-fatura { font-size: 12px; color: var(--texto-2); }
.acesso { width: 100%; border-top: 1px solid rgba(0, 0, 0, .08); padding-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.acesso h2 { font-size: 18px; font-weight: 700; }
.acesso p { font-size: 14px; color: var(--texto-2); }
/* Assinatura: link do portal na página de obrigado. */
.botao-assinatura { width: 100%; max-width: 384px; text-decoration: none; }
.botao-acesso { width: 100%; max-width: 384px; min-height: 49px; border-radius: 6px; background: var(--botao); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 767px) {
  .pagina-pagamento main { padding: 0; }
  .cartao-pagamento { border-radius: 0; }
  .passos li { font-size: 14px; line-height: 22px; }
}
.detalhes { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.tabela-compra { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; text-align: left; }
.tabela-compra th { font-size: 12px; font-weight: 600; color: var(--texto-2); padding: 8px 12px; border-bottom: 1px solid var(--borda); white-space: nowrap; }
.tabela-compra td { padding: 12px; border-bottom: 1px solid var(--borda); color: var(--resumo); }
.tabela-compra td:nth-child(3), .tabela-compra td:nth-child(4) { white-space: nowrap; }
.tabela-compra tr.recusado td { background: #FEF2F2; }
@media (max-width: 639px) {
  .tabela-compra thead { display: none; }
  .tabela-compra tr { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--borda); border-radius: 8px; margin-bottom: 8px; }
  .tabela-compra td { border: 0; padding: 8px 12px; }
}
.pix-expirado { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--erro); }
.popover-ddi { position: absolute; z-index: 50; background: #fff; border: 1px solid var(--borda); border-radius: 14px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); overflow: hidden; }
.popover-ddi .busca { display: flex; align-items: center; gap: 8px; height: 41px; padding: 0 12px; border-bottom: 1px solid var(--borda); }
.popover-ddi .busca svg { width: 16px; height: 16px; color: var(--placeholder); }
.popover-ddi .busca input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; padding: 0; font-size: 16px; color: #000; }
.popover-ddi .busca input::placeholder { color: #000; }
.popover-ddi ul { list-style: none; margin: 0; padding: 4px 0; max-height: 140px; overflow-y: auto; }
.popover-ddi li { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 16px; font-size: 14px; line-height: 20px; color: #000; cursor: pointer; }
.popover-ddi li:hover, .popover-ddi li:focus { background: #F4F6F8; outline: 0; }
.popover-ddi li[aria-selected="true"] { background: rgb(223, 227, 232); font-weight: 500; }
.popover-ddi .pais, .popover-ddi .fim { display: flex; align-items: center; gap: 8px; min-width: 0; }
.popover-ddi .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popover-ddi .codigo-ddi { color: var(--texto-2); font-weight: 400; }
.popover-ddi .marca { width: 20px; height: 20px; border-radius: 9999px; background: var(--botao); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.popover-ddi .marca svg { width: 14px; height: 14px; }
.ddi .bandeira-emoji { font-size: 18px; line-height: 20px; width: 20px; text-align: center; }
.caixa-divisao .dica { width: 20px; height: 20px; padding: 2px; margin-left: 0; }
.caixa-divisao .dica svg { width: 16px; height: 16px; }
[data-barra-asterisco] { font-weight: 400; margin-left: 1px; }
.barra-total.dividido strong { font-weight: 600; }
.botao-ja-paguei.carregando { height: 36px; margin-top: 4px; }
.popover-ddi ul { scrollbar-width: thin; scrollbar-color: #4C535C #F5F7F9; }
.popover-ddi ul::-webkit-scrollbar { width: 6px; }
.popover-ddi ul::-webkit-scrollbar-track { background: #F5F7F9; border-radius: 9999px; }
.popover-ddi ul::-webkit-scrollbar-thumb { background: #4C535C; border-radius: 9999px; }

/* Campos da Stripe (D31) na mesma moldura dos nossos campos de cartão. */
.campo-stripe { flex: 1; min-width: 0; padding: 12px 16px; min-height: 48px; display: flex; flex-direction: column; justify-content: center; }
.campo-stripe > * { width: 100%; }
.com-erro .campo-stripe { padding-right: 44px; }
/* Troca de processador na cascata: aviso no bloco do cartão. */
.aviso-processador { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--botao); background: #ECFDF5; border: 1px solid rgba(9, 90, 73, .25); border-radius: 10px; padding: 10px 12px; }
/* Compra em dólar (D33): o que só existe em real some. */
body.moeda-usd [data-so-brl] { display: none !important; }
/* Confirmação do 3DS no simulador. */
.modal-3ds { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-3ds-caixa { background: #fff; border-radius: 12px; padding: 24px; max-width: 400px; width: 100%; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.modal-3ds-caixa h2 { font-size: 18px; line-height: 26px; font-weight: 700; margin-bottom: 8px; }
.modal-3ds-caixa p { font-size: 14px; line-height: 20px; color: var(--texto-2); margin-bottom: 16px; }
.modal-3ds-botoes { display: flex; flex-direction: column; gap: 8px; }

/* Carteira: caixa "salvar este cartão" (desmarcada; texto aprovado no painel). Mesma caixinha dos order bumps. */
.salvar-cartao { position: relative; display: flex; width: fit-content; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--texto-2); cursor: pointer; user-select: none; }
.salvar-cartao input { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.salvar-cartao .caixinha { flex: none; }
.salvar-cartao input:checked + .caixinha { background: #36B37E; border-color: #36B37E; }
.salvar-cartao input:checked + .caixinha svg { visibility: visible; }
.salvar-cartao input:focus-visible + .caixinha { outline: 2px solid #36B37E; outline-offset: 2px; }

/* Carrinho da loja (src/carrinho.ts): itens com o preço e o desconto da Shopify */
.carrinho-loja { display: block; }
.carrinho-itens { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.carrinho-item { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.carrinho-item img, .carrinho-sem-imagem { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--fundo); }
.carrinho-nome { flex: 1; min-width: 0; }
.carrinho-nome small { color: var(--texto-2); }
.carrinho-desconto { display: block; color: var(--botao); font-weight: 500; }
.carrinho-valor { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.carrinho-valor s { display: block; color: var(--texto-2); font-size: 12px; }
.carrinho-voltar { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--texto-2); text-decoration: underline; }

/* Entrega: opções cotadas pela loja */
.entrega { margin-top: 16px; }
/* O título segue o das outras seções (.titulo-secao): mesmo tamanho, peso e cor, em todos os modelos. */
.titulo-entrega { margin: 0 0 12px; }
.opcoes-entrega { display: grid; gap: 8px; }
.opcao-entrega { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--borda); border-radius: 6px; padding: 12px; font-size: 14px; line-height: 20px; }
.opcao-entrega[aria-checked="true"] { border-color: var(--botao); box-shadow: 0 0 0 1px var(--botao); }
.opcao-marca { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--borda); flex-shrink: 0; }
.opcao-entrega[aria-checked="true"] .opcao-marca { border: 5px solid var(--botao); }
.opcao-titulo { flex: 1; min-width: 0; }
.opcao-valor { white-space: nowrap; font-variant-numeric: tabular-nums; }
.entrega-situacao { font-size: 13px; color: var(--texto-2); }
