/* ============================================================================
   CHECKOUT (público)
   ============================================================================ */
body.bp-checkout { background: var(--bp-bg); min-height: 100vh; overflow: auto; height: auto; }
html:has(body.bp-checkout) { height: auto; }

/* Barra de passos: Dados → Pagamento → Acesso */
.bp-checkout-steps, .bp-pix-steps-bar {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
  padding: 18px 16px 14px; background: var(--bp-white); border-bottom: 1px solid var(--bp-line);
}
.bp-pix-steps-bar { background: transparent; border-bottom: none; padding: 0 0 18px; }
.bp-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
.bp-step-circle {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #E2E8F0; color: #64748B; font-size: 13px; font-weight: 700; line-height: 1;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.bp-step-circle svg { width: 16px; height: 16px; }
.bp-step-label { font-size: 12px; font-weight: 600; color: #64748B; transition: color .2s; }
.bp-step-line { flex: 1; max-width: 72px; height: 2px; background: #E2E8F0; margin: 15px 6px 0; border-radius: 1px; transition: background .2s; }
.bp-step.active .bp-step-circle { background: #1ab854; color: #fff; }
.bp-step.active .bp-step-label { color: #1ab854; font-weight: 700; }
.bp-step.completed .bp-step-circle { background: #1ab854; color: #fff; }
.bp-step.completed .bp-step-label { color: #1ab854; }
.bp-step.completed + .bp-step-line { background: #1ab854; }
@media (max-width: 420px) {
  .bp-checkout-steps, .bp-pix-steps-bar { padding: 14px 12px 10px; }
  .bp-pix-steps-bar { padding: 0 0 14px; }
  .bp-step-circle { width: 28px; height: 28px; font-size: 12px; }
  .bp-step-circle svg { width: 14px; height: 14px; }
  .bp-step-label { font-size: 11px; }
  .bp-step-line { margin-top: 13px; max-width: 48px; }
}

.bp-checkout-topbar { background: var(--bp-white); border-bottom: 1px solid var(--bp-line); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.bp-checkout-topbar .bp-checkout-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bp-mute); }
.bp-checkout-topbar .bp-checkout-secure svg { color: var(--bp-success); width: 14px; height: 14px; }

.bp-checkout-banner { display: block; max-width: 1044px; width: calc(100% - 36px); height: auto; margin: 18px auto 0; object-fit: contain; border-radius: var(--bp-r-lg); }

.bp-checkout-video { display: block; max-width: 720px; width: calc(100% - 36px); margin: 18px auto 0; border-radius: var(--bp-r-lg); overflow: hidden; background: #000; }
.bp-checkout-video[hidden] { display: none; }
.bp-checkout-video iframe, .bp-checkout-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

.bp-checkout-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 18px 64px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 880px) { .bp-checkout-wrap { grid-template-columns: 1fr; padding: 20px 14px 40px; gap: 18px; } }

.bp-checkout-left { background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r-lg); padding: 24px; }
.bp-checkout-right { position: sticky; top: 18px; }
@media (max-width: 880px) { .bp-checkout-right { position: static; order: -1; } }
.bp-checkout-left h1 { font-size: 24px; letter-spacing: -.01em; margin-bottom: 10px; color: var(--bp-ink); }
.bp-checkout-cover { width: 100%; border-radius: var(--bp-r); margin: 12px 0 16px; aspect-ratio: 16/9; object-fit: cover; background: var(--bp-bg); }
.bp-checkout-desc { color: var(--bp-mute); margin: 8px 0 16px; font-size: 14px; line-height: 1.6; }
.bp-guarantee { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bp-bg); border-radius: var(--bp-r); font-size: 13px; color: var(--bp-text); border: 1px solid var(--bp-line-2); }
.bp-guarantee svg { color: var(--bp-success); flex-shrink: 0; }

.bp-checkout-step { font-size: 11.5px; font-weight: 700; color: var(--bp-mute); text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 10px; }
.bp-checkout-step:first-child { margin-top: 0; }

.bp-checkout-right h2 { font-size: 16px; margin-bottom: 4px; color: var(--bp-ink); }
.bp-checkout-right .bp-checkout-sub { color: var(--bp-mute); font-size: 13px; margin-bottom: 16px; }

.bp-checkout-left input, .bp-checkout-left select,
.bp-checkout-right input, .bp-checkout-right select {
  display: block; width: 100%; padding: 12px 14px;
  border: 1px solid var(--bp-line); border-radius: var(--bp-r);
  background: var(--bp-white); font: 14px 'DM Sans', system-ui, sans-serif; color: var(--bp-text);
  margin-bottom: 10px; box-sizing: border-box;
}
.bp-checkout-left input:focus, .bp-checkout-left select:focus,
.bp-checkout-right input:focus, .bp-checkout-right select:focus { outline: none; border-color: var(--bp-ink); box-shadow: 0 0 0 3px rgba(10,10,10,.08); }

.bp-checkout-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 4px; margin: 12px 0 16px; background: var(--bp-bg); }
.bp-checkout-tab { padding: 10px 8px; text-align: center; border-radius: var(--bp-r-sm); font-weight: 600; font-size: 13px; color: var(--bp-mute); cursor: pointer; transition: background .12s, color .12s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bp-checkout-tab svg { width: 14px; height: 14px; }
.bp-checkout-tab:hover { color: var(--bp-ink); }
.bp-checkout-tab.active { background: var(--bp-white); color: var(--bp-ink); box-shadow: var(--bp-shadow); }

.bp-bumps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.bp-bumps input[hidden], .bp-bump-card input[type="checkbox"] { display: none !important; }
.bp-bump-card { border: 1px dashed var(--bp-bump-btn-bg, #1ab854); background: var(--bp-yellow-soft); border-radius: var(--bp-r); padding: 12px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; transition: box-shadow .15s ease, transform .08s ease; }
.bp-bump-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.bp-bump-card:focus-visible { outline: 2px solid var(--bp-ink); outline-offset: 2px; }
.bp-bump-card--on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--bp-bump-btn-bg, #1ab854) 35%, transparent); }
.bp-bump-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cbd5e1; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .12s, border-color .12s; }
.bp-bump-check svg { width: 14px; height: 14px; opacity: 0; transition: opacity .12s; }
.bp-bump-card--on .bp-bump-check { background: #1ab854; border-color: #1ab854; }
.bp-bump-card--on .bp-bump-check svg { opacity: 1; }
.bp-bump-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bp-white); }
.bp-bump-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-bump-card .bp-bump-title { font-weight: 600; color: var(--bp-ink); font-size: 14px; line-height: 1.25; word-break: break-word; overflow-wrap: anywhere; }
.bp-bump-card .bp-bump-desc  { font-size: 12.5px; color: var(--bp-mute); word-break: break-word; overflow-wrap: anywhere; }
.bp-bump-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: nowrap; }
.bp-bump-card .bp-bump-price { font-weight: 700; color: var(--bp-ink); font-size: 14px; display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-shrink: 1; }
.bp-bump-card .bp-bump-price strong { white-space: nowrap; }
.bp-bump-card .bp-bump-price s { color: var(--bp-mute-2); font-weight: 500; font-size: 12.5px; }
.bp-bump-card .bp-bump-disc { color: var(--bp-success); font-weight: 600; font-size: 12px; }
.bp-bump-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; min-width: 96px; min-height: 34px; padding: 7px 14px;
  border: 1.5px solid var(--bp-bump-btn-bg, #1ab854); border-radius: 999px;
  background: #fff; color: var(--bp-bump-btn-bg, #1ab854);
  font-weight: 600; font-size: 12.5px; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); pointer-events: none; flex: 0 0 auto;
  transition: background .12s, color .12s, border-color .12s, box-shadow .12s;
}
.bp-bump-btn svg { width: 12px; height: 12px; stroke-width: 2.8px; }
.bp-bump-btn .bp-bump-btn-add, .bp-bump-btn .bp-bump-btn-rm { display: flex; align-items: center; justify-content: center; gap: 5px; }
.bp-bump-btn .bp-bump-btn-rm { display: none; }
.bp-bump-card:hover .bp-bump-btn { background: color-mix(in srgb, var(--bp-bump-btn-bg, #1ab854) 8%, #fff); }
.bp-bump-card--on .bp-bump-btn { background: var(--bp-bump-btn-bg, #1ab854); color: #000; border-color: var(--bp-bump-btn-bg, #1ab854); font-weight: 700; box-shadow: 0 3px 8px color-mix(in srgb, var(--bp-bump-btn-bg, #1ab854) 25%, transparent); }
.bp-bump-card--on .bp-bump-btn .bp-bump-btn-add { display: none; }
.bp-bump-card--on .bp-bump-btn .bp-bump-btn-rm { display: flex; }

/* Mantém preço e ação lado a lado, inclusive no celular. */
@media (max-width: 480px) {
  .bp-bump-card { align-items: flex-start; }
  .bp-bump-row { flex-wrap: nowrap; }
  .bp-bump-btn { min-width: 88px; padding: 6px 12px; font-size: 12px; }
}

.bp-summary { background: var(--bp-bg); border-radius: var(--bp-r); padding: 16px 18px; margin: 18px 0; border: 1px solid var(--bp-line-2); }
.bp-summary-title { font-size: 11.5px; font-weight: 700; color: var(--bp-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.bp-summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; color: var(--bp-text); }
.bp-summary-row.bp-summary-sub { color: var(--bp-mute); padding-top: 8px; border-top: 1px dashed var(--bp-line); margin-top: 4px; }
.bp-summary-row.bp-summary-discount { color: var(--bp-success); font-weight: 600; }
.bp-summary-row.bp-summary-total { font-weight: 800; font-size: 18px; color: var(--bp-ink); padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--bp-line); }

/* Total compacto (substitui resumo duplicado abaixo da forma de pagamento) */
.bp-total-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 0 14px; padding: 14px 18px;
  background: var(--bp-bg); border: 1px solid var(--bp-line-2); border-radius: var(--bp-r);
}
.bp-total-label { font-size: 15px; color: #6d6d6d; font-weight: 500; }
.bp-total-value { font-size: 15px; font-weight: 600; color: #6d6d6d; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.bp-checkout-topbar--slim { justify-content: center; padding: 10px 16px; }
.bp-checkout-submit { width: 100%; padding: 15px; font-size: 15px; font-weight: 700; border-radius: var(--bp-r); margin-top: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.06); background: var(--bp-primary) !important; color: #fff !important; border-color: transparent !important; }
.bp-checkout-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.10); filter: brightness(.95); }

.bp-checkout-secure-row { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--bp-mute); margin-top: 12px; }
.bp-checkout-secure-row svg { width: 13px; height: 13px; color: var(--bp-success); }

.bp-testimonials-section { background: var(--bp-bg); padding: 36px 16px 28px; border-top: 1px solid var(--bp-line); }
.bp-testimonials-wrap { max-width: 920px; margin: 0 auto; }
.bp-testimonials-title { font-size: 18px; font-weight: 700; color: var(--bp-ink); margin: 0 0 16px; text-align: center; }
.bp-testimonials { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px)  { .bp-testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bp-testimonials { grid-template-columns: repeat(3, 1fr); } }
.bp-testimonial { padding: 16px; background: var(--bp-white); border-radius: var(--bp-r); border: 1px solid var(--bp-line-2); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.bp-testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bp-testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bp-bg); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--bp-mute); font-size: 15px; border: 1px solid var(--bp-line-2); }
.bp-testimonial-avatar--fallback { background: var(--bp-bg); }
.bp-testimonial-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.bp-testimonial-meta strong { font-size: 14px; color: var(--bp-ink); font-weight: 700; }
.bp-testimonial-meta .bp-stars { color: var(--bp-yellow-d); font-size: 12px; letter-spacing: 1px; }
.bp-testimonial p { font-size: 13.5px; color: var(--bp-text); line-height: 1.55; margin: 0; }
.bp-proofs { column-count: 1; column-gap: 14px; margin: 0 auto; }
.bp-testimonials + .bp-proofs { margin-top: 14px; }
.bp-proofs--n1 { max-width: 420px; }
@media (min-width: 720px)  { .bp-proofs--n2, .bp-proofs--n3 { column-count: 2; } .bp-proofs--n2 { max-width: 720px; } }
@media (min-width: 1000px) { .bp-proofs--n3 { column-count: 3; } }
.bp-proof { display: block; width: 100%; height: auto; margin: 0 0 14px; border-radius: 16px; break-inside: avoid; }

.bp-pix-qr { text-align: center; padding: 18px 8px; }
.bp-pix-qr img { width: 110px; height: 110px; margin: 0 auto 14px; border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 8px; background: var(--bp-white); }
.bp-pix-code { background: var(--bp-bg); border: 1px solid var(--bp-line); padding: 12px; border-radius: var(--bp-r); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-all; cursor: pointer; line-height: 1.5; color: var(--bp-text); }
.bp-pix-meta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--bp-mute); }

/* Thank you ---------------------------------------------------------------*/
.bp-thanks { max-width: 560px; margin: 60px auto; background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r-lg); padding: 40px 36px; text-align: center; box-shadow: var(--bp-shadow); }
.bp-thanks .bp-check-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--bp-success-bg); color: var(--bp-success); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.bp-thanks h1 { font-size: 26px; margin-bottom: 8px; }
.bp-thanks p { color: var(--bp-mute); margin-bottom: 18px; }


