/* Consentimento de cookies (LGPD): banner à esquerda + painel de preferências.
   Blocos retos, tom creme suave e botão Aceitar todos em laranja. */
.pf-consent { position: fixed; left: 24px; bottom: 24px; z-index: 1000; box-sizing: border-box; width: min(430px, calc(100% - 48px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 1.25rem; border-top: 4px solid transparent; border-image: linear-gradient(90deg, #ff6d18 0%, #ffa128 100%) 1; color: var(--ds-ink, #141414); background: var(--ds-cream, #f7efe9); box-shadow: 0 12px 32px rgba(20, 20, 20, .16); font-family: var(--font-body, sans-serif); font-size: .9375rem; line-height: 1.45; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.pf-consent[hidden] { display: none; }
.pf-consent.is-visivel { opacity: 1; transform: none; }
.pf-consent-texto { margin: 0 0 1rem; color: var(--ds-ink, #141414); }
.pf-consent-texto a { color: #93490f; text-decoration: underline; text-underline-offset: 2px; }
.pf-consent-acoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.pf-consent-botao { min-height: 44px; flex: 1 1 0; padding: .6rem 1rem; border: 1px solid var(--ds-ink, #141414); border-radius: 0; color: var(--ds-white, #fff); background: var(--ds-ink, #141414); font-family: var(--font-display, sans-serif); font-size: .9375rem; font-weight: 700; line-height: 1.2; cursor: pointer; }
.pf-consent-botao:hover { background: #3a3a3a; border-color: #3a3a3a; }
.pf-consent-botao-secundario { color: var(--ds-ink, #141414); background: transparent; }
.pf-consent-botao-secundario:hover { color: var(--ds-ink, #141414); background: rgba(20, 20, 20, .08); border-color: var(--ds-ink, #141414); }
.pf-consent-botao[data-consent-acao="aceitar"] { color: #fff; background: #ff6d18; border-color: #ff6d18; }
.pf-consent-botao:focus-visible, .pf-consent-fechar:focus-visible, .pf-consent a:focus-visible, .pf-consent-painel a:focus-visible, .pf-consent-categoria input:focus-visible { outline: 3px solid var(--ds-ink, #141414); outline-offset: 2px; }

.pf-consent-painel { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 1.5rem; border: 0; border-top: 4px solid transparent; border-image: linear-gradient(90deg, #ff6d18 0%, #ffa128 100%) 1; border-radius: 0; color: var(--ds-ink, #141414); background: var(--ds-white, #fff); box-shadow: 0 18px 48px rgba(20, 20, 20, .2); font-family: var(--font-body, sans-serif); font-size: .9375rem; line-height: 1.45; overflow: auto; }
.pf-consent-painel[open] { position: fixed; inset: 0; z-index: 1001; }
.pf-consent-painel::backdrop { background: rgba(20, 20, 20, .45); }
.pf-consent-painel h2 { margin: 0 2rem .75rem 0; font-family: var(--font-display, sans-serif); font-size: 1.25rem; line-height: 1.2; }
.pf-consent-fechar { position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; color: var(--ds-ink, #141414); background: transparent; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.pf-consent-categorias { margin: 0 0 1.25rem; padding: 0; border: 0; }
.pf-consent-categoria { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; padding: .85rem 1rem; background: var(--ds-cream, #f7efe9); }
.pf-consent-categoria + .pf-consent-categoria { margin-top: .5rem; }
.pf-consent-categoria input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: #93490f; cursor: pointer; }
.pf-consent-categoria input:disabled { cursor: not-allowed; }
.pf-consent-categoria label { display: grid; gap: .15rem; cursor: pointer; }
.pf-consent-categoria strong { font-family: var(--font-display, sans-serif); font-weight: 700; }
.pf-consent-categoria span { color: #4d4d4d; }
.pf-consent-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Em telas estreitas, cookies ocupam o topo e a busca reserva a metade inferior.
   Os dois blocos rolam internamente quando a altura disponível é reduzida. */
@media (max-width: 860px) {
  .pf-consent { top: 12px; right: 12px; bottom: auto; left: 12px; width: auto; max-height: calc(50dvh - 24px); padding: .75rem; font-size: .8125rem; line-height: 1.35; }
  .pf-consent > .pf-consent-texto { margin-bottom: .625rem; }
  .pf-consent > .pf-consent-acoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; }
  .pf-consent > .pf-consent-acoes > .pf-consent-botao { min-width: 0; padding: .5rem .25rem; font-size: .8125rem; overflow-wrap: anywhere; }
  .pf-consent-painel { padding: 1.25rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-consent { transition: none; transform: none; }
}

/* Link "Preferências de cookies" do rodapé: botão com aparência de link. */
.footer-link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.footer-link-btn:hover { color: var(--ds-sand); }
