/* =============================================
   CHECKOUT PAGE STYLES - NODE FLUX AUTOMAÇÃO
   ============================================= */
:root {
  --chk-bg: #f8fafc;
  --chk-card-bg: #ffffff;
  --chk-border: #e2e8f0;
  --chk-border-active: #2563eb;
  --chk-primary: #2563eb;
  --chk-primary-dark: #1d4ed8;
  --chk-text: #0f172a;
  --chk-text-muted: #64748b;
  --chk-accent-orange: #ea580c;
  --chk-accent-bg-orange: #fff7ed;
  --chk-bump-bg: #eff6ff;
  --chk-bump-border: #3b82f6;
  --chk-green: #10b981;
}

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

body.chk-body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--chk-bg);
  color: var(--chk-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Superior */
.chk-header {
  background-color: #0d1322;
  border-bottom: 1px solid #1e293b;
  padding: 14px 20px;
}

.chk-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chk-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.chk-logo img {
  width: 26px;
  height: 26px;
}

.chk-secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.chk-secure-badge svg {
  color: #10b981;
}

/* Container Principal */
.chk-container {
  max-width: 1080px;
  width: 100%;
  margin: 36px auto 60px;
  padding: 0 20px;
  flex: 1;
}

.chk-grid {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 32px;
  align-items: start;
}

/* Coluna da Esquerda (Formulário) */
.chk-card-main {
  background: var(--chk-card-bg);
  border: 1px solid var(--chk-border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.chk-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.chk-subtitle {
  font-size: 14.5px;
  color: var(--chk-text-muted);
  margin-bottom: 26px;
}

.chk-form-group {
  margin-bottom: 20px;
}

.chk-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 7px;
}

.chk-label-note {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--chk-text-muted);
}

.chk-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chk-input:focus {
  border-color: var(--chk-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.chk-field-hint {
  display: block;
  font-size: 12px;
  color: var(--chk-text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Seleção de Pagamento */
.chk-payment-section {
  margin-top: 26px;
  margin-bottom: 24px;
}

.chk-section-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.chk-method-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--chk-border);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.2s ease;
  user-select: none;
}

.chk-method-card:hover {
  border-color: #94a3b8;
}

.chk-method-card.active {
  border-color: var(--chk-primary);
  background: #eff6ff;
}

.chk-method-card input[type="radio"] {
  display: none;
}

.chk-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chk-method-card.active .chk-radio-circle {
  border-color: var(--chk-primary);
  background: var(--chk-primary);
}

.chk-method-card.active .chk-radio-circle::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
}

.chk-method-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 3px;
}

.chk-method-info span {
  display: block;
  font-size: 12.5px;
  color: var(--chk-text-muted);
  line-height: 1.4;
}

/* Order Bump (Duolingo) */
.chk-order-bump {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1.5px dashed var(--chk-bump-border);
  background: var(--chk-bump-bg);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 26px;
  user-select: none;
  transition: background 0.2s, border-color 0.2s;
}

.chk-order-bump:hover {
  background: #e0edfe;
}

.chk-order-bump input[type="checkbox"] {
  display: none;
}

.chk-checkbox-box {
  width: 20px;
  height: 20px;
  border: 2px solid #3b82f6;
  border-radius: 5px;
  background: #ffffff;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chk-order-bump input[type="checkbox"]:checked + .chk-checkbox-box {
  background: #2563eb;
  border-color: #2563eb;
}

.chk-order-bump input[type="checkbox"]:checked + .chk-checkbox-box::after {
  content: '✓';
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.chk-bump-content {
  flex: 1;
}

.chk-bump-headline {
  font-size: 13.5px;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 5px;
}

.chk-bump-headline strong {
  font-weight: 800;
  color: #1e3a8a;
}

.chk-bump-sub {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

/* Botão de Ação */
.chk-submit-btn {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.chk-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

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

.chk-btn-icon {
  font-size: 18px;
}

.chk-security-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* Coluna da Direita (Resumo) */
.chk-summary-card {
  background: var(--chk-card-bg);
  border: 1px solid var(--chk-border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 6px 25px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 24px;
}

.chk-summary-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
}

.chk-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.chk-item-desc strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.chk-item-sub {
  display: block;
  font-size: 12.5px;
  color: var(--chk-text-muted);
  margin-top: 2px;
}

.chk-item-price {
  font-size: 23px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.chk-bump-row {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  border-bottom: none;
}

.chk-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.chk-total-row strong {
  font-size: 24px;
  font-weight: 900;
  color: #2563eb;
}

/* Box de Promoção Laranja */
.chk-promo-box {
  border: 1px solid var(--chk-accent-orange);
  background: var(--chk-accent-bg-orange);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.chk-promo-line {
  font-size: 13.5px;
  color: #9a3412;
  line-height: 1.4;
  margin-bottom: 4px;
}

.chk-promo-line strong {
  color: #0f172a;
  font-weight: 800;
}

.chk-promo-line s {
  color: #64748b;
  margin: 0 2px;
}

.chk-timer-line {
  font-size: 12.5px;
  color: #9a3412;
  font-weight: 600;
}

.chk-timer {
  color: var(--chk-accent-orange);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Prova Social */
.chk-social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.chk-green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chk-green);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: chkPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes chkPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Bullet Points */
.chk-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.chk-benefits-list li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 7px;
}

.chk-benefits-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1;
}

/* Footer do Checkout */
.chk-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 24px 20px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
}

.chk-footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.chk-footer-company {
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

/* Aviso de Envio de Comprovante no WhatsApp em Destaque */
.chk-whatsapp-notice {
  margin-top: 20px;
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.12);
}

.chk-wn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.chk-wn-icon {
  font-size: 18px;
}

.chk-wn-header strong {
  font-size: 13px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.3px;
}

.chk-wn-desc {
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
  margin-bottom: 12px;
}

.chk-wn-desc strong {
  color: #14532d;
  font-weight: 800;
}

.chk-wn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: #25d366;
  color: #ffffff;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.chk-wn-btn:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

.chk-wn-left {
  background: #f8fafc;
  border: 1px dashed #22c55e;
  padding: 14px 16px;
  margin-top: 18px;
  box-shadow: none;
}

.chk-wn-left p {
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 8px;
}

.chk-wn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
}

.chk-wn-link:hover {
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 860px) {
  .chk-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .chk-container {
    margin-top: 20px;
    margin-bottom: 40px;
  }
  .chk-card-main {
    padding: 26px 20px;
  }
  .chk-summary-card {
    position: static;
    padding: 24px 18px;
    order: 2;
  }
}

/* =============================================
   MODAL DE PAGAMENTO PIX TRANSPARENTE
   ============================================= */
.chk-pix-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.chk-pix-overlay.active {
  opacity: 1;
  visibility: visible;
}

.chk-pix-modal {
  background: #ffffff;
  border-radius: 22px;
  width: 100%;
  max-width: 480px;
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chk-pix-overlay.active .chk-pix-modal {
  transform: translateY(0) scale(1);
}

.chk-pix-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chk-pix-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.chk-pix-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.chk-pix-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.chk-pix-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 16px;
}

.chk-pix-amount-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 8px 18px;
  margin-bottom: 18px;
}

.chk-pix-amount-label {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.chk-pix-amount-val {
  font-size: 24px;
  font-weight: 800;
  color: #059669;
}

.chk-pix-qr-frame {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.chk-pix-qr-img {
  width: 210px;
  height: 210px;
  display: block;
  object-fit: contain;
}

.chk-pix-instructions {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 14px;
}

.chk-pix-code-container {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.chk-pix-input {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-family: monospace;
  color: #334155;
  outline: none;
  text-overflow: ellipsis;
}

.chk-pix-copy-btn {
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.chk-pix-copy-btn.copied {
  background: #16a34a;
}

.chk-pix-status-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #334155;
}

.chk-pix-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: chk-dot-pulse 1.8s infinite ease-in-out;
}

@keyframes chk-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.chk-pix-timer {
  font-weight: 700;
  color: #ea580c;
  font-family: monospace;
  font-size: 13px;
}

.chk-pix-wa-help {
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.chk-pix-wa-help a {
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
}

.chk-pix-wa-help a:hover {
  text-decoration: underline;
}

/* Tela de Sucesso após aprovação */
.chk-pix-success-screen {
  display: none;
  padding: 20px 0;
  text-align: center;
}

.chk-pix-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 38px;
  animation: chk-pop-success 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chk-pop-success {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.chk-pix-success-screen h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.chk-pix-success-screen p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
}

/* =============================================
   FORMULÁRIO TRANSPARENTE DE CARTÃO DE CRÉDITO
   ============================================= */
.chk-card-wrapper {
  margin-top: 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  animation: chk-slide-down 0.25s ease-out;
}

@keyframes chk-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chk-card-wrapper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.chk-card-secure-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 999px;
}

.chk-card-flags {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chk-flag-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 2px 6px;
}

.chk-card-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 600;
}

.chk-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: chk-spin 0.7s linear infinite;
}

@keyframes chk-spin {
  to { transform: rotate(360deg); }
}

.chk-card-error-alert {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.45;
}

.chk-card-fallback-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
}

.chk-card-fallback-btn {
  display: inline-block;
  margin-top: 6px;
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
  transition: color 0.2s;
}

.chk-card-fallback-btn:hover {
  color: #1d4ed8;
}

/* Customizações do container oficial do Mercado Pago Brick */
#cardPaymentBrick_container {
  width: 100%;
}

#cardPaymentBrick_container iframe {
  width: 100% !important;
}