/* ───────────────── Checkout: barra superior + resumo + botão glow ───────────────── */
.bp-checkout-banner-top {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 18px; font-size: 13.5px; font-weight: 600; text-align: center;
  letter-spacing: .005em;
}
.bp-checkout-banner-top[hidden] {
  display: none !important;
}
.bp-checkout-banner-text { opacity: .95; }
.bp-checkout-banner-timer {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-variant-numeric: tabular-nums;
  font-weight: 800; font-size: 14px; letter-spacing: .04em;
}
@media (max-width: 560px) {
  .bp-checkout-banner-top { font-size: 12.5px; gap: 10px; padding: 8px 12px; }
  .bp-checkout-banner-timer { font-size: 13px; padding: 3px 8px; }
}

/* Resumo do pedido (head clicável com divisória) */
.bp-order-summary { margin: 0; }
.bp-order-summary-head {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none; padding: 14px 18px;
  user-select: none; border-bottom: 1px solid var(--bp-line);
  transition: background .12s;
}
.bp-order-summary-head:hover { background: var(--bp-bg); }
.bp-order-summary:not([open]) .bp-order-summary-head { border-bottom: 0; }
.bp-order-summary-head::-webkit-details-marker { display: none; }
.bp-order-summary-chevron { color: var(--bp-mute); transition: transform .2s ease; flex-shrink: 0; }
.bp-order-summary[open] .bp-order-summary-chevron { transform: rotate(180deg); }
.bp-order-summary-title { font-size: 11.5px; font-weight: 700; color: var(--bp-mute); text-transform: uppercase; letter-spacing: .08em; }
.bp-order-summary-body { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; }
.bp-order-summary-thumb {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  background: var(--bp-bg); flex-shrink: 0;
}
.bp-order-summary-info { flex: 1; min-width: 0; }
.bp-order-summary-name {
  font-size: 15px; font-weight: 700; color: var(--bp-ink); line-height: 1.25;
  margin-bottom: 4px;
}
.bp-order-summary-prices {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  font-size: 13px;
}
.bp-order-summary-prices s { color: var(--bp-mute-2); font-size: 12.5px; }
.bp-order-summary-price {
  font-size: 17px; font-weight: 700; color: var(--bp-ink); letter-spacing: -.01em;
}
.bp-order-summary-method { font-size: 12px; color: var(--bp-mute); margin-top: 4px; }

