:root {
    --cor-primaria: #0000a0;
    --cor-secundaria: #0060f8;
    --cor-realce: #00a8f8;
}

* { box-sizing: border-box; }

html, body { height: 100%; overflow-x: hidden; max-width: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #2a2f45;
    line-height: 1.6;
}

a { color: var(--cor-secundaria); }

/* ════════════════ Página "em breve" / avisos ════════════════ */
.pg-embreve {
    background: linear-gradient(150deg, var(--cor-primaria) 0%, var(--cor-secundaria) 65%, var(--cor-realce) 100%);
}
.pg-embreve .container { width: min(720px, 90%); margin: 0 auto; }
.pg-embreve main.container {
    flex: 1; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1rem;
}
.pg-embreve .rodape { padding: 1.5rem 0; color: rgba(255,255,255,.8); text-align: center; font-size: .85rem; }

.card-embreve {
    width: min(540px, 100%);
    background: #fff; border-radius: 24px; padding: 3.25rem 2.5rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,32,.35);
}
.card-embreve .logo { display: block; height: 50px; width: auto; margin: 0 0 1.5rem; }
.card-embreve .tag {
    display: inline-block; background: rgba(var(--cor-secundaria-rgb,0,96,248),.1); color: var(--cor-secundaria);
    padding: .35rem 1rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.card-embreve h1 { color: var(--cor-primaria); font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 800; margin: 1.25rem 0 1rem; line-height: 1.2; }
.card-embreve .lead { color: #51607a; font-size: 1.05rem; margin: 0 0 2rem; }
.card-embreve .lead strong { color: #2a2f45; }

/* Caixa de aviso (404 / indisponível) sobre o gradiente */
.aviso-box { text-align: center; color: #fff; }
.aviso-box h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); margin: 0 0 .5rem; }
.aviso-box p { opacity: .9; margin: 0 0 1.5rem; }

/* Botão (compartilhado) */
.btn {
    display: inline-block; background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: #fff; text-decoration: none; font-weight: 700; padding: .9rem 2rem; border-radius: 12px;
    transition: transform .15s ease, filter .15s ease; box-shadow: 0 10px 24px rgba(var(--cor-primaria-rgb,0,0,160),.3);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:disabled { opacity: .7; cursor: default; pointer-events: none; transform: none; }
.btn.loading::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: .55rem; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: agSpin .6s linear infinite; }
@keyframes agSpin { to { transform: rotate(360deg); } }
/* Botão "bombando" (chama atenção enquanto pendente) — glow na cor do tenant */
.btn.pulsar { animation: btnPulse 1.5s ease-in-out infinite; }
@keyframes btnPulse {
    0%, 100% { transform: none; box-shadow: 0 10px 24px rgba(var(--cor-primaria-rgb,0,0,160),.3); }
    50%      { transform: scale(1.03); box-shadow: 0 14px 32px rgba(var(--cor-primaria-rgb,0,0,160),.5), 0 0 0 6px rgba(var(--cor-secundaria-rgb,0,96,248),.18); }
}
.card-sucesso .cs-passo.pulsar { animation: passoPulse 1.4s ease-in-out infinite; border-color: var(--cor-secundaria); background: rgba(var(--cor-secundaria-rgb,0,96,248),.07); }
@keyframes passoPulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--cor-secundaria-rgb,0,96,248),.45); transform: none; }
    70%  { box-shadow: 0 0 0 9px rgba(var(--cor-secundaria-rgb,0,96,248),0);  transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(var(--cor-secundaria-rgb,0,96,248),0);    transform: none; }
}
@media (prefers-reduced-motion: reduce) { .btn.pulsar, .card-sucesso .cs-passo.pulsar { animation: none; } }

