/* ==========================================================================
   CHECKOUT DESIGN SYSTEM - KIWIFY / STRIPE / HOTMART LIGHT CLEAN STYLE
   Alta Conversão, Corporativo e Minimalista
   ========================================================================== */

:root {
  --chk-bg: #f4f6f8;
  --chk-card-bg: #ffffff;
  --chk-text-main: #0f172a;
  --chk-text-muted: #475569;
  --chk-text-dim: #94a3b8;
  --chk-border: #e2e8f0;
  --chk-border-focus: #2563eb;
  
  --chk-primary: #1a73e8;
  --chk-primary-hover: #1557b0;
  
  --chk-green: #10b981;
  --chk-green-hover: #059669;
  --chk-green-light: #ecfdf5;
  --chk-green-border: #a7f3d0;
  --chk-green-text: #065f46;

  --chk-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --chk-font-heading: 'Outfit', sans-serif;
  
  --chk-radius-sm: 6px;
  --chk-radius-md: 10px;
  --chk-radius-lg: 14px;
  --chk-radius-full: 9999px;
  
  --chk-shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --chk-shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.checkout-body {
  background-color: var(--chk-bg);
  color: var(--chk-text-main);
  font-family: var(--chk-font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 50px;
}

/* Header Seguro Kiwify / Stripe */
.chk-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--chk-border);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.chk-navbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.chk-logo-text {
  font-family: var(--chk-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chk-logo-text .g-blue { color: #4285F4; }
.chk-logo-text .g-red { color: #EA4335; }
.chk-logo-text .g-yellow { color: #FBBC05; }
.chk-logo-text .g-green { color: #34A853; }

.chk-badge-pro {
  background: linear-gradient(135deg, #1a73e8, #7c3aed);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.chk-ssl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chk-green-light);
  border: 1px solid var(--chk-green-border);
  color: var(--chk-green-text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--chk-radius-full);
}

.chk-ssl-badge svg {
  color: var(--chk-green);
}

/* Layout Principal */
.chk-container {
  max-width: 1060px;
  margin: 28px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 880px) {
  .chk-container {
    grid-template-columns: 1.25fr 0.95fr;
    gap: 32px;
    align-items: flex-start;
  }
}

/* Card Principal Branco */
.chk-main-card {
  background: var(--chk-card-bg);
  border: 1px solid var(--chk-border);
  border-radius: var(--chk-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--chk-shadow-card);
}

.chk-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.chk-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chk-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

/* Formulário e Inputs Limpos */
.chk-form-group {
  margin-bottom: 16px;
}

.chk-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.chk-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--chk-radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chk-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.chk-input::placeholder {
  color: #94a3b8;
}

.chk-input-hint {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 5px;
}

.chk-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 500px) {
  .chk-form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Seletor de Pagamento Kiwify */
.chk-payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.chk-pay-tab {
  border: 2px solid var(--chk-border);
  border-radius: var(--chk-radius-md);
  padding: 14px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  text-align: left;
}

.chk-pay-tab:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.chk-pay-tab.active-pix {
  border-color: var(--chk-green);
  background: var(--chk-green-light);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.12);
}

.chk-pay-tab.active-card {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.12);
}

.chk-tab-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
}

.chk-tab-desc {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chk-pay-tab.active-pix .chk-tab-desc {
  color: var(--chk-green-text);
  font-weight: 600;
}

.chk-pay-tab.active-card .chk-tab-desc {
  color: #1d4ed8;
  font-weight: 600;
}

/* Área de Cartão de Crédito */
.chk-card-box {
  background: #f8fafc;
  border: 1px solid var(--chk-border);
  border-radius: var(--chk-radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.chk-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--chk-radius-md);
  outline: none;
  font-family: inherit;
}

.chk-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Botão de Compra de Alta Conversão */
.chk-btn-submit {
  width: 100%;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: var(--chk-font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 16px 20px;
  border: none;
  border-radius: var(--chk-radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  margin-top: 8px;
}

.chk-btn-submit:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.chk-btn-submit:active {
  transform: translateY(0);
}

.chk-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Selos de Confiança no Rodapé do Form */
.chk-trust-seals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.78rem;
  color: #64748b;
}

.chk-trust-seal-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ==========================================================================
   TELA DE PIX MINIMALISTA (FOCO TOTAL, SEM DISTRAÇÕES)
   ========================================================================== */
.chk-pix-minimal {
  text-align: center;
  padding: 6px 0;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chk-pix-alert-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chk-green-light);
  border: 1px solid var(--chk-green-border);
  color: var(--chk-green-text);
  padding: 7px 18px;
  border-radius: var(--chk-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.chk-pix-timer-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 8px 16px;
  border-radius: var(--chk-radius-md);
  margin-bottom: 20px;
}

.chk-pix-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  font-family: var(--chk-font-heading);
}

.chk-pix-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 18px;
}

/* Moldura Limpa do QR Code */
.chk-qr-frame {
  background: #ffffff;
  border: 1.5px solid var(--chk-border);
  border-radius: var(--chk-radius-lg);
  padding: 16px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.chk-qr-frame img {
  width: 220px;
  height: 220px;
  display: block;
  border-radius: var(--chk-radius-sm);
}

.chk-qr-amount {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

.chk-qr-amount strong {
  font-size: 1.3rem;
  color: var(--chk-green);
  font-family: var(--chk-font-heading);
  font-weight: 800;
}

/* Campo Copia e Cola + Botão */
.chk-pix-copy-wrapper {
  max-width: 440px;
  margin: 0 auto 18px;
}

.chk-pix-copy-input-row {
  display: flex;
  position: relative;
  margin-bottom: 12px;
}

.chk-pix-code-field {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-family: monospace;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--chk-radius-md);
  color: #334155;
  outline: none;
  cursor: pointer;
}

.chk-btn-copy-pix {
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  font-family: var(--chk-font-heading);
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 20px;
  border: none;
  border-radius: var(--chk-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.chk-btn-copy-pix:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.chk-btn-copy-pix.copied {
  background: #10b981 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

/* Indicador de Status em Tempo Real */
.chk-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: var(--chk-radius-full);
  margin-bottom: 22px;
}

.chk-pulse-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 3 Passos Minimalistas */
.chk-pix-steps-mini {
  background: #f8fafc;
  border: 1px solid var(--chk-border);
  border-radius: var(--chk-radius-md);
  padding: 16px 20px;
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.chk-pix-steps-mini h5 {
  font-size: 0.85rem;
  color: #334155;
  font-weight: 700;
  margin-bottom: 8px;
}

.chk-pix-steps-mini ol {
  padding-left: 18px;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.6;
}

.chk-btn-back {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 20px;
  text-decoration: underline;
  display: inline-block;
}

.chk-btn-back:hover {
  color: #0f172a;
}

/* ==========================================================================
   COLUNA LATERAL: RESUMO DO PEDIDO ESTILO STRIPE / KIWIFY
   ========================================================================== */
.chk-sidebar-card {
  background: var(--chk-card-bg);
  border: 1px solid var(--chk-border);
  border-radius: var(--chk-radius-lg);
  padding: 24px;
  box-shadow: var(--chk-shadow-card);
  position: sticky;
  top: 86px;
}

.chk-prod-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.chk-prod-img {
  width: 78px;
  height: 78px;
  border-radius: var(--chk-radius-md);
  border: 1px solid var(--chk-border);
  background: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chk-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chk-prod-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.chk-prod-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: var(--chk-radius-full);
}

.chk-features-list {
  list-style: none;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chk-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
}

.chk-features-list li svg {
  color: var(--chk-green);
  flex-shrink: 0;
}

.chk-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 6px 0;
  color: #64748b;
}

.chk-price-row.discount {
  color: #059669;
  font-weight: 600;
}

.chk-price-row.total {
  border-top: 1.5px dashed #e2e8f0;
  margin-top: 12px;
  padding-top: 14px;
  color: #0f172a;
}

.chk-total-amount {
  font-size: 1.9rem;
  font-weight: 900;
  font-family: var(--chk-font-heading);
  color: var(--chk-green);
}

.chk-guarantee-card {
  margin-top: 20px;
  padding: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--chk-radius-md);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chk-guarantee-card svg {
  color: var(--chk-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.chk-guarantee-card div h6 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 2px;
}

.chk-guarantee-card div p {
  font-size: 0.74rem;
  color: #166534;
  line-height: 1.4;
}

/* Spinner */
.chk-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: chkSpin 0.7s linear infinite;
  display: inline-block;
}

.chk-spinner-dark {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: chkSpin 0.7s linear infinite;
  display: inline-block;
}

@keyframes chkSpin {
  to { transform: rotate(360deg); }
}

/* Box de Simulação Demo */
.chk-demo-box {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: var(--chk-radius-md);
  padding: 14px;
  margin-top: 18px;
  font-size: 0.8rem;
  color: #92400e;
  text-align: center;
}

.chk-btn-simulate {
  background: #f59e0b;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--chk-radius-sm);
  cursor: pointer;
  margin-top: 8px;
}

.chk-btn-simulate:hover {
  background: #d97706;
}
