/* ==========================================================
   CHECKOUT — tema claro (baseado no checkout real do produto)
   Tudo escopado em .checkout-light para não afetar upsell/obrigado
   ========================================================== */

.checkout-light {
  background: #f5f7fb;
  color: #101828;
}

.checkout-light .container { max-width: 640px; }

/* ---------- Topbar ---------- */
.checkout-light .topbar {
  background: #2f6bff; border-bottom: none; color: #fff;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
  padding: 10px 12px; font-size: 11px; font-weight: 600; letter-spacing: .2px;
}
.checkout-light .topbar .sep { color: rgba(255,255,255,.5); }

/* ---------- Header ---------- */
.checkout-light .checkout-header {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  max-width: 640px; margin: 0 auto; padding: 16px 20px;
  background: #fff; border-bottom: 1px solid #e6e9f0;
  position: sticky; top: 0; z-index: 20;
}
.co-header-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: #eaf1ff; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.checkout-light .checkout-header strong { display: block; font-size: 15px; color: #101828; }
.checkout-light .checkout-header small { font-size: 12px; color: #667085; }

/* ---------- Layout ---------- */
.checkout-light .checkout-main { padding: 20px 0 60px; }
.checkout-light .checkout-main .container { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Hero (imagem principal) ---------- */
.checkout-hero-image img {
  width: 100%; border-radius: 18px; border: 1px solid #e6e9f0;
  box-shadow: 0 12px 30px rgba(16,24,40,.08);
}

/* ---------- Título + preço ---------- */
.product-info h1 { font-size: 19px; color: #101828; line-height: 1.4; margin-bottom: 8px; }
.product-tag { color: #667085; font-weight: 500; }
.product-info > p { font-size: 13.5px; color: #667085; margin-bottom: 16px; }
.price-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: #fff; border: 1px solid #e6e9f0; border-radius: 14px; padding: 16px 18px;
}
.price-label { font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #667085; text-transform: uppercase; }
.price-value { font-size: 28px; font-weight: 700; color: #2f6bff; line-height: 1.2; }
.price-old-note { font-size: 11.5px; color: #8a94a6; }
.price-old-note s { margin-right: 2px; }
.price-eta { font-size: 11.5px; color: #667085; text-align: right; line-height: 1.4; }

/* ---------- Card genérico ---------- */
.checkout-light .checkout-card {
  padding: 22px; border-radius: 16px; background: #fff; border: 1px solid #e6e9f0;
}
.checkout-light .card-title { font-size: 16px; color: #101828; margin-bottom: 16px; }
.checkout-light .field { margin-bottom: 14px; }
.checkout-light .field:last-child { margin-bottom: 0; }
.checkout-light .field label { display: block; font-size: 12.5px; color: #475467; margin-bottom: 6px; font-weight: 600; }
.checkout-light .field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 14.5px;
  background: #f9fafb; border: 1px solid #d0d5dd; color: #101828;
  font-family: 'Inter', sans-serif; transition: border-color .15s;
}
.checkout-light .field input::placeholder { color: #98a2b3; }
.checkout-light .field input:focus { outline: none; border-color: #2f6bff; background: #fff; }
.checkout-light .field input.invalid { border-color: #dc2626; }

.field-autocomplete { position: relative; }
.email-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid #e6e9f0; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(16,24,40,.1); overflow: hidden;
}
.email-suggestions li {
  padding: 10px 14px; font-size: 13.5px; color: #344054; cursor: pointer;
}
.email-suggestions li:hover { background: #f2f7ff; color: #2f6bff; }

.field-error { display: block; margin-top: 6px; font-size: 12px; color: #dc2626; }
.field-error[hidden] { display: none; }

/* ---------- Order bump compacto ---------- */
.bump-card-compact {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  padding: 14px; border-radius: 14px; border: 2px dashed #a9c4ff; background: #f2f7ff;
}
.bump-check-wrap { position: relative; flex-shrink: 0; margin-top: 6px; cursor: pointer; }
.bump-check-wrap input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.bump-checkbox-box { display: block; width: 20px; height: 20px; border-radius: 5px; border: 2px solid #2f6bff; background: #fff; position: relative; }
.bump-check-wrap input:checked + .bump-checkbox-box { background: #2f6bff; }
.bump-check-wrap input:checked + .bump-checkbox-box::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.bump-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.bump-info { flex: 1; min-width: 160px; }
.bump-flag { display: block; font-size: 10.5px; font-weight: 700; color: #2f6bff; margin-bottom: 3px; letter-spacing: .2px; }
.bump-info h3 { font-size: 14.5px; color: #101828; margin-bottom: 3px; }
.bump-info p { font-size: 12px; color: #667085; }
.bump-price-compact { font-size: 15px; font-weight: 700; color: #2f6bff; white-space: nowrap; margin-left: auto; align-self: center; }

/* ---------- Info box ---------- */
.info-box {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px;
  border-radius: 14px; background: #eaf1ff; border: 1px solid #cfe0ff;
}
.info-icon { font-size: 18px; }
.info-box strong { font-size: 13.5px; color: #101828; display: block; margin-bottom: 3px; }
.info-box p { font-size: 12px; color: #475467; }

/* ---------- Pagamento ---------- */
.pay-section { background: #fff; border: 1px solid #e6e9f0; border-radius: 16px; padding: 20px; }
.pay-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pay-section-head strong { font-size: 14.5px; color: #101828; }
.pay-section-head span { font-size: 12px; color: #667085; }
.pay-total-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13.5px; color: #475467; }
.pay-total-line strong { font-size: 17px; color: #101828; }

.btn-pix {
  width: 100%; padding: 16px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #3f7bff, #2559e0); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(47,107,255,.35); transition: transform .15s, box-shadow .15s;
}
.btn-pix:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(47,107,255,.45); }
.btn-pix.loading { opacity: .7; pointer-events: none; }
.pix-note { text-align: center; font-size: 11.5px; color: #8a94a6; margin-top: 12px; }
.pix-error {
  text-align: center; font-size: 13px; color: #b91c1c; background: #fef2f2;
  border: 1px solid #fecaca; border-radius: 10px; padding: 10px; margin-top: 14px;
}

.pix-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e6e9f0; text-align: center; }
.pix-result h3 { font-size: 15px; color: #101828; margin-bottom: 14px; }
.pix-qr-image { width: 200px; height: 200px; margin: 0 auto 16px; border-radius: 12px; border: 1px solid #e6e9f0; }
.pix-copy-box { display: flex; gap: 8px; margin-bottom: 16px; }
.pix-copy-box input {
  flex: 1; min-width: 0; padding: 11px 12px; border-radius: 10px; font-size: 12px;
  background: #f9fafb; border: 1px solid #d0d5dd; color: #475467;
}
.pix-copy-box button {
  padding: 11px 16px; border-radius: 10px; border: none; background: #2f6bff; color: #fff;
  font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.pix-copy-box button.copied { background: #17a34a; }
.pix-status { font-size: 13px; color: #475467; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pix-status.paid { color: #17a34a; font-weight: 600; }

/* ---------- Garantia ---------- */
.guarantee-box {
  display: flex; gap: 12px; align-items: flex-start; padding: 18px;
  border-radius: 14px; background: #eaf1ff; border: 1px solid #cfe0ff;
}
.guarantee-icon { font-size: 22px; }
.guarantee-box strong { color: #2f6bff; font-size: 13px; letter-spacing: .3px; display: block; margin-bottom: 4px; }
.guarantee-box p { font-size: 13px; color: #344054; }

/* ---------- Badges row ---------- */
.badges-row { display: flex; gap: 10px; }
.badge-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; border-radius: 14px; background: #fff; border: 1px solid #e6e9f0;
  font-size: 12px; font-weight: 600; color: #344054; text-align: center;
}
.badge-item span { font-size: 18px; }

/* ---------- Lista de garantias ---------- */
.guarantees-list-card h3 { font-size: 15px; color: #101828; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.guarantees-list { display: flex; flex-direction: column; gap: 12px; }
.guarantees-list li { font-size: 13.5px; color: #344054; display: flex; gap: 8px; align-items: flex-start; }
.guarantees-list strong { color: #101828; }

/* ---------- FAQ (override do tema escuro) ---------- */
.checkout-light .faq-item { background: #fff; border: 1px solid #e6e9f0; }
.checkout-light .faq-question { color: #101828; }
.checkout-light .faq-plus { color: #2f6bff; }
.checkout-light .faq-answer p { color: #667085; }

/* ---------- Footer note ---------- */
.checkout-footer-note { text-align: center; font-size: 12px; color: #98a2b3; padding: 4px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .price-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .price-eta { text-align: left; }
  .badges-row { flex-wrap: wrap; }
  .badge-item { min-width: 100px; }
}
