:root {
  --ink: #0f2b46;
  --text: #334155;
  --muted: #64748b;
  --line: #d8dee6;
  --blue: #2f8de4;
  --green: #4caf2f;
  --red: #dc2626;
  --bg: #f4f6f8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.wrap { width: min(100%, 560px); margin: 0 auto; background: #fff; min-height: 100vh; padding: 20px 16px 40px; }

.secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink);
  font-weight: 700; font-size: 17px; letter-spacing: .3px; padding: 6px 0 16px; }

.total { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding: 22px 0 26px; }
.total .label { font-size: 18px; font-weight: 700; color: var(--ink); }
.total .value { font-size: 16px; font-weight: 700; color: var(--blue); white-space: nowrap; }

h2 { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
  font-weight: 700; margin: 10px 0 18px; }
h2.mt { margin-top: 24px; }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.field { margin-bottom: 14px; }
.field input, .field select {
  width: 100%; padding: 15px 14px; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; background: #fff; outline: none;
}
.field input::placeholder { color: #9aa6b2; }
.field input:focus, .field select:focus { border-color: var(--blue); }
.field.erro input, .field.erro select { border-color: var(--red); }
.field .aviso { display: none; color: var(--red); font-size: 13px; margin-top: 4px; }
.field.erro .aviso { display: block; }
.field .dica { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.field label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }

#whop-payment { min-height: 40px; }

/* Area do pagamento: reserva a altura final enquanto a Whop carrega (sem "pulo"). */
.pagamento-area { position: relative; min-height: 336px; }
.pagamento-area.pronto { min-height: 0; }
.esqueleto { position: absolute; inset: 0; z-index: 2; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px;
  transition: opacity .25s ease; }
.pagamento-area.pronto .esqueleto { opacity: 0; pointer-events: none; }
.esq-linha, .esq-caixa { border-radius: 6px; background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
  background-size: 200% 100%; animation: brilho 1.2s ease-in-out infinite; }
.esq-linha { height: 44px; }
.esq-linha.curta { height: 18px; width: 40%; }
.esq-caixa { height: 88px; }
@keyframes brilho { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .esq-linha, .esq-caixa { animation: none; } }
#whop-branding { margin: 12px 0 18px; }
.carregando { text-align: center; color: var(--muted); font-size: 14px; padding: 20px 0; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 6px; background: var(--green);
  color: #fff; font-size: 19px; font-weight: 700; text-transform: uppercase;
  padding: 18px 16px; cursor: pointer; letter-spacing: .4px;
}
.btn:hover { filter: brightness(1.05); }
.btn[disabled] { opacity: .6; cursor: default; }

/* Botao com o selo de garantia a esquerda, sobreposto (como no checkout da DS24). */
/* Largura acompanha o texto; o bloco (selo + botao) fica centralizado. */
.cta { position: relative; display: flex; align-items: center; width: fit-content;
  margin: 0 auto; padding-left: 52px; }
.cta .btn { width: auto; min-height: 58px; padding: 16px 34px 16px 64px; white-space: nowrap; }
.selo-garantia { position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 97px; height: 97px; z-index: 1; pointer-events: none; }

.selos { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.selos img { width: 130px; height: auto; }

.erro-pagamento { color: var(--red); font-size: 14px; text-align: center; margin-top: 12px; min-height: 1em; }
.aviso-geral { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: 6px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.aviso-geral.ativo { display: block; }

.termos { text-align: center; font-size: 13.5px; color: var(--muted); margin: 18px 0 10px; }
.termos a { color: var(--blue); }

@media (max-width: 420px) {
  .row { flex-direction: column; gap: 0; }
  .selos { gap: 8px; }
  .selos img { width: calc((100% - 16px) / 3); max-width: 110px; }
  .selo-garantia { width: 84px; height: 84px; }
  .cta { padding-left: 44px; }
  .cta .btn { padding: 14px 24px 14px 52px; font-size: 17px; }
}
