/* Oferta Reservada — checkout 2 colunas (desktop) / coluna única (mobile). Isolado: só carrega no template oferta_reservada. */
:root{
  --ox-primary:#16a34a;
  --ox-bg:#f0f0f0;
  --ox-card:#fff;
  --ox-text:#171717;
  --ox-muted:#6b7280;
  --ox-border:#e5e7eb;
  --ox-border-strong:#d1d5db;
  --ox-red:#dc2626;
  --ox-dark:#111827;
  --ox-amber:#f59e0b;
  --ox-amber-dark:#d97706;
  --ox-green:#22c55e;
  --ox-green-text:#16a34a;
  --ox-radius:12px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.ox-page{margin:0;background:var(--ox-bg);color:var(--ox-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased}
.ox-page img{max-width:100%;display:block}
.ox-page svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.is-hidden{display:none!important}
[hidden]{display:none!important}

/* Barra superior */
.ox-topbar{background:var(--ox-dark);color:#fff;padding:12px 16px;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.ox-topbar-inner{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;max-width:1100px;margin:0 auto}
.ox-topbar svg{width:16px;height:16px;color:#22c55e;flex:none}

.ox-main{max-width:1100px;margin:0 auto;padding:22px 16px 32px}

/* Contagem regressiva */
.ox-countdown{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--ox-red);color:#fff;font-weight:600;padding:10px 16px;font-size:16px}
.ox-countdown strong{background:rgba(255,255,255,.2);border-radius:6px;padding:3px 8px;font-variant-numeric:tabular-nums;font-weight:700}
.ox-countdown.is-expired strong{opacity:.75}

.ox-alert{display:flex;gap:10px;align-items:flex-start;margin:14px 0 0;padding:12px 14px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:10px;font-size:14px}
.ox-alert strong{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#dc2626;color:#fff;font-size:12px;flex:none}

/* Hero + selo de vagas */
.ox-hero{position:relative;display:flex;flex-direction:column;align-items:center;padding-bottom:6px}
.ox-hero .ox-hero-img{width:100%;max-width:640px;max-height:640px;height:auto;object-fit:contain}
.ox-stock{display:inline-flex;align-items:center;gap:8px;margin-top:14px;position:relative;z-index:1;background:#fff;border:1px solid var(--ox-border);border-radius:9999px;padding:6px 14px;font-size:15px;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.ox-hero-no-image .ox-stock{margin-top:4px}
.ox-stock i{width:8px;height:8px;border-radius:50%;background:var(--ox-green);box-shadow:0 0 0 0 rgba(34,197,94,.55);animation:ox-pulse 2s infinite}
@keyframes ox-pulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.5)}70%{box-shadow:0 0 0 7px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}

/* Grid principal */
.ox-form{margin-top:22px}
.ox-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"main side" "cta side";grid-template-rows:auto 1fr;column-gap:32px;row-gap:20px;align-items:start}
.ox-col-main{grid-area:main;display:flex;flex-direction:column;gap:20px;min-width:0}
.ox-col-side{grid-area:side;display:flex;flex-direction:column;gap:14px;position:sticky;top:16px}
.ox-col-cta{grid-area:cta;min-width:0}

/* Pagamento expresso */
.ox-express{display:flex;flex-direction:column;gap:10px;text-align:center}
.ox-express-label{font-size:12.8px;color:var(--ox-muted)}
.ox-express-checkout{min-height:48px}
.ox-divider{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--ox-muted)}
.ox-divider::before,.ox-divider::after{content:"";flex:1;height:1px;background:var(--ox-border-strong)}

/* Seções */
.ox-h2{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:22px;font-weight:700;letter-spacing:-.01em}
.ox-h2 svg{width:20px;height:20px;color:#4b5563;stroke-width:1.8}
.ox-fields{display:flex;flex-direction:column;gap:14px}
.ox-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.ox-field>span{font-size:14px;font-weight:600;color:#111827}
.ox-field input,.ox-stripe-element{width:100%;height:46px;border:1px solid var(--ox-border-strong);background:#fff;border-radius:8px;padding:0 14px;font:inherit;font-size:15px;color:var(--ox-text);outline:none;transition:border-color .15s,box-shadow .15s}
.ox-stripe-element{padding:13px 14px}
.ox-field input::placeholder{color:#9ca3af}
.ox-field input:focus,.ox-stripe-element.StripeElement--focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.ox-field input.is-invalid,.ox-field input[aria-invalid="true"]{border-color:#dc2626}
.ox-help{font-size:13px;color:#4b5563}
.ox-phone-row{display:flex;gap:8px}
.ox-phone-prefix{display:grid;place-items:center;padding:0 12px;border:1px solid var(--ox-border-strong);border-radius:8px;background:#f9fafb;font-weight:600;font-size:14px;flex:none}

.ox-live{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;background:#1f2937;color:#fff;border-radius:8px;padding:10px 14px;font-size:13px;font-weight:600}
.ox-live svg{width:15px;height:15px}
.ox-live i{width:7px;height:7px;border-radius:50%;background:var(--ox-green);animation:ox-pulse 2s infinite}

/* Pagamento */
.ox-pay-box{background:#fff;border:1px solid var(--ox-border);border-radius:var(--ox-radius);overflow:hidden}
.ox-pay-options{display:flex;flex-direction:column}
.ox-pay-option{position:relative;display:flex;align-items:center;gap:12px;padding:15px 18px;cursor:pointer;border-bottom:1px solid var(--ox-border);font-size:14px;transition:background .15s}
.ox-pay-option:last-child{border-bottom:0}
.ox-pay-option input{position:absolute;opacity:0;pointer-events:none}
.ox-pay-option strong{font-weight:500;color:#1f2937}
.ox-pay-option:has(input:checked){background:rgba(239,246,255,.6)}
.ox-pay-option:has(input:checked) strong{color:#2563eb}
.ox-radio{width:18px;height:18px;border-radius:50%;border:2px solid var(--ox-border-strong);flex:none;display:grid;place-items:center}
.ox-pay-option input:checked~.ox-radio{border-color:#2563eb}
.ox-pay-option input:checked~.ox-radio::after{content:"";width:8px;height:8px;border-radius:50%;background:#2563eb}
.ox-pay-options.is-single .ox-radio{display:none}
.ox-pay-icon{display:inline-flex;align-items:center;min-width:28px}
.ox-pay-icon svg{width:22px;height:22px}
.ox-pay-icon img{max-height:20px;width:auto}
.ox-pay-icon .pay-brand{display:inline-flex;align-items:center;gap:4px;color:#2563eb}
.ox-pay-icon .pay-brand b{font-size:11px}
.ox-no-payment{padding:16px 18px;font-size:14px;color:#991b1b}
.ox-stripe{padding:4px 18px 18px;border-top:1px solid var(--ox-border);background:rgba(239,246,255,.3)}
.ox-stripe-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:12px}
.ox-span-2{grid-column:1/-1}
.ox-stripe .stripe-error{color:#dc2626;font-size:13px;margin-top:8px}
.ox-stripe .stripe-error:empty{display:none}

/* CTA + confiança */
.ox-turnstile{margin-bottom:12px}
.ox-submit{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:58px;border:0;border-radius:var(--ox-radius);background:var(--ox-primary);color:#fff;font:inherit;font-size:16px;font-weight:700;letter-spacing:.01em;text-transform:uppercase;cursor:pointer;box-shadow:0 6px 16px -6px rgba(22,163,74,.55);transition:filter .15s,transform .15s}
.ox-submit:hover{filter:brightness(1.06)}
.ox-submit:active{transform:translateY(1px)}
.ox-submit:disabled{opacity:.6;cursor:not-allowed}
.ox-spinner{display:none;width:18px;height:18px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:ox-spin .8s linear infinite}
.ox-submit.is-loading .ox-spinner{display:inline-block}
@keyframes ox-spin{to{transform:rotate(360deg)}}
.ox-access{margin:16px 0 0 10px;font-size:15px;color:#1f2937}
.ox-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:16px 0 4px}
.ox-trust-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px}
.ox-trust-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dcfce7;color:var(--ox-green-text);margin-bottom:8px}
.ox-trust-icon svg{width:16px;height:16px}
.ox-trust-item small{font-size:12px;color:#4b5563}
.ox-trust-item strong{font-size:12px;font-weight:700}

/* Order bumps */
.ox-bumps{display:flex;flex-direction:column;gap:12px}
.ox-bump{display:block;position:relative;background:#fff;border:2px solid var(--ox-border-strong);border-radius:var(--ox-radius);padding:13px;cursor:pointer;font-family:"DM Sans",Inter,system-ui,sans-serif;color:#1f2937;transition:border-color .2s,box-shadow .2s}
.ox-bump:hover{border-color:#fbbf24}
.ox-bump.is-selected{border-color:var(--ox-amber);box-shadow:0 0 0 3px rgba(245,158,11,.12)}
.ox-bump-input{position:absolute;opacity:0;pointer-events:none}
.ox-bump-row{display:grid;grid-template-columns:auto auto 1fr;gap:4px 11px;align-items:center}
.ox-check{display:grid;place-items:center;width:18px;height:18px;border:2px solid var(--ox-border-strong);border-radius:4px;background:#fff;transition:all .15s}
.ox-check svg{width:12px;height:12px;stroke:#fff;stroke-width:3;opacity:0}
.ox-bump.is-selected .ox-check{background:var(--ox-amber);border-color:var(--ox-amber)}
.ox-bump.is-selected .ox-check svg{opacity:1}
.ox-bump-input:focus-visible~.ox-bump-row .ox-check{outline:2px solid #2563eb;outline-offset:2px}
.ox-bump-img{width:70px;height:70px;border-radius:6px;overflow:hidden;background:#f3f4f6}
.ox-bump-img img{width:100%;height:100%;object-fit:cover}
.ox-bump-img-empty{width:0;height:0}
.ox-bump-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.ox-bump-copy strong{font-size:15px;font-weight:700;line-height:1.25}
.ox-bump-copy small{display:block;font-size:14px;color:#4b5563;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.ox-bump-price{display:flex;align-items:baseline;gap:6px}
.ox-bump-price del{font-size:11px;color:#9ca3af}
.ox-bump-price b{font-size:14px;color:var(--ox-green-text);font-weight:700}
.ox-bump-cta{align-self:stretch;margin-top:6px;background:var(--ox-amber);color:#fff;border-radius:10px;padding:9px 12px;font-size:12.5px;font-weight:700;text-align:center;transition:background .15s}
.ox-bump:hover .ox-bump-cta{background:var(--ox-amber-dark)}
.ox-bump.is-selected .ox-bump-cta{background:var(--ox-amber-dark)}

/* Resumo */
.ox-summary{background:#fff;border:1px solid var(--ox-border);border-radius:var(--ox-radius);overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.ox-summary-head{padding:16px 18px;border-bottom:1px solid #f3f4f6;font-size:14px;font-weight:600;color:#1f2937}
.ox-summary-body{padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.ox-summary-product{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start}
.ox-summary-product img{width:56px;height:56px;border-radius:6px;object-fit:cover}
.ox-summary-product strong{display:block;font-size:14px;font-weight:600}
.ox-summary-product>b{font-size:14px;font-weight:600;white-space:nowrap}
.ox-bonus-pill{display:inline-flex;margin-top:5px;padding:2px 8px;border-radius:9999px;background:#f0fdf4;border:1px solid #bbf7d0;color:var(--ox-green-text);font-size:11px;font-weight:600}
.ox-bonus-list{display:flex;flex-direction:column;gap:6px}
.ox-bonus-line{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#9ca3af}
.ox-bonus-line>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ox-bonus-line>span:last-child{display:flex;align-items:center;gap:8px;flex:none}
.ox-bonus-line em{font-style:normal;background:var(--ox-green);color:#fff;font-size:10px;font-weight:700;border-radius:4px;padding:2px 6px}
.ox-summary-bump{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding-top:8px;border-top:1px dashed var(--ox-border)}
.ox-summary-bump b{font-weight:600;white-space:nowrap}
.ox-summary-total{border-top:1px solid var(--ox-border);padding:14px 16px}
.ox-total-row{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;color:var(--ox-muted)}
.ox-total-values{display:flex;flex-direction:column;align-items:flex-end}
.ox-total-values del{font-size:12px;color:#9ca3af}
.ox-total-values strong{font-size:20px;font-weight:700;color:var(--ox-text)}
.ox-saving{margin:8px 0 0;text-align:right;font-size:12px;font-weight:600;color:var(--ox-green-text)}
.ox-summary-foot{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;padding:12px 16px;background:#f9fafb;border-top:1px solid #f3f4f6;font-size:11.5px;color:var(--ox-muted)}

/* Rodapé */
.ox-footer{display:flex;justify-content:center;gap:16px;padding:8px 16px 32px}
.ox-footer a{font-size:11px;text-transform:uppercase;color:#2563eb;letter-spacing:.02em}

/* Mobile */
@media (max-width:900px){
  .ox-grid{grid-template-columns:1fr;grid-template-areas:"main" "side" "cta";grid-template-rows:none;row-gap:22px}
  .ox-col-side{position:static}
}
@media (max-width:560px){
  .ox-main{padding:0 12px 24px}
  .ox-countdown{margin:0 -12px}
  .ox-topbar-inner{font-size:12.5px}
  .ox-hero .ox-hero-img{max-width:100%}
  .ox-stock{font-size:14px}
  .ox-h2{font-size:19px}
  .ox-trust{grid-template-columns:repeat(2,1fr);row-gap:16px}
  .ox-stripe-grid{grid-template-columns:1fr 1fr}
}