/* Card de resumo lateral (AbacatePay-style) */
.bp-summary-card {
  background: var(--bp-white); border: 1px solid var(--bp-line);
  border-radius: var(--bp-r-lg); overflow: hidden;
}
.bp-summary-divider { height: 1px; background: var(--bp-line); }
.bp-summary-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 18px 6px;
}
/* Taxa de serviço do comprador (só aparece quando o admin configurou) */
.bp-svc-fee {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13.5px; color: #6d6d6d; font-variant-numeric: tabular-nums;
}
.bp-svc-fee--summary { padding: 14px 18px 0; }
.bp-svc-fee--summary + .bp-summary-total { padding-top: 8px; }
.bp-svc-fee--mobile { padding: 2px 0 6px; }
@media (max-width: 880px) { .bp-svc-fee--summary { display: none !important; } }
.bp-summary-total-label { font-size: 15px; color: #6d6d6d; font-weight: 500; }
.bp-summary-total-value {
  font-size: 15px; font-weight: 600; color: #6d6d6d;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.bp-summary-submit {
  display: flex !important; width: calc(100% - 36px); margin: 10px 18px 14px;
  padding: 14px; font-size: 14.5px; font-weight: 700; border-radius: var(--bp-r);
}
.bp-summary-guarantee {
  display: none;
}
.bp-summary-guarantee svg { color: var(--bp-success); flex-shrink: 0; }

/* Pane (info card) */
.bp-pane { margin: 0 0 14px; padding: 14px 16px; border: 0; border-radius: var(--bp-r); }
.bp-pane:empty { display: none; }
.bp-pane--info { background: var(--bp-bg); }
.bp-pane-info-title { font-size: 14.5px; font-weight: 700; color: var(--bp-ink); margin-bottom: 4px; }
.bp-pane-info-text { font-size: 13px; color: var(--bp-mute); margin: 0; line-height: 1.5; }

/* Submit mobile — só aparece no mobile */
.bp-checkout-submit-mobile { display: none; margin-top: 10px; }
.bp-checkout-submit-mobile .bp-pay-card-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 4px 0 12px;
}
.bp-checkout-submit-mobile .bp-total-label { font-size: 15px; color: #6d6d6d; font-weight: 500; }
.bp-checkout-submit-mobile .bp-total-value { font-size: 15px; font-weight: 600; color: #6d6d6d; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.bp-checkout-submit-mobile .bp-checkout-submit { width: 100%; padding: 15px; font-size: 15px; font-weight: 700; border-radius: var(--bp-r); }
@media (max-width: 880px) {
  .bp-checkout-submit-mobile { display: block; }
  .bp-summary-submit, .bp-summary-total, .bp-summary-divider, .bp-summary-guarantee { display: none !important; }
}

/* Botão Finalizar — pulse + glow */
.bp-checkout-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.bp-checkout-submit svg { flex-shrink: 0; }
.bp-pulse-glow {
  animation: bpPulseGlow 2.2s ease-in-out infinite;
  position: relative;
  --_glow: var(--bp-primary, #1ab854);
}
@keyframes bpPulseGlow {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.08), 0 0 0 0 color-mix(in srgb, var(--_glow) 55%, transparent); }
  50%      { box-shadow: 0 10px 26px rgba(0,0,0,.12), 0 0 0 10px color-mix(in srgb, var(--_glow) 0%, transparent); }
}
.bp-pulse-glow:hover { transform: translateY(-1px); }
.bp-checkout-secure-row { justify-content: center; text-align: center; }

/* Botão checkout — loading com texto "Carregando..." e onda shimmer */
.bp-checkout-submit { position: relative; transition: opacity .2s, transform .15s; overflow: hidden; }
.bp-checkout-submit.is-loading { pointer-events: none; }
.bp-checkout-submit.is-loading > span,
.bp-checkout-submit.is-loading > svg:not(.bp-spin) { display: none; }
.bp-checkout-submit .bp-spin { display: none; }
.bp-checkout-submit.is-loading .bp-spin {
  display: inline-flex; align-items: center; gap: 8px;
  position: relative; z-index: 2;
  font-weight: 700; font-size: inherit; color: inherit;
}
.bp-checkout-submit.is-loading .bp-spin::before {
  content: ''; width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.22); border-top-color: rgba(0,0,0,.85);
  border-radius: 50%; animation: bp-spin .7s linear infinite;
}
.bp-checkout-submit.is-loading::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: bp-wave 1.3s ease-in-out infinite;
}
@keyframes bp-spin { to { transform: rotate(360deg); } }
@keyframes bp-wave { 100% { transform: translateX(100%); } }


