/* Versão compacta do checkout no celular (teste de 13/10/2026, medidas sugeridas pelo ChatGPT).
   Só muda TAMANHOS — espaçamento, fonte, altura de campo, imagem e banner. Nenhum texto, ordem
   ou elemento muda. Carregado só quando checkout.php liga $compactLayout (body.ck-compact). */

/* Topo */
.ck-compact .urgency-bar { padding: 7px 12px; font-size: 12px; }
/* Banner: volta a ocupar de fora a fora (ela achou feio com as laterais vazias, 13/10). */

/* Página e blocos */
.ck-compact .wrap { padding: 12px 12px 40px; }
.ck-compact .card {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: none;
}
.ck-compact .section-title { font-size: 15px; margin-bottom: 6px; }

/* Produto */
.ck-compact .product-head { gap: 12px; }
.ck-compact .product-head img { width: 64px; height: 64px; border-radius: 8px; }
.ck-compact .product-head h1 { font-size: 16px; line-height: 1.3; margin: 0 0 2px; }
.ck-compact .price { font-size: 17px; margin-top: 0; }
.ck-compact .price-cash-hint { font-size: 12px; margin-top: 0; }

/* Campos (fonte digitada fica em 16px: abaixo disso o iPhone dá zoom na tela) */
.ck-compact label { margin: 10px 0 4px; font-size: 14px; }
.ck-compact input[type=text],
.ck-compact input[type=email],
.ck-compact input[type=tel],
.ck-compact select { padding: 9px 12px; border-radius: 8px; }
.ck-compact .phone-field { border-radius: 8px; }
.ck-compact .phone-flag { padding: 0 10px; font-size: 13px; }
.ck-compact .field-error { font-size: 12px; margin-top: 4px; }

/* Pagamento */
.ck-compact .payment-tabs { gap: 8px; }
.ck-compact .payment-tab { padding: 10px; font-size: 14px; border-radius: 8px; }
.ck-compact .payment-info { margin-top: 10px; padding: 8px 12px; border-radius: 8px; }
.ck-compact .payment-info-list li { font-size: 12px; padding: 2px 0; gap: 6px; }
.ck-compact .payment-info-list svg { width: 14px; height: 14px; }
.ck-compact .payment-info-total { font-size: 13px; margin-top: 6px; padding-top: 6px; }

/* Order bumps */
.ck-compact .bump-cta { margin-bottom: 10px; border-radius: 10px; }
.ck-compact .bump-cta-header { padding: 7px 12px; }
.ck-compact .bump-cta-headline { font-size: 12px; line-height: 1.3; }
.ck-compact .bump-cta-check { width: 20px; height: 20px; }
.ck-compact .bump-cta-body { gap: 10px; padding: 9px 12px; align-items: flex-start; }
.ck-compact .bump-cta-body img { width: 52px; height: 52px; border-radius: 6px; }
.ck-compact .bump-cta .bump-name { font-size: 14px; line-height: 1.3; }
.ck-compact .bump-cta .bump-desc { font-size: 12.5px; line-height: 1.4; margin: 2px 0; }
.ck-compact .bump-cta .bump-price { font-size: 13px; margin-top: 2px; }
.ck-compact .bump-cta .bump-price-old,
.ck-compact .bump-cta .bump-price-new { font-size: 12px; }
.ck-compact .bump-cta .bump-price-new strong { font-size: 14px; }
.ck-compact .bump-cta .bump-combo-hint { font-size: 11.5px; margin-top: 2px; }

/* Resumo e botão */
.ck-compact .summary-item { gap: 10px; padding: 6px 0; }
.ck-compact .summary-item img { width: 32px; height: 32px; border-radius: 6px; }
.ck-compact .summary-item-name,
.ck-compact .summary-item-price { font-size: 13px; }
.ck-compact .total-bar { font-size: 16px; padding: 10px 0 4px; margin-top: 4px; }
.ck-compact .btn-pay { padding: 15px; font-size: 16px; margin-top: 4px; border-radius: 10px; }
.ck-compact .card > .hint { margin-top: 8px !important; }
.ck-compact .trust-badges { margin: 10px 0 0; }

