/* Checkout Afeto + Mercado Pago (cadastro e painel) */

.pg-abas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #f4f1fb; padding: 6px; border-radius: 16px; margin-bottom: 18px; }
.pg-aba { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 0; border-radius: 12px; background: transparent; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 900; color: #6b6b7b; cursor: pointer; transition: background .2s, box-shadow .2s, color .2s; }
.pg-aba small { font-size: 11.5px; font-weight: 700; color: #8a8a9a; }
.pg-aba.ativa { background: #fff; color: #5b21b6; box-shadow: 0 4px 14px rgba(91,33,182,.12); }
.pg-aba.ativa small { color: #059669; }
.pg-aba:disabled { opacity: .55; cursor: not-allowed; }
.pg-aba:focus-visible, .pg-btn-copiar:focus-visible, .pg-btn-secundario:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; }

.pg-explica { background: #faf8ff; border: 1.5px solid #ede9fe; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; font-size: 13.5px; line-height: 1.55; font-weight: 700; color: #4b4b5b; }
.pg-explica strong { color: #5b21b6; }

.pg-carregando { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 10px; color: #6b6b7b; font-weight: 800; font-size: 14px; text-align: center; }
.pg-carregando i { font-size: 30px; color: #8b5cf6; }

.pg-erro { background: #fef2f2; border: 1.5px solid #fecaca; color: #991b1b; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; font-weight: 800; line-height: 1.5; margin-bottom: 14px; }
.pg-erro button { display: block; margin-top: 10px; }

.pg-pix { text-align: center; }
.pg-pix-qr { display: flex; justify-content: center; align-items: center; background: #fff; border: 2px solid #ede9fe; border-radius: 20px; padding: 14px; margin: 0 auto 12px; width: fit-content; min-height: 120px; }
.pg-pix-qr img { display: block; width: 220px; max-width: 60vw; height: auto; image-rendering: pixelated; }
.pg-pix-sem-qr { font-size: 13px; font-weight: 700; color: #6b6b7b; max-width: 200px; }
.pg-pix-valor { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-bottom: 10px; font-weight: 800; color: #6b6b7b; font-size: 13px; }
.pg-pix-valor strong { font-size: 22px; color: #5b21b6; font-weight: 900; }
.pg-pix-passos { text-align: left; margin: 0 auto 14px; padding-left: 22px; max-width: 360px; font-size: 13.5px; font-weight: 700; color: #4b4b5b; line-height: 1.7; }
.pg-pix-copia { display: flex; gap: 8px; margin-bottom: 8px; }
.pg-pix-copia input { flex: 1; min-width: 0; padding: 13px 14px; border-radius: 12px; border: 2px solid #e2e8f0; background: #f8f9fc; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; color: #1f1f1f; }
.pg-btn-copiar { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 13px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #8b5cf6, #5b21b6); color: #fff; font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 900; cursor: pointer; }
.pg-btn-copiar.copiado { background: linear-gradient(135deg, #10b981, #059669); }
.pg-pix-validade { font-size: 12.5px; font-weight: 700; color: #6b6b7b; margin: 4px 0 12px; }
.pg-pix-validade.vencido { color: #b91c1c; }

.pg-status { display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.pg-status i { font-size: 20px; flex-shrink: 0; }
.pg-status strong { display: block; font-size: 14px; font-weight: 900; }
.pg-status span { display: block; font-weight: 700; }
.pg-status.aguardando { background: #f5f3ff; color: #5b21b6; border: 1.5px solid #ddd6fe; }
.pg-status.ok { background: #ecfdf5; color: #065f46; border: 1.5px solid #a7f3d0; }
.pg-status.esgotado { background: #fffbeb; color: #92400e; border: 1.5px solid #fde68a; flex-wrap: wrap; }
.pg-btn-secundario { margin-left: auto; padding: 10px 16px; border-radius: 12px; border: 2px solid currentColor; background: #fff; color: inherit; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 900; cursor: pointer; }

.pg-cartao-ok { text-align: center; padding: 22px 8px; }
.pg-cartao-ok i { font-size: 38px; color: #059669; margin-bottom: 10px; }
.pg-cartao-ok strong { display: block; font-size: 17px; font-weight: 900; color: #1f1f1f; margin-bottom: 6px; }
.pg-cartao-ok p { font-size: 13.5px; font-weight: 700; color: #6b6b7b; line-height: 1.55; }

.pg-selo { margin-top: 18px; border-top: 1px solid #f1f5f9; padding-top: 14px; }
.pg-selo-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; font-size: 13px; font-weight: 900; color: #065f46; margin-bottom: 10px; }
.pg-selo-topo i { color: #059669; }
.pg-selo-mp { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #4b4b5b; background: #eaf6fd; border: 1px solid #bfe3f8; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.pg-selo-mp strong { color: #00629b; font-weight: 900; }
.pg-selo-logo { display: flex; justify-content: center; margin: -4px 0 8px; }
.pg-selo-logo img { display: block; width: 120px; height: auto; }
.pg-selo-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pg-selo-lista li { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; font-weight: 700; color: #5b5b6b; line-height: 1.45; }
.pg-selo-lista i { color: #8b5cf6; margin-top: 2px; width: 14px; text-align: center; flex-shrink: 0; }

.pg-aviso-teste { background: #fffbeb; border: 1.5px dashed #f59e0b; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: 12.5px; line-height: 1.5; color: #78350f; }
.pg-aviso-teste strong { display: block; font-weight: 900; }
.pg-btn-simular { display: block; width: 100%; margin-top: 12px; padding: 12px; border-radius: 12px; border: 2px dashed #f59e0b; background: #fffbeb; color: #92400e; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 13px; cursor: pointer; }

@media (max-width: 480px) {
  .pg-pix-copia { flex-direction: column; }
  .pg-btn-copiar { justify-content: center; }
  .pg-status.esgotado .pg-btn-secundario { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-aba, .pg-btn-copiar { transition: none; }
}
