/* ============================================
   PÁGINA DE OFERTAS (js/ofertas.js) — 15/10/2026
   Fundo claro, um cartão por oferta, a mais barata em destaque.
   ============================================ */

#ofertas-screen.active { display: block !important; }
#ofertas-screen {
    background: #f5f6fb; min-height: 100vh; height: 100vh; height: 100dvh;
    overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.of-pagina { max-width: 760px; margin: 0 auto; padding: 22px 16px 48px; }
.of-pagina .home-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.of-pagina .logo-img { height: 52px; width: auto; }

/* ⚠️ O style.css tem regras GLOBAIS de li (fundo cinza, space-between) e de
   h1/h2 do formulário antigo. Aqui tudo é zerado e redefinido. */
.of-pagina li { background: none; padding: 0; margin: 0; border-radius: 0; display: block; }

.of-cabeca { text-align: center; margin-bottom: 18px; }
.of-produto { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; }
.of-cabeca h1 { color: #1e293b; font-size: 1.8rem; font-weight: 800; margin: 6px 0 6px; line-height: 1.2; }
.of-cabeca p { color: #64748b; font-size: .97rem; margin: 0; }

.of-ordem { display: inline-flex; gap: 4px; background: #e8eaf4; border-radius: 99px; padding: 4px; margin-top: 16px; }
.of-ordem button {
    border: none; background: transparent; border-radius: 99px; padding: 8px 16px; cursor: pointer;
    font-family: inherit; font-size: .88rem; font-weight: 600; color: #475569;
}
.of-ordem button.on { background: #fff; color: #3d3d8f; box-shadow: 0 1px 4px rgba(15,23,42,.12); }

.of-lista { display: flex; flex-direction: column; gap: 14px; }

.of-cartao {
    position: relative; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 18px;
    padding: 20px 22px 18px; box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.of-cartao--melhor { border-color: #10b981; box-shadow: 0 8px 24px rgba(16,185,129,.14); }
.of-cartao--escolhida { border-color: #3d3d8f; box-shadow: 0 0 0 3px rgba(61,61,143,.15); }
.of-selo {
    position: absolute; top: -11px; left: 20px; background: #10b981; color: #fff;
    font-size: .74rem; font-weight: 700; padding: 4px 11px; border-radius: 99px; letter-spacing: .02em;
}

.of-topo { display: flex; align-items: center; gap: 14px; }
.of-avatar {
    width: 46px; height: 46px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center;
    background: #eef0fb; color: #3d3d8f; font-weight: 800; font-size: 1rem;
}
.of-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.of-nome strong { color: #1e293b; font-size: 1.08rem; }
.of-nome span { color: #64748b; font-size: .85rem; overflow-wrap: anywhere; }
.of-preco { text-align: right; flex: none; display: flex; flex-direction: column; }
.of-preco strong { color: #1e293b; font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.of-periodo { color: #94a3b8; font-size: .76rem; }
.of-parcelas { color: #047857; font-size: .84rem; font-weight: 600; margin-top: 2px; }

.of-detalhes { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #e2e8f0; }
.of-detalhes div { display: flex; flex-direction: column; }
.of-detalhes dt { font-size: .74rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.of-detalhes dd { margin: 0; color: #334155; font-size: .92rem; font-weight: 600; }

.of-alts { margin-top: 12px; }
.of-alts summary {
    cursor: pointer; list-style: none; font-size: .88rem; font-weight: 600; color: #3d3d8f; display: inline-flex; align-items: center; gap: 6px;
}
.of-alts summary::-webkit-details-marker { display: none; }
/* Seta desenhada: sem o marcador do navegador, ela é a única pista de que a linha abre. */
.of-alts summary::before {
    content: ''; width: 7px; height: 7px; border-right: 2px solid #3d3d8f; border-bottom: 2px solid #3d3d8f;
    transform: rotate(-45deg); transition: transform .15s ease; margin-right: 2px;
}
.of-alts[open] summary::before { transform: translateY(-2px) rotate(45deg); }
.of-alts ul { margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.of-pagina .of-alt {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: #f8fafc; border-radius: 12px; padding: 10px 12px;
}
.of-alt-info { display: flex; flex-direction: column; min-width: 0; }
.of-alt-info strong { font-size: .9rem; color: #1e293b; }
.of-alt-info span { font-size: .8rem; color: #64748b; }
.of-alt-preco { display: flex; align-items: center; gap: 10px; flex: none; }
.of-alt-preco strong { font-size: .98rem; color: #1e293b; }
.of-alt-btn {
    border: 1.5px solid #3d3d8f; background: #fff; color: #3d3d8f; border-radius: 99px;
    padding: 6px 12px; font-family: inherit; font-weight: 700; font-size: .8rem; cursor: pointer;
}

.of-quero { width: 100%; margin-top: 16px; padding: 14px 20px; font-size: 1rem; }
.of-cartao--escolhida .of-quero { background: #3d3d8f; }

.of-escolha {
    background: #fff; border: 2px solid #3d3d8f; border-radius: 18px; padding: 22px; margin-bottom: 18px; text-align: center;
}
.of-escolha h2 { color: #3d3d8f; font-size: 1.25rem; margin: 0 0 8px; text-align: center; }
.of-escolha p { color: #475569; font-size: .95rem; line-height: 1.55; margin: 0 0 16px; }

.of-whats {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: #fff;
    text-decoration: none; padding: 12px 24px; border-radius: 50px; font-weight: 700; font-size: .95rem;
}
.of-whats--grande { padding: 15px 34px; font-size: 1.05rem; box-shadow: 0 4px 14px rgba(37,211,102,.35); }
.of-link {
    display: inline-block; background: none; border: none; color: #3d3d8f; font-weight: 600; font-size: .92rem;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-family: inherit; margin-top: 10px;
}
.of-acoes { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; align-items: center; }
.of-acoes .btn-primary { text-decoration: none; display: inline-block; padding: 14px 32px; font-size: 1rem; }
.of-acoes .of-link { margin-top: 0; }

.of-rodape { margin-top: 24px; text-align: center; }
.of-aviso { color: #64748b; font-size: .85rem; line-height: 1.55; margin: 0 0 8px; }
.of-recusas { color: #94a3b8; font-size: .83rem; margin: 0 0 16px; }

.of-ligacao { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; }
.of-ligacao p { margin: 0 0 10px; color: #334155; font-weight: 600; font-size: .93rem; }
.of-ligacao-opcoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.of-ligacao-opcoes button {
    border: 1.5px solid #cbd5e1; background: #fff; color: #3d3d8f; border-radius: 99px; padding: 8px 16px;
    font-family: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.of-ligacao-opcoes button:hover { border-color: #3d3d8f; }
.of-ligacao--ok { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; font-size: .92rem; line-height: 1.5; }
.of-ligacao .of-whats { margin-top: 4px; }

.of-vazio { background: #fff; border-radius: 18px; padding: 32px 24px; text-align: center; }
.of-vazio h2 { color: #1e293b; font-size: 1.35rem; margin: 0 0 10px; text-align: center; }
.of-vazio p { color: #64748b; margin: 0 0 20px; line-height: 1.55; }

@media (max-width: 560px) {
    .of-cabeca h1 { font-size: 1.45rem; }
    .of-cartao { padding: 18px 16px 16px; }
    .of-topo { flex-wrap: wrap; }
    .of-preco { width: 100%; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
        padding-top: 10px; margin-top: 2px; border-top: 1px solid #f1f5f9; }
    .of-parcelas { width: 100%; margin-top: 0; }
    .of-pagina .of-alt { flex-direction: column; align-items: stretch; }
    .of-alt-preco { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .of-alts summary::before { transition: none; } }

/* Cobertura que não é a completa (16/10/2026): a pessoa precisa VER que aquela
   opção cobre menos — ex.: "Só danos a terceiros" da Suhai por R$ 1.386. */
.of-detalhes .of-parcial dd, .of-parcial-txt { color: #b45309; }
.of-detalhes .of-parcial dd { font-weight: 700; }
.of-parcial-txt { font-weight: 600; }

/* Seguros por assinatura (preço mensal), separados dos anuais. */
.of-secao-mensal { margin-top: 30px; }
.of-secao-mensal h2 { color: #1e293b; font-size: 1.2rem; margin: 0 0 4px; text-align: left; }
.of-secao-mensal > p { color: #64748b; font-size: .9rem; margin: 0 0 14px; }

/* Logo da seguradora (16/10/2026): as logos são largas (Bradesco 422x117,
   Tokio 120x30), então o espaço é retangular e a imagem se encaixa sem cortar. */
.of-avatar--logo {
    width: 84px; height: 46px; background: #fff; border: 1px solid #eef0f6; padding: 5px 6px;
}
.of-avatar--logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@media (max-width: 560px) { .of-avatar--logo { width: 72px; height: 40px; } }

/* PDF do orçamento (16/10/2026) */
.of-pdf { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .88rem; color: #64748b; }
.of-pdf:empty { display: none; }
.of-pdf-link {
    display: inline-flex; align-items: center; gap: 8px; color: #3d3d8f; font-weight: 700; text-decoration: none;
    border: 1.5px solid #c7cbef; background: #fff; border-radius: 99px; padding: 9px 18px;
}
.of-pdf-link::before {
    content: 'PDF'; font-size: .66rem; font-weight: 800; color: #fff; background: #dc2626; border-radius: 4px; padding: 2px 5px;
}
.of-pdf-gerando { display: inline-flex; align-items: center; gap: 8px; }
.of-pdf-gerando .cot-gira { width: 16px; height: 16px; border-width: 2px; }