/* ============= PIX result — tela limpa ============= */
body.bp-pix-active .bp-checkout-right,
body.bp-pix-active .bp-testimonials-section,
body.bp-pix-active .bp-checkout-banner-top,
body.bp-pix-active .bp-checkout-banner,
body.bp-pix-active .bp-checkout-video { display: none !important; }
body.bp-pix-active .bp-checkout-wrap { grid-template-columns: 1fr !important; max-width: 560px; margin: 0 auto; }
body.bp-pix-active .bp-checkout-left { width: 100%; }

.bp-pix-clean { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 32px; }

/* Desktop: aproveita a tela com 2 colunas (QR à esquerda, resumo+passos à direita) */
@media (min-width: 900px) {
  body.bp-pix-active .bp-checkout-wrap { max-width: 1040px !important; padding: 28px 24px 64px; }
  body.bp-pix-active .bp-checkout-left { padding: 28px; }
  .bp-pix-clean {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas: "card summary" "card steps";
    gap: 18px 22px;
    align-items: start;
  }
  .bp-pix-card    { grid-area: card; align-self: stretch; padding: 28px 22px; }
  .bp-pix-summary { grid-area: summary; }
  .bp-pix-steps   { grid-area: steps; }
  .bp-pix-qr-box img { width: 130px; height: 130px; }
}

