/* ================================================================
   Checkout — JhonNet
   Mobile first. A cor de destaque fica em --acento (dourado, igual
   ao checkout antigo). Troque só essa variável para mudar o tema.
   ================================================================ */

:root {
  --acento: #d3a735;
  --acento-escuro: #b08c25;
  --acento-claro: #f5eacb;

  --tinta: #0f172a;
  --tinta-media: #475569;
  --tinta-fraca: #94a3b8;

  --fundo: #f1f3f7;
  --papel: #ffffff;
  --borda: #e3e8ef;

  --ok: #16a34a;
  --erro: #dc2626;

  --raio: 14px;
  --sombra: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.oculto { display: none !important; }

/* ---------------- barra superior ---------------- */
.topo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--tinta);
  color: #fff;
  font-size: 13px;
  letter-spacing: .2px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topo strong { font-weight: 700; }
.topo__timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--acento);
  background: rgba(255, 255, 255, .08);
  padding: 2px 8px;
  border-radius: 6px;
}
.topo__pisca {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: pisca 1.2s infinite;
}
@keyframes pisca { 50% { opacity: .25; } }

/* ---------------- estrutura ---------------- */
.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}

.marca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.marca__logo { height: 38px; width: auto; }
.marca__selo {
  font-size: 12px;
  color: var(--tinta-fraca);
}

/* ---------------- banner do topo ---------------- */
.banner {
  display: block;
  margin-bottom: 12px;
  border-radius: var(--raio);
  overflow: hidden;
  line-height: 0;
  box-shadow: var(--sombra);
}
.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------------- depoimentos ---------------- */
.depoimentos { margin-top: 26px; }
.depoimentos__titulo {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: var(--tinta);
}
.depoimento {
  background: var(--papel);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 15px 16px;
  margin-bottom: 10px;
  box-shadow: var(--sombra);
}
.depoimento:last-child { margin-bottom: 0; }
.depoimento__topo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
}
.depoimento__foto {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--fundo);
}
.depoimento__foto--vazia {
  display: grid;
  place-items: center;
  background: var(--acento);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}
.depoimento__nome {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 700;
}
.depoimento__selo { color: #2563eb; flex-shrink: 0; }
.depoimento__estrelas {
  font-size: 14px;
  color: var(--acento);
  letter-spacing: 1px;
  line-height: 1.2;
}
.depoimento__estrelas--off { color: #dbe1ea; }
.depoimento__texto {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--tinta-media);
}

.banner-desconto {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  border-radius: var(--raio);
  padding: 13px 16px;
  font-size: 14px;
  text-align: center;
  margin-bottom: 12px;
  animation: entra .3s ease;
}

.cartao {
  background: var(--papel);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 18px 16px;
  margin-bottom: 12px;
  box-shadow: var(--sombra);
}

@keyframes entra {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- produto ---------------- */
.produto__rotulo {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--tinta-fraca);
  margin-bottom: 12px;
}
.produto__linha {
  display: flex;
  align-items: center;
  gap: 12px;
}
.produto__img {
  width: 58px; height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--fundo);
}
.produto__info { flex: 1; min-width: 0; }
.produto__nome {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.produto__desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--tinta-media);
}
.produto__preco {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------------- passos ---------------- */
.passo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.passo__num {
  width: 27px; height: 27px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acento);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.passo__titulo { margin: 0; font-size: 15px; font-weight: 700; }
.passo__sub { margin: 1px 0 0; font-size: 13px; color: var(--tinta-fraca); }

/* ---------------- campos ---------------- */
.campo { display: block; margin-bottom: 14px; }
.campo:last-child { margin-bottom: 0; }
.campo__rot {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--tinta-media);
}
.campo input {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px; /* 16px evita o zoom automático no iOS */
  font-family: inherit;
  color: var(--tinta);
  background: var(--papel);
  border: 1.5px solid var(--borda);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.campo input::placeholder { color: #b6c0cd; }
.campo input:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 3px rgba(211, 167, 53, .16);
}
.campo input.invalido {
  border-color: var(--erro);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}
.campo__dica { display: block; font-size: 12px; color: var(--tinta-fraca); margin-top: 5px; }

/* Sugestao de correcao de dominio */
.campo__sugestao {
  display: block;
  margin-top: 7px;
  padding: 9px 11px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 13px;
  color: #92400e;
}
.campo__sugestao button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #92400e;
  text-decoration: underline;
  cursor: pointer;
}
.campo__erro {
  display: none;
  font-size: 12.5px;
  color: var(--erro);
  margin-top: 5px;
}
.campo__erro.visivel { display: block; }

