/* Peças funcionais compartilhadas entre os 15 temas. A aparência vem das variáveis de cada tema.css. */
body.demo { padding-top: 40px; }
.faixa {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 40px; display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 0 10px; background: var(--ui-barra-bg); color: var(--ui-barra-fg); font: 500 12.5px/1.2 var(--ui-fonte);
}
.faixa a { flex: none; padding: 6px 10px; background: var(--ui-acento); color: var(--ui-acento-fg); font-weight: 700; text-decoration: none; border-radius: var(--ui-raio, 0); white-space: nowrap; }
.seletor {
    position: fixed; left: 12px; bottom: 16px; z-index: 95; display: flex; align-items: center; gap: 4px; padding: 5px;
    background: var(--ui-barra-bg); color: var(--ui-barra-fg); font: 500 13px/1.15 var(--ui-fonte);
    border: 1px solid var(--ui-barra-borda, var(--ui-barra-fg)); border-radius: var(--ui-raio, 0); box-shadow: 0 8px 24px rgb(0 0 0 / .28);
}
.seletor > span { padding: 0 6px; white-space: nowrap; }
.seletor a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; color: inherit; text-decoration: none; border-radius: var(--ui-raio, 0); }
.seletor a:hover { text-decoration: underline; text-underline-offset: 3px; }
.seletor a[aria-current="true"] { background: var(--ui-acento); color: var(--ui-acento-fg); font-weight: 700; }

.d-menu-botao {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; min-height: 48px; padding: 0 12px;
    background: transparent; color: inherit; border: 1px solid currentColor; border-radius: var(--ui-raio, 0); font: inherit;
}

/* Formulários e agendamento */
.f-campo { display: grid; gap: 6px; margin-bottom: 14px; }
.f-campo label { font-weight: 600; font-size: .95rem; }
.f-campo input, .f-campo select, .f-campo textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: var(--f-bg); color: var(--f-fg); border: 1px solid var(--f-borda); border-radius: var(--f-raio, 0); }
.f-campo select option { color: #111; background: #fff; }
.f-botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--ui-acento); color: var(--ui-acento-fg); font-weight: 700; border: 2px solid var(--ui-acento); border-radius: var(--ui-raio, 0); text-decoration: none; cursor: pointer; transition: opacity .18s ease; }
.f-botao:hover { opacity: .86; }
.f-botao--vazado { background: transparent; color: inherit; border-color: currentColor; }
.f-aviso { margin-bottom: 14px; font-size: .88rem; opacity: .9; }
.f-ok { margin-top: 14px; padding: 12px; border: 2px solid currentColor; border-radius: var(--f-raio, 0); font-weight: 600; }
.f-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

dialog.dlg { width: min(620px, calc(100vw - 24px)); max-height: 86vh; padding: 28px 22px; overflow-y: auto; background: var(--dlg-bg); color: var(--dlg-fg); border: 1px solid var(--dlg-borda, currentColor); border-radius: var(--ui-raio, 0); }
dialog.dlg::backdrop { background: rgb(0 0 0 / .68); }
dialog.dlg h2 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 14px; padding-right: 48px; }
dialog.dlg p + p { margin-top: 12px; }
.dlg__fechar { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: var(--ui-raio, 0); }

.d-cta-ldx { padding: 40px 16px; background: var(--ui-barra-bg); color: var(--ui-barra-fg); font-family: var(--ui-fonte); }
.d-cta-ldx__dentro { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.d-cta-ldx strong { display: block; font-size: 1.25rem; }
.d-cta-ldx p { font-size: .95rem; }

/* Surgimento suave: só existe quando o JS marca a página */
@media (prefers-reduced-motion: no-preference) {
    .js-surge [data-surge] { opacity: 0; transform: translateY(var(--surge-d, 16px)); transition: opacity var(--surge-t, .5s) ease-out, transform var(--surge-t, .5s) ease-out; }
    .js-surge [data-surge].visto { opacity: 1; transform: none; }
}

@media (max-width: 719px) {
    .seletor { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 2px; padding: 3px; border-width: 1px 0 0; border-radius: 0; font-size: 11.5px; }
    .seletor > span { padding: 0 3px; }
    .seletor a { justify-content: center; min-height: 46px; padding: 0 4px; text-align: center; }
    body.demo .whats-flutuante { bottom: 62px; right: 12px; width: 52px; padding: 0; justify-content: center; }
    body.demo .whats-flutuante span { display: none; }
    .faixa { font-size: 11.5px; }
    .rodape-ldx { padding-bottom: 124px; }
}