.bp-pix-summary { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 16px; }
.bp-pix-summary-head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; margin-bottom: 12px; }
.bp-pix-summary-item { display: flex; gap: 12px; align-items: center; }
.bp-pix-summary-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.bp-pix-summary-info { flex: 1; min-width: 0; }
.bp-pix-summary-name { font-size: 15px; font-weight: 600; color: #111; margin-bottom: 2px; }
.bp-pix-summary-price { font-size: 14px; color: #6b7280; font-variant-numeric: tabular-nums; }
.bp-pix-summary-bump { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: #444; border-top: 1px dashed #eef0f3; margin-top: 8px; font-variant-numeric: tabular-nums; }
.bp-pix-summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef0f3; font-size: 14px; color: #6b7280; }
.bp-pix-summary-total strong { font-size: 17px; color: #111; font-weight: 700; font-variant-numeric: tabular-nums; }

.bp-pix-card { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 22px 18px; text-align: center; }
.bp-pix-card-title { font-size: 17px; font-weight: 700; color: #111; margin-bottom: 16px; }
.bp-pix-qr-box { display: inline-block; padding: 12px; background: #fff; border: 1px solid #eef0f3; border-radius: 12px; margin-bottom: 18px; }
.bp-pix-qr-box img { display: block; width: 110px; height: 110px; }

.bp-pix-copy-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 15px; font-weight: 700; border-radius: var(--bp-r); transition: transform .15s, box-shadow .2s; }
.bp-pix-copy-btn:hover { transform: translateY(-1px); }
.bp-pix-copy-btn.is-copied { background: #16a34a !important; color: #fff !important; }

.bp-pix-code-mini { margin-top: 12px; padding: 10px 12px; background: #f7f8fa; border: 1px solid #eef0f3; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #555; word-break: break-all; line-height: 1.5; cursor: pointer; max-height: 84px; overflow: auto; text-align: left; }
.bp-pix-code-mini:hover { background: #f0f2f5; }

.bp-pix-status { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #6b7280; }
.bp-pix-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: bpPulseDot 1.4s ease-in-out infinite; }
@keyframes bpPulseDot { 0%,100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

.bp-pix-steps { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 18px; }
.bp-pix-steps-title { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 10px; }
.bp-pix-steps ol { margin: 0; padding-left: 22px; color: #444; font-size: 13.5px; line-height: 1.65; }
.bp-pix-steps ol li { margin-bottom: 6px; }
.bp-pix-steps ol li:last-child { margin-bottom: 0; }

/* Hero Checkout — brand (header + footer do checkout, sidebar) */
.bp-checkout-brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--bp-mute);font-family:'Inter','DM Sans',system-ui,sans-serif;font-weight:400;font-size:16px;letter-spacing:0}
.bp-checkout-brand-icon{width:24px;height:24px;object-fit:contain;display:block;filter:grayscale(1);opacity:.7}
.bp-checkout-brand--sm{font-size:14px}
.bp-checkout-brand--sm .bp-checkout-brand-icon{width:20px;height:20px}
.bp-checkout-footer{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 16px;color:var(--bp-mute-2);font-size:11.5px;text-align:center}
.bp-checkout-footer-links a{color:var(--bp-mute);text-decoration:underline}
.bp-sb-logo-mark{background-image:url('/imagens/brand/logo-icon.png');background-size:contain;background-repeat:no-repeat;background-position:center;color:transparent;text-indent:-9999px;overflow:hidden}



/* ── Aviso de loja não verificada (topo do checkout) ── */
.bp-checkout-alert{max-width:1080px;margin:12px auto 0;display:flex;align-items:flex-start;gap:10px;
  padding:13px 16px;border-radius:12px;background:#FFF7ED;border:1px solid #FED7AA;color:#9A3412;
  font-size:14px;font-weight:500;line-height:1.45}
.bp-checkout-alert svg{flex:0 0 auto;margin-top:1px}
.bp-checkout-alert a{color:#9A3412;font-weight:700;text-decoration:underline}
@media(max-width:640px){.bp-checkout-alert{margin:10px 12px 0;font-size:13px}}

/* ── Toast (erros de pagamento) ── */
.bp-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,140%);z-index:9999;
  background:#0F1F17;color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;font-weight:600;
  max-width:min(420px,calc(100vw - 32px));text-align:center;box-shadow:0 14px 34px rgba(0,0,0,.24);
  opacity:0;transition:transform .25s,opacity .25s}
.bp-toast.show{transform:translate(-50%,0);opacity:1}
.bp-toast.err{background:#B91C1C}
.bp-toast.ok{background:#15803D}

/* Guarda de e-mail digitado errado (sugestão de domínio) */
.bp-email-hint { display: none; }
.bp-email-hint.show {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: -6px 0 12px; padding: 10px 12px;
  font-size: 13px; line-height: 1.45;
  border-radius: 10px;
}
.bp-email-hint.warn {
  color: #92400E;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
}
.bp-email-hint.err {
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
}
.bp-email-hint button {
  border: 1px solid currentColor; background: #fff; color: inherit;
  border-radius: 8px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.bp-email-hint button:hover { background: rgba(0,0,0,.04); }
.bp-email-hint .bp-email-fix {
  background: var(--bp-ink, #0F1F17);
  border-color: var(--bp-ink, #0F1F17);
  color: #fff;
}
.bp-email-hint .bp-email-fix:hover { opacity: .9; background: var(--bp-ink, #0F1F17); }

/* Logo da loja no topo do checkout (configurável no editor) */
.bp-checkout-logo { max-width: 1044px; width: calc(100% - 36px); margin: 18px auto 0; display: flex; }
.bp-checkout-logo[data-align="center"] { justify-content: center; }
.bp-checkout-logo[data-align="left"]   { justify-content: flex-start; }
.bp-checkout-logo[hidden] { display: none; }
.bp-checkout-logo img { max-width: 100%; width: auto; object-fit: contain; display: block; }
.bp-checkout-logo--footer { margin: 0 auto; width: auto; justify-content: center; }


/* ===== Popup de saída (cupom de desconto) ===== */
.bp-noscroll { overflow: hidden; }
.bp-exit-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(6, 15, 31, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: bpExitFade .18s ease-out;
}
@keyframes bpExitFade { from { opacity: 0; } to { opacity: 1; } }
.bp-exit-modal {
  background: #fff; color: #0f172a;
  border-radius: 16px;
  padding: 28px 24px 24px;
  max-width: 360px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  animation: bpExitPop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes bpExitPop { from { transform: scale(.92) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.bp-exit-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bp-primary, #1ab854) 12%, #fff);
  color: var(--bp-primary, #1ab854);
  display: flex; align-items: center; justify-content: center;
}
.bp-exit-icon svg { width: 28px; height: 28px; }
.bp-exit-title { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.bp-exit-text { font-size: 14px; color: #475569; margin: 0 0 14px; line-height: 1.45; }
.bp-exit-coupon {
  display: inline-block;
  font-size: 15px; font-weight: 700;
  color: var(--bp-primary, #1ab854);
  background: color-mix(in srgb, var(--bp-primary, #1ab854) 10%, #fff);
  border: 1px dashed var(--bp-primary, #1ab854);
  border-radius: 10px;
  padding: 10px 18px; margin-bottom: 18px;
}
.bp-exit-apply {
  display: block; width: 100%;
  background: var(--bp-primary, #1ab854); color: #fff;
  border: 0; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  padding: 13px 16px; cursor: pointer;
  transition: filter .15s;
}
.bp-exit-apply:hover { filter: brightness(1.08); }
.bp-exit-skip {
  display: block; width: 100%; margin-top: 10px;
  background: none; border: 0;
  color: #94a3b8; font-size: 13px;
  cursor: pointer; padding: 6px;
}
.bp-exit-skip:hover { color: #64748b; }
.bp-coupon-badge {
  background: color-mix(in srgb, var(--bp-primary, #1ab854) 10%, #fff);
  color: var(--bp-primary, #1ab854);
  border: 1px solid color-mix(in srgb, var(--bp-primary, #1ab854) 35%, #fff);
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  padding: 8px 12px; margin-bottom: 12px;
  text-align: center;
}