/* Aviso "Fulano acaba de comprar": menor e só no canto inferior esquerdo (antes ocupava a largura toda no celular) */
.ck-compact .ck-purchase-toast {
  left: 10px;
  right: auto;
  bottom: 10px;
  max-width: 220px;
  padding: 7px 10px;
  gap: 7px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.ck-compact .ck-purchase-toast-icon { width: 22px; height: 22px; border-width: 1.5px; }
.ck-compact .ck-purchase-toast-icon svg { width: 14px; height: 14px; }
.ck-compact .ck-purchase-toast-text { font-size: 11.5px; line-height: 1.3; }

/* Rodapé */
.ck-compact .ck-footer { margin-top: 16px; }

/* ======================================================================================
   Acabamento "mais profissional / mais confiança" (10 ideias do ChatGPT, 13/10/2026).
   Nada removido: só cor, borda, ícone e 3 detalhes novos (linha de confiança, símbolo do
   Pix, "Pagamento processado por" no rodapé — esses 3 vêm do checkout.php).
   ====================================================================================== */
.ck-compact {
  --ck-green: #287347;
  --ck-green-dark: #245C40;
  --ck-green-soft: #F0F7F2;
  --ck-line: #E2E7E3;
  --ck-muted: #647067;
}

/* 10. Cards todos com o mesmo acabamento */
.ck-compact .card { border: 1px solid var(--ck-line); border-radius: 12px; box-shadow: none; }

/* 5. Ícones no mesmo estilo e na mesma cor */
.ck-compact .section-title svg,
.ck-compact .trust-badge svg,
.ck-compact .payment-info-list svg { color: var(--ck-green); }
.ck-compact .section-title svg { width: 18px; height: 18px; }
.ck-compact .trust-badge svg { width: 16px; height: 16px; }

/* 4. "Protegido por CkCheckout" logo abaixo do botão (igual à Hotmart; ela preferiu isso às
   2 linhas embaixo do preço, 13/10) */
.ck-compact .ck-protected-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ck-muted);
}
.ck-compact .ck-protected-by svg { color: var(--ck-green-dark); margin-left: 2px; }
.ck-compact .ck-protected-by strong { font-size: 13px; font-weight: 700; color: #3D4540; letter-spacing: -.01em; }

/* 2. Pix / Cartão mais caprichado */
.ck-compact .payment-tab {
  min-height: 47px;
  border: 1.5px solid #D8E1DB;
  background: #fff;
}
.ck-compact .payment-tab.active {
  border-color: var(--ck-green);
  background: var(--ck-green-soft);
  color: var(--ck-green-dark);
}
.ck-compact .payment-tab[data-method="pix"] svg { color: #32BCAD; }
.ck-compact .payment-info { border-color: var(--ck-line); }

/* 6. Contador: vermelho mais sóbrio, números sem "tremer" */
.ck-compact .urgency-bar { background: #B91C1C !important; font-size: 13px; font-weight: 600; }
.ck-compact .urgency-bar strong { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* 7. Bumps padronizados */
.ck-compact .bump-cta { border: 1px solid #C9DDD1; border-radius: 10px; }
.ck-compact .bump-cta-combo { border-width: 2px; }
.ck-compact .bump-cta-header { background: var(--ck-green-soft); border-bottom-color: #C9DDD1; }
.ck-compact .bump-cta-headline { color: var(--ck-green-dark); }
.ck-compact .bump-cta-check { width: 21px; height: 21px; border-color: var(--ck-green); }
.ck-compact .bump-cta-input:checked ~ .bump-cta-header .bump-cta-check { background: var(--ck-green); }
.ck-compact .bump-cta .bump-name { font-weight: 600; }
.ck-compact .bump-cta .bump-price { font-size: 14px; font-weight: 700; color: var(--ck-green-dark); }
.ck-compact .bump-cta .bump-price-new strong { color: var(--ck-green-dark); font-weight: 700; }
.ck-compact .bump-cta .bump-combo-hint { color: var(--ck-green); }

/* 8. Linha do Total destacada */
.ck-compact .total-bar {
  background: var(--ck-green-soft);
  border-top: 0;
  border-radius: 8px;
  padding: 11px 12px;
  margin-top: 10px;
}
.ck-compact .total-bar > span:first-child { font-size: 15px; font-weight: 600; }
.ck-compact .total-bar > span:last-child { font-size: 19px; font-weight: 700; color: var(--ck-green-dark); }

/* 3. Botão Gerar Pix: verde liso, cadeado à esquerda (o texto continua o mesmo) */
.ck-compact .btn-pay {
  background: var(--ck-green);
  min-height: 52px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(36, 92, 64, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ck-compact .btn-pay::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ck-compact .btn-pay:disabled::before { display: none; }
.ck-compact .btn-pay .ck-spinner { margin-right: 0; }

/* 9. Notificação com cara de aviso do sistema */
.ck-compact .ck-purchase-toast {
  background: #fff;
  border: 1px solid #DCE6DF;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}
.ck-compact .ck-purchase-toast-icon { border-color: #CFE3D6; color: var(--ck-green); background: var(--ck-green-soft); }

/* Dica clarinha dentro de Nome e E-mail (igual à Hotmart; o telefone fica como está) */
.ck-compact #field_customer_name::placeholder,
.ck-compact #field_customer_email::placeholder { color: #A7B0AA; opacity: 1; font-size: 14px; }

/* Fotos do fim do checkout (print de depoimento, selo): menores, e tocar abre em tela cheia */
.ck-compact .ck-offer-media { gap: 12px; margin-top: 16px; }
.ck-compact .ck-media-item {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--ck-line);
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.ck-compact .ck-media-item img {
  width: auto;
  max-width: 100%;
  max-height: 140px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: none;
}
.ck-compact .ck-media-hint { display: none; }
/* Imagem comprida (print do WhatsApp): inteira, só que menor, e embaixo a faixa "Toque para ampliar" */
.ck-compact .ck-media-tall img { max-height: 340px; }
.ck-compact .ck-media-tall .ck-media-hint {
  display: block;
  margin-top: 8px;
  padding: 8px 0;
  border-radius: 8px;
  background: var(--ck-green-soft);
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ck-green-dark);
}
.ck-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .88);
  cursor: zoom-out;
}
.ck-lightbox[hidden] { display: none; }
.ck-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.ck-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #E02424;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Leitura (13/10/2026): sobe as letras que estavam abaixo do equivalente na Hotmart, sem passar
   dela (Hotmart em 375px: apoio 12px, rótulos/itens 14px, títulos e nome do bump 16px). */
.ck-compact .bump-cta .bump-desc { font-size: 12.5px; color: #5F665E; }
.ck-compact .bump-cta .bump-name { font-size: 15px; }
.ck-compact .bump-cta-headline { font-size: 13px; }
.ck-compact .bump-cta .bump-price-old,
.ck-compact .bump-cta .bump-price-new { font-size: 13px; }
.ck-compact .bump-cta .bump-combo-hint { font-size: 13px; }
.ck-compact .payment-info-list li { font-size: 13px; opacity: 1; }
.ck-compact .summary-item-name,
.ck-compact .summary-item-price { font-size: 14px; }
