/* Banner de cookies (template-parts/cookies.php). Fixo em baixo, sem bloquear a página.
   z-index abaixo do header (100): o menu mobile aberto tapa-o. */
.cookies {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    padding: .75rem var(--gutter);
    border-top: 1px solid var(--c-linha-escura);
}
.cookies[hidden] { display: none; }
.cookies:focus { outline: 0; }
.cookies__caixa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    max-width: var(--contentor);
    margin-inline: auto;
}
.cookies__texto {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--fs-tag);
    line-height: var(--lh-tag);
}
.cookies__texto p { margin: 0; }
.cookies__texto p + p { margin-top: .375rem; }
/* Título e texto na mesma linha: menos uma linha de banda. */
.cookies__titulo, .cookies__titulo + p { display: inline; }
.cookies__titulo { font-weight: var(--fw-medium); }
.cookies__titulo::after { content: " — "; font-weight: var(--fw-regular); }
.cookies__estado { font-weight: var(--fw-medium); }

.cookies a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    transition: color var(--dur-hover) var(--ease-out);
}
@media (hover: hover) { .cookies a:hover { color: var(--c-verde); } }
.cookies a:focus-visible, .cookies a:active { color: var(--c-verde); }

.cookies__acoes { display: flex; flex: 0 0 auto; gap: .75rem; }
.cookies .btn { flex: 1 1 0; min-width: 6.5rem; min-height: 2.5rem; padding-inline: 1.25rem; font-size: var(--fs-tag); }
.cookies .btn:active { background: var(--c-verde); border-color: var(--c-verde); color: var(--c-branco); }

@media (max-width: 767.98px) {
    .cookies__caixa { flex-direction: column; align-items: stretch; gap: .625rem; }
    .cookies__texto { font-size: .8125rem; line-height: 1.35; }
    .cookies .btn { min-width: 0; }
}