/* ---------------- pagamento ---------------- */
.pagamento {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--acento);
  background: #fffdf6;
  border-radius: 10px;
}
.pagamento__icone { color: var(--acento); display: flex; }
.pagamento strong { display: block; font-size: 14.5px; }
.pagamento span span, .pagamento div span {
  display: block;
  font-size: 12.5px;
  color: var(--tinta-fraca);
}
.pagamento div { flex: 1; }
.pagamento__check {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--acento);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* ---------------- order bumps ---------------- */
.bumps__titulo {
  font-size: 13px;
  font-weight: 700;
  color: var(--tinta-media);
  margin-bottom: 12px;
}
.bump {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1.5px dashed var(--borda);
  border-radius: 11px;
  margin-bottom: 9px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.bump:last-child { margin-bottom: 0; }

/* Estado marcado: a classe .bump--ativo e posta pelo JS.
   Nao usamos :has() porque ele nao existe no Safari < 15.4 nem em
   WebView Android antigo — e boa parte do trafego mobile cai nisso. */
.bump--ativo {
  border-style: solid;
  border-color: var(--ok);
  background: #f2fdf5;
}

/* Esconde o checkbox sem tirar do teclado nem do leitor de tela. */
.bump__check {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.bump__box {
  width: 21px; height: 21px;
  flex-shrink: 0;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  position: relative;
  transition: all .15s;
}
/* Foco visivel para quem navega pelo teclado. */
.bump__check:focus-visible + .bump__box {
  outline: 2px solid var(--acento);
  outline-offset: 2px;
}
.bump--ativo .bump__box {
  background: var(--ok);
  border-color: var(--ok);
}
.bump--ativo .bump__box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
/* Miniatura. width/height fixos no HTML tambem, para a linha nao pular
   quando a imagem carrega — o bump fica logo acima do botao de pagar. */
.bump__img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}
.bump__corpo { flex: 1; min-width: 0; }
.bump__nome { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.bump__chamada { display: block; font-size: 12.5px; color: var(--tinta-fraca); margin-top: 2px; }
.bump__precos { text-align: right; white-space: nowrap; }
.bump__precos s { display: block; font-size: 11.5px; color: var(--tinta-fraca); }
.bump__precos strong { font-size: 15px; color: var(--ok); font-weight: 800; }

/* ---------------- total ---------------- */
.total__linhas { font-size: 13.5px; color: var(--tinta-media); }
.total__linha {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.total__linha--desconto { color: var(--ok); font-weight: 600; }
.total__final {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--borda);
  font-size: 15px;
  font-weight: 600;
}
.total__final strong { font-size: 25px; font-weight: 800; letter-spacing: -.5px; }

/* ---------------- botão ---------------- */
.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  font: 700 16.5px/1 inherit;
  color: #fff;
  background: linear-gradient(180deg, var(--acento), var(--acento-escuro));
  border: none;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(211, 167, 53, .55);
  transition: transform .1s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.botao:active { transform: scale(.985); }
.botao[disabled] { opacity: .65; cursor: not-allowed; }
.botao__load {
  width: 17px; height: 17px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gira .7s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

.seguro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--tinta-fraca);
}
.erro-geral {
  margin: 12px 0 0;
  padding: 11px 13px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 9px;
  color: var(--erro);
  font-size: 13.5px;
  text-align: center;
}

.rodape {
  margin-top: 22px;
  text-align: center;
  font-size: 11.5px;
  color: var(--tinta-fraca);
  line-height: 1.6;
}
.rodape p { margin: 3px 0; }

/* ---------------- modal de saída ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(3px);
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal__caixa {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--papel);
  border-radius: 18px;
  padding: 30px 22px 22px;
  text-align: center;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .4);
  animation: sobe .26s cubic-bezier(.2, .8, .3, 1);
}
@keyframes sobe {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
}
.modal__x {
  position: absolute;
  top: 8px; right: 12px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--tinta-fraca);
  cursor: pointer;
}
.modal__emoji { font-size: 42px; line-height: 1; }
.modal__tit { margin: 10px 0 8px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.modal__txt { margin: 0 0 14px; font-size: 14px; color: var(--tinta-media); }
.modal__precos {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 11px;
  margin-bottom: 6px;
}
.modal__precos s { font-size: 16px; color: var(--tinta-fraca); }
.modal__precos strong { font-size: 34px; font-weight: 800; color: var(--ok); letter-spacing: -1px; }
.modal__timer { margin: 0; font-size: 12.5px; color: var(--tinta-fraca); }
.modal__timer span { font-weight: 700; color: var(--erro); font-variant-numeric: tabular-nums; }
.botao--modal { background: linear-gradient(180deg, #22c55e, #16a34a); box-shadow: 0 4px 14px -4px rgba(22, 163, 74, .55); }
.modal__recusar {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: none;
  background: none;
  font-size: 12.5px;
  color: var(--tinta-fraca);
  text-decoration: underline;
  cursor: pointer;
}

/* ================================================================
   Tela do PIX
   ================================================================ */
.pix { text-align: center; }
.pix__tit { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.pix__sub { margin: 0 0 18px; font-size: 13.5px; color: var(--tinta-media); }
.pix__qr {
  width: 232px;
  max-width: 100%;
  margin: 0 auto 14px;
  display: block;
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  line-height: 0;           /* o SVG inline nao herda espaco de linha */
}
.pix__qr svg { width: 100%; height: auto; display: block; }
.pix__ou {
  margin: -6px 0 12px;
  font-size: 12.5px;
  color: var(--tinta-fraca);
}
.pix__codigo {
  width: 100%;
  padding: 12px;
  font: 400 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--tinta-media);
  background: var(--fundo);
  border: 1px solid var(--borda);
  border-radius: 10px;
  resize: none;
  word-break: break-all;
}
.pix__valor {
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0 16px;
  letter-spacing: -.5px;
}
.pix__aguarde {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  padding: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 13px;
  color: #92400e;
}
.pix__aguarde .botao__load {
  border-color: rgba(146, 64, 14, .25);
  border-top-color: #92400e;
}
.pix__passos {
  text-align: left;
  margin: 18px 0 0;
  padding: 0 0 0 20px;
  font-size: 13px;
  color: var(--tinta-media);
  line-height: 1.9;
}
.pix__expira { font-size: 12.5px; color: var(--tinta-fraca); margin-top: 12px; }
.pix__expira strong { color: var(--erro); font-variant-numeric: tabular-nums; }

/* ================================================================
   Obrigado
   ================================================================ */
.ok-tela { text-align: center; padding: 8px 0; }
.ok-selo {
  width: 66px; height: 66px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--ok);
  font-size: 34px;
  animation: pop .4s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.ok-tit { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.ok-txt { margin: 0 0 4px; font-size: 14.5px; color: var(--tinta-media); line-height: 1.6; }
.ok-email {
  display: inline-block;
  margin: 10px 0 18px;
  padding: 9px 15px;
  background: var(--fundo);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}
.ok-aviso {
  margin-top: 18px;
  padding: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.6;
}

/* ---------------- 404 ---------------- */
.vazio { text-align: center; padding: 60px 20px; }
.vazio h1 { font-size: 22px; margin: 0 0 8px; }
.vazio p { color: var(--tinta-media); font-size: 14px; }