/* ════════════════ Loja ════════════════ */
.pg-loja { background: #f4f6fb; }
.loja-container { width: min(1080px, 92%); margin: 0 auto; }

.loja-topo { background: #fff; border-bottom: 1px solid #e7ebf3; padding: .85rem 0; position: sticky; top: 0; z-index: 10; }
.loja-topo .loja-container { display: flex; align-items: center; justify-content: space-between; }
.loja-marca img { height: 38px; width: auto; display: block; }
.loja-marca-wrap { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.loja-cobrand { display: inline-flex; align-items: center; gap: .35rem; padding-left: .75rem; border-left: 1px solid #e7ebf3; }
.loja-cobrand small { color: #9aa6b8; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cobrand-logo { display: block; height: 26px; width: auto; }
.loja-nav { display: flex; align-items: center; gap: 1.25rem; }
.loja-nav a { color: #2a2f45; text-decoration: none; font-weight: 600; font-size: .95rem; }
.loja-nav a:hover { color: var(--cor-secundaria); }
.loja-conta { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .35rem .35rem .7rem; background: #eef2fb; border: 1px solid #e0e7f5; border-radius: 999px; font-size: .85rem; color: #46506a; }
.loja-conta .conta-email { font-weight: 600; }
.loja-conta .conta-sair { background: #fff; border: 1px solid #d8def0; color: var(--cor-primaria) !important; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.loja-conta .conta-sair:hover { background: var(--cor-primaria); color: #fff !important; }
.btn-sm {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: #fff !important; padding: .5rem 1.1rem; border-radius: 9px;
}

.loja-banner { width: 100%; height: 210px; flex: 0 0 auto; overflow: hidden; background: #eef2fb; display: flex; align-items: center; justify-content: center; }
.loja-banner img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
@media (max-width: 820px) { .loja-banner { display: none; } }   /* banner só no desktop */

/* Aviso (ex.: usuários de Mac) — barra + modal, editável no painel */
.aviso-mac { display: flex; align-items: center; gap: .5rem; background: #fff8e6; border: 1px solid #ffe2a8; border-radius: 12px; padding: .7rem .9rem; margin: 0 0 1.1rem; color: #7a5b12; font-size: .84rem; line-height: 1.45; }
.aviso-mac .aviso-ic { font-size: 1rem; line-height: 1; flex: 0 0 auto; }
@media (min-width: 821px) { .aviso-mac p { white-space: nowrap; } }
.aviso-mac p { margin: 0; }
.aviso-mac-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--cor-primaria); cursor: pointer; text-decoration: underline; }
.modal-box.aviso-box { width: min(460px, 100%); height: auto; max-height: 90vh; text-align: center; padding: 2rem 1.8rem; overflow-y: auto; }
.aviso-modal-ic { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; border: 3px solid #cfe0ef; color: #9bb6cf; font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.aviso-box h3 { color: #3a4657; font-size: 1.25rem; margin: 0 0 1rem; line-height: 1.3; }
.aviso-modal-corpo { color: #51607a; text-align: left; font-size: .95rem; }
.aviso-modal-corpo p { margin: 0 0 .8rem; }
.aviso-modal-foot { display: flex; gap: .8rem; justify-content: center; margin-top: 1.4rem; }
.aviso-modal-foot .btn-sm { min-width: 120px; text-align: center; }

.loja-main { flex: 1; padding: 2.5rem 0 3.5rem; }

.loja-hero { text-align: center; margin-bottom: 2.5rem; }
.loja-hero .hero-tag {
    display: inline-block; background: rgba(var(--cor-secundaria-rgb,0,96,248),.1); color: var(--cor-secundaria);
    padding: .3rem .9rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem;
}
.loja-hero h1 { color: var(--cor-primaria); font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; margin: 0 0 .5rem; }
.loja-hero p { color: #51607a; margin: 0; font-size: 1.05rem; }

.grupo { margin-bottom: 2.5rem; }
.grupo-titulo {
    color: #2a2f45; font-size: 1.35rem; margin: 0 0 1.1rem; padding-bottom: .5rem;
    border-bottom: 2px solid #e7ebf3;
}

.produtos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }

.produto-card {
    position: relative; background: #fff; border: 1px solid #e7ebf3; border-radius: 14px;
    padding: 1.4rem 1.25rem; display: flex; flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.produto-card:hover { box-shadow: 0 12px 28px rgba(0,0,64,.1); transform: translateY(-3px); }
.badge-cert {
    position: absolute; top: 1rem; right: 1rem; background: var(--cor-primaria); color: #fff;
    font-size: .65rem; font-weight: 700; letter-spacing: .5px; padding: .2rem .55rem; border-radius: 6px;
}
.produto-card h3 { font-size: 1.02rem; margin: 0 1.5rem .35rem 0; color: #1f2536; line-height: 1.3; }
.produto-desc { color: #8a97a8; font-size: .82rem; margin: 0 0 1rem; flex: 1; }
.produto-preco { color: var(--cor-primaria); font-size: 1.5rem; font-weight: 800; margin: .25rem 0 1rem; }
.btn-comprar { text-align: center; padding: .7rem 1rem; font-size: .95rem; }

.loja-aviso { background: #fff; border: 1px dashed #c7d0e0; border-radius: 12px; padding: 2rem; text-align: center; color: #51607a; }

.loja-rodape { background: var(--cor-primaria); padding: 2rem 0 1.2rem; color: rgba(255,255,255,.72); font-size: .8rem; line-height: 1.5; }
.loja-rodape .rodape-top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.2rem; }
.rodape-marca { text-align: left; }
.rodape-marca .rodape-logo { height: 34px; width: auto; display: block; margin-bottom: .6rem; }
.rodape-marca .rodape-tag { margin: 0 0 .5rem; color: rgba(255,255,255,.9); font-weight: 600; font-size: .82rem; }
.rodape-marca .rodape-empresa { margin: 0; color: rgba(255,255,255,.7); font-size: .78rem; }
.rodape-cadeia { text-align: center; }
.rodape-cadeia .rc-tt { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.6); margin-bottom: .5rem; }
.rodape-cadeia .rc-card { background: transparent; padding: 0; display: inline-flex; align-items: center; gap: 1.5rem; }
.rodape-cadeia .rc-selos img { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .88; transition: opacity .15s; }
.rodape-cadeia .rc-selos img[alt*="Receita"] { height: 30px; }
.rodape-cadeia .rc-selos img:hover { opacity: 1; }
@media (max-width: 420px) { .rodape-cadeia .rc-card { gap: 1rem; } .rodape-cadeia .rc-selos img { height: 22px; } }
.loja-rodape .rodape-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); padding-top: .9rem; }
.loja-rodape .rodape-legal a { color: #fff; text-decoration: none; }
.loja-rodape .rodape-legal a:hover { text-decoration: underline; }
.loja-rodape .rodape-legal span { margin: 0 .4rem; opacity: .5; }
.loja-rodape .rodape-bar small { color: rgba(255,255,255,.6); font-size: .76rem; }
.loja-rodape .rodape-bar small a { color: rgba(255,255,255,.85); text-decoration: none; }
.loja-rodape .rodape-bar small a:hover { text-decoration: underline; }
@media (max-width: 680px) {
    .loja-rodape { text-align: center; }
    .loja-rodape .rodape-top { flex-direction: column; align-items: center; gap: 1.3rem; }
    .rodape-marca { text-align: center; }
    .rodape-marca .rodape-logo { margin: 0 auto .6rem; }
    .loja-rodape .rodape-bar { flex-direction: column; text-align: center; }
}

.btn-sm.ghost { background: #fff; color: var(--cor-primaria) !important; border: 1px solid #d8def0; }

/* ─── Tela 1: seleção ─── */
.banner {
    background: linear-gradient(120deg, var(--cor-primaria), var(--cor-secundaria) 70%, var(--cor-realce));
    border-radius: 16px; color: #fff; padding: 2.2rem 2rem; margin-bottom: 1.8rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.banner-txt p { margin: 0; font-size: clamp(1.1rem, 2.5vw, 1.6rem); line-height: 1.35; }
.banner-card { font-size: 3.2rem; opacity: .9; }

.vitrine-intro { color: var(--cor-secundaria); font-weight: 700; margin: 0 0 1rem; }

.seletores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; background: #fff; border: 1px solid #e7ebf3; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.seletores label { display: flex; flex-direction: column; gap: .3rem; }
.seletores span { font-weight: 700; font-size: .85rem; color: #2a2f45; }
.seletores select { padding: .55rem .6rem; border: 1px solid #d8def0; border-radius: 8px; font-size: .95rem; background: #fff; color: #2a2f45; cursor: pointer; }

.vitrine-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.4rem; align-items: start; }
@media (max-width: 820px) { .vitrine-grid { grid-template-columns: 1fr; } .seletores { grid-template-columns: 1fr; } }

.vitrine-lista { background: #fff; border: 1px solid #e7ebf3; border-radius: 12px; overflow: hidden; }
.lista-head { display: flex; justify-content: space-between; padding: .9rem 1.2rem; font-weight: 700; color: #51607a; border-bottom: 1px solid #eef1f6; }
.lista-vazia { padding: 2rem 1.2rem; text-align: center; color: #8a97a8; }
.prod-row { display: flex; align-items: center; gap: .8rem; padding: .95rem 1.2rem; border-bottom: 1px solid #f0f3f8; cursor: pointer; transition: background .12s ease; }
.prod-row:last-child { border-bottom: 0; }
.prod-row:hover { background: #f7f9fd; }
.prod-row.sel { background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria)); color: #fff; }
.prod-row input { accent-color: var(--cor-secundaria); width: 18px; height: 18px; }
.prod-row.sel input { accent-color: #fff; }
.prod-nome { flex: 1; font-weight: 600; }
.prod-valor { font-weight: 700; }

.vitrine-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 80px; }
.card-resumo, .card-cupom { background: #fff; border: 1px solid #e7ebf3; border-radius: 12px; padding: 1.2rem; }
.card-resumo h3, .card-cupom h3 { margin: 0 0 .9rem; color: var(--cor-secundaria); font-size: 1rem; }
.resumo-linha { padding: .35rem 0; color: #51607a; font-size: .92rem; }
.resumo-linha strong { color: #2a2f45; }
.cupom-row { display: flex; gap: .5rem; }
.cupom-row input { flex: 1; padding: .55rem .6rem; border: 1px solid #d8def0; border-radius: 8px; }
.cupom-row button { background: var(--cor-secundaria); color: #fff; border: 0; border-radius: 8px; padding: .55rem 1rem; font-weight: 700; cursor: pointer; }
.cupom-row input:disabled, .cupom-row button:disabled { opacity: .55; cursor: not-allowed; }

.btn-contratar { text-align: center; padding: .95rem 1rem; font-size: 1.05rem; }
.btn.disabled { opacity: .5; pointer-events: none; }

.em-construcao { text-align: center; padding: 3rem 1rem; }
.em-construcao h1 { color: var(--cor-primaria); }
.em-construcao p { color: #51607a; margin-bottom: 1.5rem; }

/* ════════════════ Seletor guiado (UX) ════════════════ */
.guia-topo { text-align: center; margin-bottom: 1.5rem; }
.guia-topo h1 { color: var(--cor-primaria); font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 .4rem; }
.guia-topo p { color: #51607a; margin: 0; }

.guia-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .guia-wrap { grid-template-columns: 1fr; } }

.passo { background: #fff; border: 1px solid #e7ebf3; border-radius: 14px; padding: 1.3rem 1.4rem; margin-bottom: 1rem; }
.passo h2 { font-size: 1.1rem; margin: 0 0 1rem; color: #1f2536; display: flex; align-items: center; gap: .6rem; }
.passo .num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cor-primaria); color: #fff; font-size: .9rem; flex: none; }

.opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.opcoes.midia { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
/* Exatamente 4 opções → 2×2 (em vez de 3 + 1 sobrando) */
.opcoes:has(> .opcao:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }

.opcao { position: relative; text-align: left; background: #fff; border: 2px solid #e3e8f2; border-radius: 12px; padding: .75rem .95rem; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; column-gap: .85rem; row-gap: .1rem; align-items: center; transition: border-color .12s, box-shadow .12s, transform .12s; font: inherit; color: inherit; }
.opcao:hover { border-color: var(--cor-secundaria); box-shadow: 0 6px 16px rgba(0, 0, 80, .08); transform: translateY(-2px); }
.opcao.sel { border-color: var(--cor-secundaria); background: linear-gradient(135deg, rgba(var(--cor-primaria-rgb,0,0,160), .07), rgba(var(--cor-secundaria-rgb,0,96,248), .07)); box-shadow: 0 0 0 3px rgba(var(--cor-secundaria-rgb,0,96,248), .18); }
.opcao.op-mini { display: flex; flex-direction: row; align-items: center; justify-content: center; padding: .7rem; }
.op-ic { grid-column: 1; grid-row: 1 / -1; align-self: center; font-size: 1.7rem; }
.op-tt { grid-column: 2; font-weight: 700; color: #1f2536; }
.op-sub { grid-column: 2; font-size: .82rem; color: #6b788c; line-height: 1.3; }
.op-preco { grid-column: 3; grid-row: 1 / -1; align-self: center; font-size: 1.25rem; font-weight: 800; color: var(--cor-primaria); white-space: nowrap; }

/* Passo 4 (mídia): ícone ao lado do TÍTULO (cabeçalho), texto/preço empilhados abaixo */
.opcoes.midia .opcao { display: block; padding: .95rem 1.05rem; }
.opcoes.midia .op-corpo { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.op-head { display: flex; align-items: center; gap: .6rem; }
.opcoes.midia .op-ic { font-size: 1.7rem; flex: 0 0 auto; align-self: center; }
.opcoes.midia .op-tt { font-size: 1.05rem; }
.opcoes.midia .op-preco { margin-top: .2rem; font-size: 1.5rem; }
.op-det { font-size: .75rem; color: #9aa6b8; }

/* ════════════════ Checkout — Tela 2 (consulta prévia) ════════════════ */
.stepper { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.6rem; counter-reset: s; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: .5rem; color: #9aa6b8; font-weight: 600; font-size: .9rem; }
.stepper li .n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #e3e8f2; color: #6b788c; font-size: .8rem; }
.stepper li:not(:last-child)::after { content: ''; width: 26px; height: 2px; background: #e3e8f2; margin: 0 .25rem; }
.stepper li.done { color: var(--cor-primaria); }
.stepper li.done .n { background: #15a34a; color: #fff; }
.stepper li.active { color: var(--cor-primaria); }
.stepper li.active .n { background: var(--cor-primaria); color: #fff; animation: stepPulse 1.6s ease-in-out infinite; }
@keyframes stepPulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--cor-primaria-rgb,0,0,160), .45); }
    70%  { box-shadow: 0 0 0 10px rgba(var(--cor-primaria-rgb,0,0,160), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--cor-primaria-rgb,0,0,160), 0); }
}
@media (prefers-reduced-motion: reduce) { .stepper li.active .n { animation: none; box-shadow: 0 0 0 4px rgba(var(--cor-primaria-rgb,0,0,160),.12); } }
@media (max-width: 600px) {
    .stepper { gap: .4rem; justify-content: center; flex-wrap: nowrap; }
    .stepper li { font-size: .85rem; }
    .stepper li:not(.active) .lbl { display: none; }   /* mobile: só o nome do step atual */
    .stepper li:not(:last-child)::after { width: 14px; margin: 0 .1rem; }
}

.checkout-grid { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 760px) { .checkout-grid { grid-template-columns: 1fr; } }

.resumo-prod { position: relative; background: #fff; border: 1px solid #e7ebf3; border-radius: 14px; padding: 1.5rem 1.3rem; text-align: center; }
.rp-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--cor-secundaria); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.rp-ic { font-size: 2.6rem; margin: .3rem 0 .5rem; }
.resumo-prod h3 { margin: 0 0 .25rem; font-size: 1.05rem; color: #1f2536; }
.rp-meta { color: #6b788c; font-size: .9rem; margin: 0; }
.rp-midia { color: #8a97a8; font-size: .82rem; margin: .2rem 0 0; }
.rp-preco { color: var(--cor-primaria); font-size: 1.7rem; font-weight: 800; margin: .7rem 0; }
.rp-voltar { font-size: .85rem; color: var(--cor-secundaria); text-decoration: none; }
.rp-voltar:hover { text-decoration: underline; }

/* Mobile: card do produto compacto (linha única: ícone + nome + preço) */
@media (max-width: 760px) {
    .resumo-prod { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; text-align: left; padding: .9rem 1rem; }
    .resumo-prod .rp-badge { display: none; }
    .resumo-prod .rp-ic { font-size: 1.9rem; margin: 0; }
    .resumo-prod h3 { flex: 1; min-width: 0; font-size: 1rem; margin: 0; }
    .resumo-prod .rp-preco { font-size: 1.3rem; margin: 0; white-space: nowrap; }
    .resumo-prod .rp-meta { order: 1; width: 100%; margin: .1rem 0 0 2.7rem; font-size: .82rem; }
    .resumo-prod .rp-midia { display: none; }
    .resumo-prod .rp-voltar { order: 2; width: 100%; margin: .4rem 0 0 2.7rem; }
}

.checkout-main h1 { color: var(--cor-primaria); font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0 0 .4rem; }
.checkout-main .sub { color: #51607a; margin: 0 0 1.3rem; max-width: 620px; }

.form-card { background: #fff; border: 1px solid #e7ebf3; border-radius: 14px; padding: 1.5rem; max-width: 520px; }
.campo { display: block; margin-bottom: 1rem; }
.campo span { display: block; font-weight: 700; font-size: .85rem; color: #2a2f45; margin-bottom: .35rem; }
.campo input { width: 100%; padding: .8rem .9rem; border: 1px solid #d8def0; border-radius: 10px; font-size: 1.05rem; letter-spacing: .5px; }
.campo input:focus { outline: none; border-color: var(--cor-secundaria); box-shadow: 0 0 0 3px rgba(var(--cor-secundaria-rgb,0,96,248), .12); }
.btn-validar { width: 100%; padding: .95rem 1rem; font-size: 1.05rem; margin-top: .3rem; }
.btn-validar:disabled { opacity: .6; pointer-events: none; }
.form-erro { color: #c0392b; font-size: .9rem; margin: .8rem 0 0; }
/* Erro inline por campo (validação ao sair do campo) */
.campo input.inp-erro { border-color: #e0442b; box-shadow: 0 0 0 3px rgba(224, 68, 43, .12); }
.campo-erro-msg { color: #c0392b; font-size: .8rem; margin-top: .25rem; }
/* Alerta "escolha uma forma de pagamento" — bem destacado, com mãozinha apontando pros cards */
.op-aviso { display: flex; align-items: center; gap: .55rem; background: #fdecea; color: #a11d2e; border: 1.5px solid #f0a9b3; border-left: 5px solid #e0442b; border-radius: 10px; padding: .85rem 1rem; font-size: 1rem; font-weight: 700; margin: .8rem 0 0; box-shadow: 0 6px 18px rgba(224, 68, 43, .16); animation: avisoEntra .35s ease, avisoPulsa 1.1s ease .35s 2; }
.op-aviso[hidden] { display: none; }
.op-aviso-ic { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; animation: avisoAponta 1s ease infinite; }
@keyframes avisoEntra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes avisoPulsa { 0%, 100% { box-shadow: 0 6px 18px rgba(224, 68, 43, .16); } 50% { box-shadow: 0 6px 22px rgba(224, 68, 43, .40); } }
@keyframes avisoAponta { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .op-aviso, .op-aviso-ic { animation: none; } }

.resultado { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.3rem; padding: 1.3rem; border-radius: 14px; max-width: 620px; }
.resultado[hidden] { display: none; }
.resultado .res-ico { font-size: 1.8rem; line-height: 1; }
.resultado p { margin: .3rem 0; }
.resultado.okbox { background: #eafaf0; border: 1px solid #b8e6c8; color: #1c5f37; }
.resultado.errobox { background: #fdecea; border: 1px solid #f5b7b1; color: #922b21; }
.resultado small { opacity: .85; }
.resultado .bio { font-size: .88rem; }
.resultado .bio.ok { color: #15803d; font-weight: 600; }
.res-continuar { margin-left: auto; align-self: center; padding: .8rem 1.6rem; white-space: nowrap; }
@media (max-width: 520px) { .resultado { flex-direction: column; } .res-continuar { margin-left: 0; width: 100%; text-align: center; } }
.res-corpo { flex: 1; min-width: 0; }
.resultado .bio.warn { color: #92610b; font-weight: 600; }
.cnh-gate { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed #b8e6c8; }
.cnh-q { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .2rem; color: #1c5f37; }
.cnh-hint { display: block; font-size: .78rem; opacity: .8; margin-bottom: .55rem; }
.cnh-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-cnh { padding: .55rem 1.1rem; border-radius: 9px; font-weight: 700; font-size: .9rem; cursor: pointer; background: #fff; border: 1.5px solid #cfd8e6; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn-cnh.sim { color: #15803d; border-color: #9ad3ae; }
.btn-cnh.sim:hover, .btn-cnh.sim.sel { background: #eafaf0; border-color: #15803d; box-shadow: 0 0 0 3px rgba(21, 128, 61, .12); }
.btn-cnh.nao { color: #922b21; border-color: #e6a9a3; }
.btn-cnh.nao:hover, .btn-cnh.nao.sel { background: #fdf3f2; border-color: #922b21; box-shadow: 0 0 0 3px rgba(146, 43, 33, .1); }
.cnh-acao { margin-top: .7rem; }
.btn-voltar-pres { display: inline-block; font-weight: 700; color: var(--cor-primaria); text-decoration: none; padding: .55rem 0; }
.btn-voltar-pres:hover { text-decoration: underline; }

/* Tela 3 — identificação */
.form-card { max-width: 620px; }
.secao-titulo { font-size: 1rem; color: var(--cor-secundaria); margin: 1.2rem 0 .8rem; padding-bottom: .4rem; border-bottom: 1px solid #eef1f6; }
.secao-titulo:first-child { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-cep { display: grid; grid-template-columns: 130px 1fr 100px; gap: 0 1rem; }
.grid-cidade { display: grid; grid-template-columns: 1fr 80px; gap: 0 1rem; }
/* Doc curto (CNPJ/CPF) à esquerda + texto longo (razão/nome) ocupando o resto — evita fonte encolhida */
.grid-doc { display: grid; grid-template-columns: 200px 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .grid2, .grid-cep, .grid-cidade, .grid-doc { grid-template-columns: 1fr; } }
.campo input[readonly] { background: #f1f4f9; color: #6b788c; cursor: not-allowed; }
.rf-ok { color: #15803d; font-weight: 600; font-size: .72rem; margin-left: .35rem; }

/* ════════════════ Área de Agendamento / Meus Pedidos ════════════════ */
.acesso-wrap { max-width: 460px; margin: 1rem auto; }
.acesso-card { background: #fff; border: 1px solid #e7ebf3; border-radius: 16px; padding: 2rem 1.8rem; text-align: center; box-shadow: 0 12px 30px rgba(0,0,64,.06); }
.acesso-card .ac-emoji { font-size: 2.4rem; }
.acesso-card h1 { color: var(--cor-primaria); font-size: 1.5rem; margin: .5rem 0 .6rem; }
.acesso-card .ac-sub { color: #51607a; margin: 0 0 1.3rem; font-size: .95rem; }
.acesso-card .form-card { text-align: left; box-shadow: none; border: 0; padding: 0; }
.ac-erro { background: #fdecea; color: #922b21; border-radius: 8px; padding: .6rem .8rem; font-size: .88rem; margin: 0 0 1rem; }
.ac-dica { color: #8a97a8; font-size: .88rem; }
.acesso-card.sucesso p { color: #51607a; }

.mp-topo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.mp-topo h1 { color: var(--cor-primaria); margin: 0; font-size: 1.6rem; }
.mp-sub { color: #8a97a8; margin: .2rem 0 0; font-size: .9rem; }
.mp-sub a { color: var(--cor-secundaria); }
.mp-lista { display: flex; flex-direction: column; gap: 1rem; }
.mp-card { background: #fff; border: 1px solid #e7ebf3; border-radius: 14px; padding: 1.2rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.mp-num { font-size: .8rem; color: #8a97a8; }
.mp-info h3 { margin: .15rem 0; font-size: 1.05rem; color: #1f2536; }
.mp-valor { font-weight: 800; color: var(--cor-primaria); }
.mp-agok { color: #15803d; font-size: .9rem; margin: .5rem 0 0; }
.mp-agpend { color: #b7791f; font-size: .9rem; margin: .5rem 0 0; }
.mp-acoes { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-sm.danger { background: #fff; color: #c0392b !important; border: 1px solid #f0b7b1; }

/* Modal agendador — altura pelo conteúdo (mais específico que .modal-box) */
.modal-box.agenda-box { width: min(500px, 100%); height: auto; max-height: 90vh; }
.agenda-body { padding: .9rem 1rem; overflow-y: auto; }
.ag-horarios { margin-top: .2rem; }
.ag-loading { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 2.2rem 1rem; color: #8a97a8; font-size: .92rem; }
.ag-spin { width: 20px; height: 20px; border: 2.5px solid #e3e8f2; border-top-color: var(--cor-secundaria); border-radius: 50%; animation: agSpin .6s linear infinite; display: inline-block; }

/* Carrossel de dias por semana — setas AO LADO, sem sobrepor */
.ag-dias-wrap { display: flex; align-items: center; gap: .35rem; }
.ag-nav { flex: 0 0 auto; width: 26px; height: 44px; border-radius: 8px; border: 1px solid #d8def0; background: #fff; color: var(--cor-primaria); font-size: 1.15rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.ag-nav:hover:not(:disabled) { border-color: var(--cor-secundaria); }
.ag-nav:disabled { opacity: .3; cursor: default; }

/* Card do local de atendimento (amigável, no lugar do nome jurídico) */
.ag-local-card { display: flex; align-items: flex-start; gap: .55rem; background: #f4f7fd; border: 1px solid #e3e8f2; border-radius: 10px; padding: .6rem .8rem; margin-bottom: .3rem; }
.ag-local-card .lc-ic { font-size: 1.05rem; line-height: 1.3; }
.ag-local-card .lc-txt { display: flex; flex-direction: column; gap: .05rem; }
.ag-local-card .lc-txt strong { color: #1f2536; font-size: .92rem; }
.ag-local-card .lc-txt span { color: #6b788c; font-size: .78rem; line-height: 1.35; }

/* Passo (1. dia / 2. horário) */
.ag-passo { font-size: .8rem; font-weight: 700; color: var(--cor-secundaria); margin: 1rem 0 .55rem; }

/* Chips de dia — rolagem horizontal */
.ag-dias { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; min-width: 0; }
.ag-dia-chip { display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .4rem .1rem; border: 1.5px solid #d8def0; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: #2a2f45; transition: border-color .12s, background .12s; }
.ag-dia-chip:hover { border-color: var(--cor-secundaria); }
.ag-dia-chip .dc-dow { font-size: .6rem; text-transform: uppercase; letter-spacing: .2px; color: #8a97a8; font-weight: 700; }
.ag-dia-chip .dc-dia { font-size: .8rem; font-weight: 800; line-height: 1.1; }
.ag-dia-chip.sel { background: var(--cor-secundaria); border-color: var(--cor-secundaria); color: #fff; }
.ag-dia-chip.sel .dc-dow { color: rgba(255,255,255,.85); }
@media (max-width: 380px) { .ag-dia-chip .dc-dia { font-size: .72rem; } .ag-dias { gap: .22rem; } }

/* Grupos manhã/tarde */
.ag-periodo { margin-bottom: .9rem; }
.ag-periodo:last-child { margin-bottom: 0; }
.ag-periodo-tt { font-size: .8rem; font-weight: 700; color: #51607a; margin: 0 0 .5rem; }

/* Passo 2/3: período → hora → minutos */
@keyframes agSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ag-min.anim, .ag-horas.anim, .ag-dias.anim { animation: agSlide .18s ease; }

.ag-periodos { display: inline-flex; background: #eef1f8; border-radius: 11px; padding: .28rem; gap: .28rem; margin-bottom: .9rem; }
.ag-per { border: 0; background: transparent; padding: .5rem 1.1rem; border-radius: 8px; font: inherit; font-size: .92rem; font-weight: 700; color: #51607a; cursor: pointer; transition: background .12s, color .12s; }
.ag-per:hover { color: var(--cor-primaria); }
.ag-per.sel { background: #fff; color: var(--cor-primaria); box-shadow: 0 2px 6px rgba(0,0,40,.12); }

.ag-horas-grupo { margin-bottom: .8rem; }
.ag-horas { display: flex; flex-wrap: wrap; gap: .5rem; }
.ag-hora { background: #fff; border: 1.5px solid #d8def0; border-radius: 9px; padding: .5rem .9rem; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 700; color: #2a2f45; }
.ag-hora:hover { border-color: var(--cor-secundaria); }
.ag-hora.sel { background: var(--cor-secundaria); color: #fff; border-color: var(--cor-secundaria); }
.ag-min { margin-top: .7rem; padding-top: .8rem; border-top: 1px dashed #e3e8f2; }
.ag-min[hidden] { display: none; }
.ag-min-tt { font-size: .8rem; font-weight: 700; color: var(--cor-primaria); margin: 0 0 .5rem; }
/* Mobile: chips de hora/minuto mais compactos p/ caberem na mesma linha */
@media (max-width: 560px) {
    .ag-horas, .ag-slots { gap: .35rem; }
    .ag-hora, .ag-slot { padding: .45rem .55rem; font-size: .88rem; }
}
.ag-slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.ag-slot { background: #fff; border: 1.5px solid #d8def0; border-radius: 8px; padding: .5rem .8rem; cursor: pointer; font: inherit; font-size: .9rem; color: #2a2f45; }
.ag-slot:hover { border-color: var(--cor-secundaria); }
.ag-slot.sel { background: var(--cor-secundaria); color: #fff; border-color: var(--cor-secundaria); }
.ag-escolhido { flex: 1; color: #2a2f45; font-weight: 600; font-size: .9rem; }
.ag-check { color: #6b788c; font-weight: 600; animation: agPulse 1s ease-in-out infinite; }
@keyframes agPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.ag-indisp { color: #c0392b; font-weight: 600; font-size: .88rem; }
.ag-slot.indisp { opacity: .45; text-decoration: line-through; border-style: dashed; cursor: not-allowed; pointer-events: none; }
#ag-confirmar:disabled { opacity: .5; pointer-events: none; }
.form-ident .btn-validar { margin-top: 1rem; }

/* Tela 4 — pagamento */
.pay-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.pay-grid .checkout-main { min-width: 0; }
.pay-grid .form-card, .pay-grid .checkout-main .sub { max-width: none; }
@media (max-width: 820px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 80px; }
@media (max-width: 820px) { .pay-side { position: static; } }
.opcao.forma { cursor: pointer; }
.formas { margin-bottom: .5rem; }
.check { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 1rem; cursor: pointer; font-weight: 600; color: #2a2f45; }
.check input { width: 18px; height: 18px; accent-color: var(--cor-secundaria); }
.nf-campos { margin-top: .4rem; padding-top: .8rem; border-top: 1px dashed #e3e8f2; }

/* ════════════════ Tela 5 — Conclusão (hub do pedido) ════════════════ */
.sucesso-topo { text-align: center; margin-bottom: 1.5rem; }
.sucesso-topo .suc-ico { font-size: 3rem; }
.sucesso-topo h1 { color: #15803d; font-size: clamp(1.5rem, 4vw, 2rem); margin: .3rem 0 .3rem; }
.sucesso-topo p { color: #51607a; margin: 0; }

.conc-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
/* Tabela completa do card de sucesso: escondida por padrão (desktop), aparece no mobile. */
.card-sucesso .cs-detalhes { display: none; text-align: left; margin-bottom: 1rem; }
.card-sucesso .cs-detalhes .cp-linha { padding: .3rem 0; }
.card-sucesso .cs-detalhes .cp-total { margin-top: .3rem; }
@media (max-width: 760px) {
    .conc-grid { grid-template-columns: 1fr; }
    /* Mobile: o card de sucesso vira o ÚNICO bloco no topo, com a tabela completa;
       esconde os blocos duplicados (pedido + cards de ação online). */
    .conc-side { order: -1; }
    .conc-main .card-pedido, #card-pgto, #card-agenda { display: none; }
    .card-sucesso .cs-sub, .card-sucesso .cs-prod { display: none; }   /* compacto some */
    .card-sucesso .cs-detalhes { display: block; }                     /* tabela aparece */
}
.conc-main { display: flex; flex-direction: column; gap: 1rem; }

.card-pedido { background: #fff; border: 1px solid #e7ebf3; border-radius: 14px; padding: 1.2rem 1.3rem; }
.cp-linha { display: flex; justify-content: space-between; padding: .35rem 0; color: #51607a; font-size: .95rem; }
.cp-linha strong { color: #1f2536; }
.cp-total { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; padding-top: .6rem; border-top: 1px solid #eef1f6; }
.cp-total strong { color: var(--cor-primaria); font-size: 1.4rem; font-weight: 800; }

.acao-card { background: #fff; border: 1px solid #e7ebf3; border-radius: 14px; padding: 1.3rem; }
.ac-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.ac-head h3 { margin: 0; font-size: 1.05rem; color: #1f2536; }
.ac-desc { color: #6b788c; font-size: .9rem; margin: 0 0 1rem; }
.acao-card .btn { display: inline-block; }
.local-box { display: flex; flex-direction: column; gap: .4rem; background: #f6f8fc; border: 1px solid #e7ebf3; border-radius: 10px; padding: .9rem 1rem; }
.local-box strong { color: #1f2536; font-size: 1rem; }
.local-box span { color: #4a5568; font-size: .9rem; }

.badge-status { font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; white-space: nowrap; }
.badge-status.pendente { background: #fff4e0; color: #b7791f; }
.badge-status.ok { background: #eafaf0; color: #15803d; }

.conc-ajuda { color: #8a97a8; font-size: .88rem; text-align: center; margin-top: .5rem; }
.conc-side .card-resumo { text-align: center; }

/* Card lateral de sucesso (confirmação + próximos passos) */
.card-sucesso { border-color: #b8e6c8; }
.card-sucesso .cs-head { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: .25rem; }
.card-sucesso .cs-check { font-size: 1.7rem; line-height: 1; }
.card-sucesso .cs-tit { color: #15803d !important; font-size: 1.15rem; margin: 0; }
.card-sucesso .cs-sub { color: #6b788c; font-size: .82rem; margin: 0 0 1rem; }
.card-sucesso .cs-prod { border-top: 1px solid #eef1f6; border-bottom: 1px solid #eef1f6; padding: .9rem 0; margin-bottom: 1rem; }
.card-sucesso .cs-prod .cs-ic { font-size: 1.6rem; }
.card-sucesso .cs-prod strong { display: block; color: #1f2536; font-size: .95rem; margin: .25rem 0; }
.card-sucesso .cs-prod .rp-preco { margin: 0; font-size: 1.4rem; }
.card-sucesso .cs-passos { text-align: left; margin-bottom: 1rem; }
.card-sucesso .cs-passos-tt { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: #8a97a8; font-weight: 700; margin: 0 0 .5rem; }
.card-sucesso .cs-passo { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; padding: .6rem .7rem; border: 1px solid #dbe4f3; border-radius: 9px; background: #f4f7fd; margin-bottom: .5rem; font: inherit; font-weight: 700; color: #2a2f45; font-size: .92rem; cursor: pointer; text-decoration: none; transition: border-color .12s, background .12s, transform .1s; }
.card-sucesso .cs-passo .cs-pic { font-size: 1.05rem; }
.card-sucesso .cs-passo:not(.cs-passo-info):hover { border-color: var(--cor-secundaria); background: #eef3fd; transform: translateY(-1px); }
.card-sucesso .cs-passo:not(.done):not(.cs-passo-info)::after { content: '›'; margin-left: auto; color: var(--cor-secundaria); font-weight: 800; font-size: 1.15rem; }
.card-sucesso .cs-passo-info { cursor: default; }
.card-sucesso .cs-passo.done { background: #eafaf0; color: #15803d; border-color: #b8e6c8; }
.card-sucesso .cs-passo.done span:last-child { text-decoration: line-through; opacity: .8; }
.card-sucesso .cs-passo.done::after { content: '✓'; margin-left: auto; font-weight: 800; }
.card-sucesso .cs-agendado { text-align: left; background: #eafaf0; color: #15803d; border: 1px solid #b8e6c8; border-radius: 9px; padding: .5rem .7rem; margin-bottom: .5rem; font-size: .85rem; }

/* Modal agenda */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 32, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 14px; width: min(900px, 100%); height: min(80vh, 720px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 40, .4); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.2rem; border-bottom: 1px solid #eef1f6; }
.modal-x { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: #6b788c; }
.modal-box iframe { flex: 1; width: 100%; border: 0; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; padding: .8rem 1.2rem; border-top: 1px solid #eef1f6; font-size: .9rem; color: #6b788c; }
.btn-sm.btn { padding: .5rem 1.1rem; }
@media (max-width: 760px) { .modal-box { height: 92vh; width: 100%; } }
.op-badge { position: absolute; top: -10px; right: 10px; background: var(--cor-secundaria); color: #fff; font-size: .65rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; letter-spacing: .3px; }
.op-badge.ok { background: #15a34a; }
.op-load { color: #8a97a8; padding: 1rem; }

.guia-side { position: sticky; top: 80px; }
@media (max-width: 820px) { .guia-side { display: none; } }
.card-resumo .resumo { list-style: none; margin: 0 0 1rem; padding: 0; }
.card-resumo .resumo li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid #f0f3f8; font-size: .92rem; }
.card-resumo .resumo li span { color: #6b788c; }
.card-resumo .resumo li strong { color: #1f2536; text-align: right; }
.resumo-preco { display: flex; justify-content: space-between; align-items: center; margin: .2rem 0 1rem; padding-top: .6rem; }
.resumo-preco[hidden] { display: none; }   /* o display:flex acima anula o [hidden] do navegador — restaura */
.resumo-preco span { color: #6b788c; }
.resumo-preco strong { font-size: 1.6rem; font-weight: 800; color: var(--cor-primaria); }
.btn-continuar { display: block; text-align: center; padding: .95rem 1rem; font-size: 1.05rem; }

.barra-mobile { display: none; }
@media (max-width: 820px) {
    .barra-mobile { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid #e3e8f2; box-shadow: 0 -4px 16px rgba(0, 0, 40, .1); padding: .7rem 1rem; align-items: center; gap: 1rem; }
    .barra-mobile[hidden] { display: none; }   /* respeita o atributo hidden mesmo com o display:flex acima */
    .barra-mobile .bm-info { flex: 1; display: flex; flex-direction: column; }
    .barra-mobile .bm-info small { color: #6b788c; }
    .barra-mobile .bm-info strong { font-size: 1.2rem; color: var(--cor-primaria); }
    .barra-mobile .btn { padding: .7rem 1.3rem; white-space: nowrap; }
    .loja-main { padding-bottom: 5rem; }
}

/* Header compacto no mobile (evita overflow) */
@media (max-width: 600px) {
    .loja-topo { padding: .7rem 0; }
    .loja-topo .loja-container { flex-wrap: nowrap; min-width: 0; }
    .loja-marca { min-width: 0; }
    .loja-marca img { height: 30px; }
    .loja-marca-wrap { gap: .5rem; }
    .loja-cobrand { padding-left: .5rem; gap: .3rem; }
    .loja-cobrand small { font-size: .6rem; }
    .cobrand-logo { height: 20px; width: auto; }
    .loja-nav { gap: .4rem; flex: none; }
    .loja-nav .btn-sm { padding: .45rem .6rem; font-size: .85rem; }
    .loja-nav .lbl { display: none; }   /* só ícone */

    /* Cards em coluna única — sem overflow */
    .opcoes, .opcoes.midia, .opcoes:has(> .opcao:nth-child(4):last-child) { grid-template-columns: 1fr; }
    /* Mídia: ícone na lateral, compacto */
    .opcoes.midia .opcao { gap: .85rem; padding: .75rem .95rem; }
    .opcoes.midia .op-ic { font-size: 1.7rem; }
    .opcoes.midia .op-tt { font-size: 1rem; }
    .opcoes.midia .op-preco { margin-top: 0; font-size: 1.2rem; }
    .guia-wrap, .guia, .passo, .loja-container, .guia-topo { max-width: 100%; }
    /* Vertical bem enxuto no mobile */
    .loja-main { padding: .8rem 0 5rem; }
    .guia-topo { margin-bottom: .7rem; }
    .guia-topo h1 { font-size: 1.25rem; margin-bottom: .2rem; }
    .guia-topo p { font-size: .88rem; }
    .passo { padding: .85rem .9rem; margin-bottom: .7rem; }
    .passo h2 { font-size: 1rem; margin-bottom: .6rem; }
    .opcoes { gap: .4rem; }
    .opcao { padding: .5rem .7rem; row-gap: 0; }
    .opcao .op-ic { font-size: 1.5rem; }
    .opcao .op-tt { font-size: .95rem; line-height: 1.15; }
    .opcao .op-sub { font-size: .78rem; line-height: 1.2; }
}

/* ════════════════ LGPD — consentimento, cookies, páginas legais ════════════════ */
.consent { display: flex; align-items: flex-start; gap: .6rem; margin: 1.2rem 0 .5rem; font-size: .9rem; color: #51607a; line-height: 1.45; cursor: pointer; }
.consent input { margin-top: .15rem; width: 18px; height: 18px; flex: none; accent-color: var(--cor-secundaria); }
.consent a { color: var(--cor-secundaria); text-decoration: underline; }

.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 720px; margin: 0 auto; background: #1f2536; color: #fff; border-radius: 12px; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 16px 40px rgba(0,0,40,.35); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .85rem; line-height: 1.45; flex: 1; }
.cookie-banner a { color: #9ec1ff; }
.cookie-banner .btn-sm { background: var(--cor-secundaria); color: #fff !important; border: 0; white-space: nowrap; }
@media (max-width: 520px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; } }

.legal { max-width: 760px; margin: 1rem auto; background: #fff; border: 1px solid #e7ebf3; border-radius: 16px; padding: 2rem 2.2rem; color: #3a465c; line-height: 1.6; }
.legal h1 { color: var(--cor-primaria); font-size: 1.7rem; margin: 0 0 .3rem; }
.legal h2 { color: #1f2536; font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
.legal .legal-meta { color: #8a97a8; font-size: .85rem; margin: 0 0 1.2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .3rem 0; }
.legal a { color: var(--cor-secundaria); }
.legal .legal-volta { margin-top: 2rem; }
.legal .legal-volta a { font-weight: 600; text-decoration: none; }
@media (max-width: 600px) { .legal { padding: 1.4rem 1.2rem; } }
