/* Checkout white-label. Tudo deriva de --accent, definido pela cor da marca do vendedor. */
:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ink: #0f1729;
  --ink-2: #344054;
  --muted: #5b6577;
  --placeholder: #6b7485;
  --line: #e4e7ec;
  --line-strong: #cfd5df;
  --page: #f5f6f8;
  --surface: #fff;
  --accent: #087b58;
  --accent-ink: #fff;
  --accent-text: #087b58;
  --accent-soft: #e9f5f0;
  --accent-softer: #f4faf7;
  --accent-line: #a9d6c5;
  --accent-shadow: rgba(8, 123, 88, .32);
  --pane: #f1f5f3;
  --success: #12805c;
  --success-soft: #e7f6ee;
  --warn: #b45309;
  --warn-soft: #fff6e9;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, .06);
  --shadow: 0 1px 2px rgba(15, 23, 41, .05), 0 12px 32px -16px rgba(15, 23, 41, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .18s;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
@supports (color: color-mix(in srgb, red 50%, white)) {
  :root {
    --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
    --accent-softer: color-mix(in srgb, var(--accent) 5%, #fff);
    --accent-line: color-mix(in srgb, var(--accent) 38%, #fff);
    --accent-shadow: color-mix(in srgb, var(--accent) 40%, transparent);
    --pane: color-mix(in srgb, var(--accent) 6%, #f6f7f9);
    --accent-ring: color-mix(in srgb, var(--accent) 26%, transparent);
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.5; }
main { flex: 1 0 auto; outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; letter-spacing: -.015em; }
ul { margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:not([href]) { color: var(--muted); text-decoration: none; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.order-summary dt small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 400; margin-top: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 30; padding: 12px 18px; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); transform: translateY(-160%); transition: transform var(--dur) var(--ease); }
.skip-link:focus { transform: translateY(0); }

/* Faixa de demonstração e estados globais */
/* A faixa fica no fluxo, dentro de main: sua chegada não desloca o contêiner da página.
   app.js só a revela após resolver o modo do checkout/pedido; nunca cobre a oferta. */
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 10px; padding: 9px 16px; background: var(--warn-soft); color: #7a3e06; font-size: 13px; line-height: 1.4; border-bottom: 1px solid #f6dfbd; text-align: center; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.site-header { display: none; }
/* O carregamento fica ancorado à janela enquanto configuração e idioma chegam.
   O suporte aparece junto da tela resolvida, sem saltar do fim da janela para o fim do formulário. */
.loading-state { position: fixed; inset: 0 0 auto; height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; color: var(--muted); font-size: 15px; }
body:has(#loading:not([hidden])) .site-footer { visibility: hidden; }
.spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: ck-spin .8s linear infinite; }
.global-error { max-width: 520px; margin: 48px 16px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--danger-soft); color: var(--danger); border: 1px solid #fbd0cb; display: grid; gap: 14px; font-size: 15px; }
@media (min-width: 560px) { .global-error { margin: 64px auto; } }
.global-error .secondary-button { justify-self: start; width: auto; }

/* Layout do checkout: celular primeiro, uma coluna na ordem da compra */
.checkout-shell { padding: 20px 16px 28px; }
.section-heading { display: none; }
.co-form { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "product" "identity" "payment" "bump" "summary" "lab" "trust" "legal" "provider"; }
.co-aside, .co-main { display: contents; }
.co-product { grid-area: product; padding: 6px 4px; }
.identity-card { grid-area: identity; }
.payment-section { grid-area: payment; }
#bump-section { grid-area: bump; }
.co-summary { grid-area: summary; }
.checkout-assurances { grid-area: trust; }
.checkout-legal { grid-area: legal; }
.payment-provider { grid-area: provider; }
.demo-lab { grid-area: lab; }

.co-eyebrow, .eyebrow, .co-label { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.co-label { color: var(--muted); letter-spacing: .07em; margin-bottom: 8px; }
.product-heading h1 { font-size: 26px; line-height: 1.18; font-weight: 720; margin-top: 6px; }
.product-price { display: block; margin-top: 8px; font-size: 30px; line-height: 1.1; font-weight: 760; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }

.co-step, .co-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 18px; box-shadow: var(--shadow-sm); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title h2, .section-title h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 680; }
.step-index { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 750; letter-spacing: 0; }
.card-label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--page); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.card-label svg { width: 16px; height: 16px; }
.field-hint { color: var(--muted); font-size: 13.5px; margin: -6px 0 14px; }

/* Campos */
.field-label, .field-grid label > span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.country-row { margin-bottom: 14px; }
.field-grid { display: grid; gap: 14px; }
input:not([type=checkbox]), select { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: 16px; color: var(--ink); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); -webkit-appearance: none; appearance: none; }
input::placeholder { color: var(--placeholder); opacity: 1; }
input:not([type=checkbox]):hover, select:hover { border-color: #b7c0cd; }
input:not([type=checkbox]):focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring, var(--accent-soft)); }
input:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
input:disabled, select:disabled { background: var(--page); color: var(--muted); }
.country-control { position: relative; display: block; }
.country-control select { padding-left: 48px; padding-right: 40px; cursor: pointer; }
.country-flag { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--page); box-shadow: inset 0 0 0 1px rgba(15, 23, 41, .08); font-size: 9px; font-weight: 700; color: var(--muted); pointer-events: none; }
.country-flag img { width: 100%; height: 100%; object-fit: cover; }
.country-chevron { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--muted); pointer-events: none; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 4px; border: 0; background: none; color: var(--accent-text); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.text-button:hover { text-decoration: underline; }

/* The native CardElement owns both its skeleton and editable fields.
   Reserve space without a second visual layer or fixed iframe height:
   provider validation messages can still expand the component. */
#live-payment { position: relative; }
#payment-element { min-height: 99px; }

.demo-payment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--page); }
.demo-payment strong { font-size: 15px; }
.demo-payment p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.demo-card-icon { display: grid; place-items: center; width: 40px; height: 32px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.demo-card-icon svg { width: 24px; height: 18px; }
.demo-pill { padding: 3px 8px; border-radius: 999px; background: var(--warn-soft); color: #7a3e06; font-size: 11.5px; font-weight: 750; letter-spacing: .06em; }

/* Oferta adicional (order bump): opcional, clara e perto do botão */
.bump-section { position: relative; border: 1.5px dashed var(--accent-line); border-radius: var(--radius-lg); background: var(--accent-softer); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.bump-section:hover { border-color: var(--accent); }
.bump-section:has(#include-bump:checked) { border-style: solid; border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-softer); }
.bump-section:has(#include-bump:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.bump-label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 4px 14px; padding: 16px; cursor: pointer; }
#include-bump { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 1px 0 0; border: 2px solid var(--accent); border-radius: 7px; background: var(--surface) center / 14px 14px no-repeat; cursor: pointer; transition: background-color var(--dur) var(--ease); }
#include-bump:checked { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); animation: ck-pop .26s var(--ease); }
:root[data-accent-tone="light"] #include-bump:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
#include-bump:focus-visible { outline: none; }
#include-bump:disabled { cursor: not-allowed; opacity: .7; }
.bump-copy { display: grid; gap: 3px; min-width: 0; }
.bump-eyebrow { font-size: 11.5px; font-weight: 750; letter-spacing: .08em; color: var(--accent-text); }
#bump-title { font-size: 15.5px; font-weight: 680; line-height: 1.3; }
#bump-description { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
#bump-description:empty { display: none; }
.bump-price { font-size: 15.5px; font-weight: 750; color: var(--accent-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .bump-label { grid-template-columns: auto minmax(0, 1fr); }
  .bump-price { grid-column: 2; }
}

/* Resumo */
.order-summary dl { margin: 0; display: grid; }
.order-summary dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14.5px; }
.order-summary dt { color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.order-summary dd { margin: 0; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }
#summary-bump-row:not([hidden]) { animation: ck-rise .3s var(--ease) both; }
.order-summary dl > .summary-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-total dt { color: var(--ink); font-weight: 700; font-size: 15.5px; }
.summary-total dt small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.summary-total dd { font-size: 24px; font-weight: 770; letter-spacing: -.02em; }
.pricing-status { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--accent-softer); color: var(--ink-2); font-size: 13.5px; }
.pricing-status.pricing-error { background: var(--danger-soft); color: var(--danger); }
/* Preço sendo consultado, renovado ou tentado de novo: só a rodinha, sem texto (pedido do proprietário, 11/10/2026). */
.price-loading { display: inline-flex; align-items: center; min-height: 1.1em; }
.price-loading::before { content: ""; width: .62em; height: .62em; max-width: 28px; max-height: 28px; min-width: 16px; min-height: 16px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: ck-spin .8s linear infinite; }
#pay-button.is-pricing svg { display: none; }
#pay-button.is-pricing::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: ck-spin .75s linear infinite; }

/* Ação principal */
/* Celular e tablet: ação, garantias e selo da Whop num cartão branco, como as etapas acima. */
.co-action { display: grid; gap: 12px; margin-top: 18px; }
.co-action .payment-provider-title { justify-content: center; }
.form-message { padding: 12px 14px; border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); border: 1px solid #fbd0cb; font-size: 14px; outline: none; animation: ck-rise .25s var(--ease) both; }
.form-message.info { background: var(--accent-softer); color: var(--ink-2); border-color: var(--accent-line); }
.primary-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 22px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; text-align: center; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 26px -14px var(--accent-shadow); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.primary-button svg { transition: transform var(--dur) var(--ease); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); filter: saturate(1.08) brightness(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 30px -14px var(--accent-shadow); }
.primary-button:hover:not(:disabled) svg { transform: translateX(3px); }
.primary-button:active:not(:disabled) { transform: translateY(0) scale(.99); }
.primary-button:disabled { background: #e8ebf0; color: #4f5a6b; box-shadow: none; }
#checkout-form[aria-busy="true"] #pay-button { background: var(--accent); color: var(--accent-ink); }
#checkout-form[aria-busy="true"] #pay-button svg { display: none; }
#checkout-form[aria-busy="true"] #pay-button::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: ck-spin .75s linear infinite; }
.payment-reassurance { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.payment-reassurance svg { width: 16px; height: 16px; }
.payment-provider { display: grid; justify-items: center; gap: 6px; padding-top: 6px; min-width: 0; }
.payment-provider-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); text-align: center; }
.payment-provider-title::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Sem zoom: o SDK da Whop mede o conteúdo do iframe para definir a altura; zoom distorce a medida. */
#branding-element { width: 100%; min-width: 0; }
/* O SDK só ajusta a altura do selo quando ele entra na tela (44px -> 59/75px). Reservar a altura medida
   evita que o selo cresça empurrando o conteúdo de baixo; nada do selo é escondido ou alterado. */
#branding-element iframe { min-height: 59px; }
@media (max-width: 520px), (min-width: 1000px) and (max-width: 1149px) { #branding-element iframe { min-height: 75px; } }

/* Selos no formato da MundPay (pedido do proprietário, 11/10/2026): 2 x 2, rótulo pequeno e texto forte */
.checkout-assurances { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding: 23px 0 9px; }
/* Espaço óptico igual acima e abaixo dos selos: o fundo é menor porque as linhas de texto já trazem entrelinha. A linha "lab" do grid existe mesmo com o laboratório escondido e somaria um gap só acima. */
@media (max-width: 999.98px) { #demo-lab[hidden] + .checkout-assurances { margin-top: -14px; } }
.checkout-assurances li { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; }
.assurance-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.assurance-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.assurance-text { display: grid; gap: 2px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.assurance-text small { font-size: 13.5px; color: var(--muted); }
.assurance-text strong { font-size: 16px; font-weight: 600; color: var(--ink); }
a.assurance-text[href]:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Rodapé legal do checkout: operador, vendedor e contato vindos do produto, políticas e direitos */
.checkout-legal { display: grid; gap: 8px; padding: 6px 4px 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.checkout-legal a { color: var(--ink-2); }
.checkout-legal strong { font-weight: 600; color: var(--ink-2); }
.checkout-legal-help { font-weight: 650; color: var(--ink-2); }
.checkout-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.checkout-legal-links a:not([href]) { display: none; }
/* O rodapé legal substitui o rodapé do site na tela de compra. */
body:has(#checkout-view:not([hidden])) .site-footer { display: none; }
.demo-lab { padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 14px; color: var(--ink-2); background: var(--surface); }
.demo-lab summary { cursor: pointer; font-weight: 600; }
.demo-lab label { display: grid; gap: 6px; margin: 12px 0 8px; }
.demo-lab p { color: var(--muted); font-size: 13px; }

/* Telas de acompanhamento, oferta adicional e entrega */
.center-view { max-width: 560px; margin: 16px 12px 24px; padding: 30px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); display: grid; justify-items: center; gap: 14px; text-align: center; animation: ck-rise .42s var(--ease) both; }
.center-view h1 { font-size: 25px; line-height: 1.2; font-weight: 730; outline: none; }
.lead { font-size: 16px; color: var(--ink-2); max-width: 46ch; overflow-wrap: anywhere; }
.lead:empty { display: none; }
.status-symbol { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 28px; font-weight: 750; }
.status-symbol .spinner { width: 28px; height: 28px; border-width: 3px; }
.status-symbol.warn { background: var(--warn-soft); color: var(--warn); animation: ck-pop .4s var(--ease); }
.status-details { width: 100%; padding: 14px 16px; border-radius: var(--radius); background: var(--page); color: var(--ink-2); font-size: 14px; text-align: left; overflow-wrap: anywhere; }
.status-details:empty { display: none; }
.action-stack { display: grid; gap: 10px; width: 100%; margin-top: 4px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 15.5px; font-weight: 640; text-decoration: none; text-align: center; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.secondary-button:hover:not(:disabled) { border-color: var(--ink-2); background: #fafbfc; }
.secondary-button:disabled { opacity: .6; }
.order-reference, .receipt-reference { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.confirmed-note { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--success-soft); color: #0b6347; font-size: 14px; font-weight: 650; text-align: left; }
.confirmed-note svg { width: 17px; height: 17px; stroke-width: 2.4; }
.upsell-art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--accent-soft); color: var(--accent-text); transform: rotate(-4deg); animation: ck-float 3.6s ease-in-out infinite; }
.upsell-art svg { width: 34px; height: 34px; stroke-width: 1.6; }
.upsell-features { list-style: none; display: grid; gap: 9px; width: 100%; text-align: left; }
.upsell-features:empty { display: none; }
.upsell-features li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.upsell-features li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.upsell-features li::after { content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border: solid var(--accent-text); border-width: 0 2.2px 2.2px 0; transform: rotate(42deg); }
.upsell-price-box { display: grid; gap: 4px; width: 100%; padding: 18px; border: 1.5px solid var(--accent-line); border-radius: var(--radius-lg); background: var(--accent-softer); font-size: 13.5px; color: var(--muted); }
#upsell-price { font-size: 34px; line-height: 1.15; font-weight: 780; letter-spacing: -.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.upsell-authorization { font-size: 13px; color: var(--muted); max-width: 48ch; }
.skip-offer { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 0; background: none; color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.skip-offer:hover:not(:disabled) { color: var(--ink); text-decoration-color: currentColor; }
.skip-offer:disabled { opacity: .55; }
.upsell-view .field-hint { margin: 0; }
.upsell-view > .confirmed-note { order: -2; }
.upsell-view > .upsell-art { order: -1; margin: 4px 0 2px; }

.success-icon { width: 76px; height: 76px; color: var(--success); }
.success-icon svg { width: 76px; height: 76px; stroke-width: 3; }
.success-ring { fill: var(--success-soft); stroke: var(--success-soft); }
.success-check { stroke: var(--success); stroke-dasharray: 34; stroke-dashoffset: 0; animation: ck-draw .55s .15s var(--ease) both; }
.receipt { display: grid; width: 100%; padding: 6px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: left; }
.receipt:empty { display: none; }
.receipt-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 14.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.receipt-line span { min-width: 0; overflow-wrap: anywhere; }
.receipt-line strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt-line:last-of-type { border-bottom: 0; font-weight: 700; color: var(--ink); }
.receipt-line:last-of-type strong { font-size: 17px; }
.receipt-reference { padding: 0 0 10px; }
.delivery-note { width: 100%; padding: 12px 14px; border-radius: var(--radius); background: var(--success-soft); color: #0b5e43; font-size: 14.5px; }
.delivery-note:empty { display: none; }
#additional-access { display: grid; gap: 10px; width: 100%; }
#additional-access:empty { display: none; }
.course-placeholder { display: grid; gap: 6px; width: 100%; padding: 18px; border-radius: var(--radius-lg); background: var(--page); text-align: left; }

.site-footer { display: flex; justify-content: center; gap: 16px; padding: 18px 16px 26px; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* Checkout v2 (opcional por checkout, 18/10/2026): cronômetro, banner e produto no formato MundPay.
   Tudo fica sob html[data-layout="v2"]; a v1 não recebe nenhuma destas regras. */
@media (max-width: 999.98px) {
  html[data-layout="v2"] .co-form { grid-template-areas: "banner" "product" "identity" "payment" "bump" "summary" "lab" "trust" "legal" "provider"; }
  html[data-layout="v2"] .promo-banner { grid-area: banner; }
}
html[data-layout="v2"] .promo-banner { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.promo-timer { --timer-bg: #0f8a5f; --timer-ink: #ffffff; margin: -20px -16px 14px; padding: 12px 16px 14px; background: var(--timer-bg); color: var(--timer-ink); text-align: center; }
.promo-timer-clock { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.promo-timer-digit { display: inline-grid; place-items: center; min-width: 38px; height: 36px; padding: 0 6px; border-radius: 6px; background: color-mix(in srgb, currentColor 16%, transparent); font-size: 20px; font-weight: 750; line-height: 1; }
.promo-timer-sep { font-size: 18px; font-weight: 700; }
.promo-timer-icon { width: 30px; height: 30px; margin-left: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promo-timer-text { margin-top: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.promo-timer-text:empty { display: none; }
html[data-layout="v2"] .co-product { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
html[data-layout="v2"] .co-product .co-eyebrow { display: none; }
html[data-layout="v2"] .co-product #country-field { margin-bottom: 16px; }
html[data-layout="v2"] .co-product #country-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-layout="v2"] .product-heading { display: flex; align-items: center; gap: 14px; }
html[data-layout="v2"] .product-heading > div { min-width: 0; }
.product-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--page); box-shadow: inset 0 0 0 1px rgba(15, 23, 41, .08); }
html[data-layout="v2"] .product-heading h1 { margin-top: 0; font-size: 17px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
html[data-layout="v2"] .product-price { margin-top: 4px; font-size: 26px; }

/* Tablet: cartões com mais respiro */
@media (min-width: 640px) {
  .checkout-shell { padding: 36px 24px 40px; }
  .promo-timer { margin: -36px -24px 20px; }
  .co-step, .co-summary { padding: 24px; }
  .product-heading h1 { font-size: 30px; }
  .product-price { font-size: 34px; }
  .center-view { margin: 56px auto; padding: 44px 40px; }
  .center-view h1 { font-size: 30px; }
}

/* Desktop: tela dividida. Resumo fixo à esquerda, compra à direita. */
@media (min-width: 1000px) {
  .checkout-shell { padding: 0; min-height: calc(100vh - 60px); background: linear-gradient(90deg, var(--pane) 50%, var(--surface) 50%); }
  .co-form { max-width: 1120px; gap: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "aside main"; }
  .co-aside { display: grid; align-content: start; gap: 28px; grid-area: aside; position: sticky; top: 0; align-self: start; padding: 72px 72px 48px 40px; }
  .co-main { display: grid; align-content: start; gap: 22px; grid-area: main; padding: 72px 40px 48px 72px; background: var(--surface); }
  .co-aside > *, .co-main > *, .co-main > #bump-section { grid-area: auto; min-width: 0; }
  .co-product { padding: 0; }
  .product-heading h1 { font-size: 34px; line-height: 1.12; }
  .product-price { margin-top: 14px; font-size: 44px; }
  .co-summary { padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
  .order-summary dl > div { padding: 11px 0; border-bottom: 1px solid rgba(15, 23, 41, .07); }
  .order-summary dl > .summary-total { border-top: 0; border-bottom: 0; }
  .checkout-assurances { padding-top: 44px; border-top: 1px solid var(--line); }
  .promo-timer { margin: 0; }
  html[data-layout="v2"] .co-aside { gap: 20px; }
  html[data-layout="v2"] .product-heading h1 { font-size: 20px; }
  html[data-layout="v2"] .product-price { margin-top: 6px; font-size: 32px; }
  .co-step { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .co-step + .co-step { padding-top: 22px; border-top: 1px solid var(--line); }
}

@keyframes ck-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ck-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes ck-spin { to { transform: rotate(360deg); } }
@keyframes ck-draw { from { stroke-dashoffset: 34; } to { stroke-dashoffset: 0; } }
@keyframes ck-float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spinner, .price-loading::before, #pay-button.is-pricing::before, #checkout-form[aria-busy="true"] #pay-button::before { animation: ck-spin 1.6s linear infinite !important; }
}
@media print { .site-footer, .skip-link, .demo-banner { display: none; } }

/* Email feedback appears only after leaving the field; no animation. */
#customer-email[aria-invalid="true"] { border-color: #d99a9a; }
.email-error { color: #a33f3f; font-size: 12px; line-height: 1.4; font-weight: 400; }

/* Optional activity cards. No element is created while the checkout is off. */
.checkout-activity-toast { position: fixed; z-index: 45; left: 24px; bottom: max(24px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 11px; width: 350px; max-width: calc(100vw - 32px); min-height: 88px; padding: 14px 8px 14px 14px; background: #fff; border: 1px solid #e2e7e3; border-radius: 14px; box-shadow: 0 8px 30px #20352812; color: #34443c; opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity 800ms cubic-bezier(.22,1,.36,1), transform 800ms cubic-bezier(.22,1,.36,1); }
.checkout-activity-toast[hidden] { display: none; }
.checkout-activity-toast.activity-toast-visible { opacity: 1; transform: translate3d(0,0,0); }
.checkout-activity-toast.activity-toast-exiting { opacity: 0; transform: translate3d(0,7px,0); transition-duration: 500ms; transition-timing-function: cubic-bezier(.4,0,.7,1); }
.activity-toast-icon { width: 33px; height: 33px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: var(--accent-text, #087f75); background: var(--accent-soft, #edf6f3); }
.activity-toast-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.activity-toast-copy { flex: 1; min-width: 0; }
.activity-toast-copy p { margin: 0; font-size: 13px; line-height: 1.45; color: #34443c; }
.activity-toast-copy strong { font-weight: 650; }
.activity-toast-copy small { display: block; margin-top: 4px; font-size: 10px; line-height: 1.4; color: #738276; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.activity-toast-close { align-self: flex-start; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #738276; font: 20px/1 system-ui, sans-serif; cursor: pointer; }
.activity-toast-close:hover { background: #f3f6f3; }
.activity-toast-close:focus-visible { outline: 2px solid var(--accent-text, #087f75); outline-offset: 2px; }
@media (max-width: 600px) { .checkout-activity-toast { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: auto; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .checkout-activity-toast { transition: none; transform: none; } }

/* V3 is opt-in. The V1/V2 selectors and financial controls retain their behavior. */
html[data-layout="v3"] .co-form { display:flex; flex-direction:column; gap:18px; }
html[data-layout="v3"] .co-aside,html[data-layout="v3"] .co-main { display:contents; }
html[data-layout="v3"] .promo-banner { order:1; display:block; width:100%; height:auto; border-radius:16px; }
html[data-layout="v3"] .co-product { order:2; padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:18px; }
html[data-layout="v3"] .product-heading { display:flex; gap:16px; align-items:center; }
html[data-layout="v3"] .product-heading>div { min-width:0; }
html[data-layout="v3"] .product-heading h1 { font-size:23px; line-height:1.25; }
html[data-layout="v3"] .product-price { margin-top:6px; font-size:28px; }
html[data-layout="v3"] .identity-card { order:3; }
html[data-layout="v3"] .shipping-address { order:4; }
html[data-layout="v3"] .shipping-highlight { order:5; display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; padding:16px 20px; border:1px solid var(--accent-line); background:var(--accent-softer); border-radius:14px; }
html[data-layout="v3"] .shipping-highlight p { width:100%; font-size:13px; color:var(--muted); }
html[data-layout="v3"] .shipping-fast { border-radius:20px; padding:3px 10px; background:var(--accent); color:var(--accent-ink); font-size:11px; font-weight:650; }
html[data-layout="v3"] .payment-section { order:6; }
html[data-layout="v3"] #bump-section { order:7; }
html[data-layout="v3"] .co-summary { order:8; }
html[data-layout="v3"] #demo-lab { order:9; }
html[data-layout="v3"] .checkout-assurances { order:10; }
html[data-layout="v3"] .checkout-legal { order:11; }
html[data-layout="v3"] .payment-provider { order:12; }
html[data-layout="v3"] .shipping-full { grid-column:1/-1; }
html[data-layout="v3"] .shipping-address>.field-hint { margin-bottom:16px; }
html[data-layout="v3"] #country-field { margin-bottom:18px; }
html[data-layout="v3"] #shipping-disclosure { margin-bottom:10px; }
@media(min-width:1000px) {
 html[data-layout="v3"] .checkout-shell { padding:44px 28px; background:#f5f7f6; }
 html[data-layout="v3"] .co-form { display:grid; grid-template-areas:"main aside"; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); max-width:1060px; gap:28px; align-items:start; }
 html[data-layout="v3"] .co-main,html[data-layout="v3"] .co-aside { display:flex; flex-direction:column; gap:18px; min-width:0; padding:0; background:none; position:static; }
 html[data-layout="v3"] .co-main { grid-area:main; }
 html[data-layout="v3"] .co-aside { grid-area:aside; }
 html[data-layout="v3"] .co-step,html[data-layout="v3"] .co-summary { width:100%; padding:24px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:var(--shadow-sm); }
 html[data-layout="v3"] .checkout-assurances { padding:20px 0; border-top:0; }
 html[data-layout="v3"] .co-main>* ,html[data-layout="v3"] .co-aside>* { width:100%; }
 html[data-layout="v3"] .promo-timer { border-radius:0; margin:-44px -28px 28px; }
}
@media(min-width:640px) { html[data-layout="v3"] .shipping-address .field-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
/* Hidden V3 sections must not interrupt the legacy adjacent-sibling divider. */
@media(min-width:1000px) { html:not([data-layout="v3"]) .payment-section { padding-top:22px; border-top:1px solid var(--line); } }

/* Product shipping confirmation. Only the opted-in receipt uses these styles. */
.shipping-thankyou{max-width:680px;text-align:center}.shipping-thankyou h1{letter-spacing:-.035em}.thankyou-details{width:100%;min-width:0;margin:28px 0;text-align:left;overflow-wrap:anywhere}.thankyou-preparation>div,.thankyou-product strong{min-width:0}.thankyou-banner{width:100%;max-height:220px;object-fit:cover;border-radius:16px;margin-bottom:20px}.thankyou-product{display:flex;align-items:center;gap:14px;margin-bottom:20px;padding:0 4px}.thankyou-product img{width:56px;height:56px;object-fit:cover;border-radius:50%}.thankyou-preparation{display:flex;gap:16px;padding:24px;border:1px solid #b9dace;border-radius:18px;background:#eff9f4;color:#204e3e}.thankyou-parcel{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;background:#d5eee2;font-size:25px}.thankyou-preparation strong{font-size:18px}.thankyou-preparation p{margin:8px 0 0;line-height:1.65;font-size:14px}.thankyou-email{margin-top:22px;padding:18px 20px;background:#f5f6f8;border-radius:12px;font-weight:600;font-size:14px;overflow-wrap:anywhere;line-height:1.6}.thankyou-spam{margin:12px 6px 0;color:#647067;font-size:13px;line-height:1.7}.thankyou-estimate{margin:16px 6px;color:#496052;font-size:13px}.shipping-thankyou .receipt{margin-top:24px}.shipping-thankyou .receipt-reference{overflow-wrap:anywhere}.shipping-thankyou #success-support{margin-top:20px}@media(max-width:480px){.thankyou-preparation{padding:18px;gap:12px}.thankyou-preparation strong{font-size:16px}.shipping-thankyou{padding-left:20px;padding-right:20px}}

.product-quantity { display:inline-block; vertical-align:middle; border-radius:6px; padding:4px 8px; background:var(--surface-soft,#f1f5f3); color:var(--ink,#182521); font-size:13px; line-height:1.4; font-weight:600; overflow-wrap:anywhere; }
.product-photo { display:block; width:100%; max-width:589px; max-height:420px; height:auto; object-fit:contain; margin:18px auto; }
.shipping-address .section-title { flex-wrap:wrap; gap:10px; }
.shipping-fast { flex-shrink:0; }

.thankyou-product.has-product-photo { flex-direction:column-reverse; align-items:flex-start; }
.thankyou-product.has-product-photo img { width:100%; max-width:589px; height:auto; max-height:420px; object-fit:contain; border-radius:0; margin:8px auto; }

/* Optional physical bonus countdown occupies its own row above the receipt. */
.bonus-redirect { display: flex; align-items: center; gap: 10px; justify-self: end; max-width: 350px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); text-align: left; }
.bonus-redirect-circle { position: relative; display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.bonus-redirect-circle::before { content: ''; position: absolute; inset: 0; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: ck-spin 1s linear infinite; }
.bonus-redirect p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.bonus-redirect button { display: inline; margin-top: 3px; padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.bonus-redirect.is-stopped .bonus-redirect-circle::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .bonus-redirect-circle::before { animation: none; } }
