/* Banner e painel de cookies (js/consent.js). Não depende do tailwind.css (gerado). */

/* Botão "Preferências de cookies" no rodapé: parece os links vizinhos. */
[data-fnl-cookie-prefs] {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
[data-fnl-cookie-prefs]:focus-visible,
.fnl-ck-banner a:focus-visible,
.fnl-ck-painel a:focus-visible,
.fnl-ck-btn:focus-visible,
.fnl-ck-link:focus-visible,
.fnl-ck-fechar:focus-visible,
.fnl-ck-switch:focus-visible {
  outline: 2px solid #D6FFAD; outline-offset: 3px; border-radius: 6px;
}

.fnl-ck-banner {
  position: fixed; z-index: 10000;
  left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(960px, calc(100% - 32px));
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 20px; border-radius: 20px;
  background: #161616; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .6);
  font-family: 'DM Sans', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.55;
}
.fnl-ck-banner .fnl-ck-titulo { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.fnl-ck-banner .fnl-ck-texto { margin: 0; color: rgba(255, 255, 255, .75); }
.fnl-ck-banner a, .fnl-ck-painel a { color: #79EB93; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fnl-ck-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* "Aceitar" e "Recusar" têm exatamente o mesmo visual. */
.fnl-ck-btn {
  min-height: 44px; padding: 0 22px; border-radius: 12px;
  font: 700 14px/1 'DM Sans', Arial, Helvetica, sans-serif;
  background: #79EB93; color: #101010; border: 2px solid #79EB93; cursor: pointer;
  flex: 1 1 120px;
}
.fnl-ck-btn:hover { background: #62B679; border-color: #62B679; }
.fnl-ck-link {
  flex: 1 1 100%; min-height: 44px; background: none; border: 0; cursor: pointer;
  font: 600 14px/1 'DM Sans', Arial, Helvetica, sans-serif; color: #fff;
  text-decoration: underline; text-underline-offset: 3px;
}
@media (min-width: 768px) {
  .fnl-ck-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .fnl-ck-acoes { flex: 0 0 auto; flex-wrap: nowrap; }
  .fnl-ck-btn { flex: 0 0 auto; }
  .fnl-ck-link { flex: 0 0 auto; padding: 0 6px; }
}

/* Painel de preferências */
.fnl-ck-scrim {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .55);
}
.fnl-ck-painel {
  width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  padding: 22px; border-radius: 20px; background: #161616; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  font-family: 'DM Sans', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.55;
}
.fnl-ck-p-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fnl-ck-p-titulo { margin: 0; font-size: 18px; font-weight: 700; }
.fnl-ck-fechar {
  width: 44px; height: 44px; margin: -8px -8px -8px 0; flex: none; cursor: pointer;
  background: none; border: 0; color: #fff; font-size: 28px; line-height: 1;
}
.fnl-ck-p-intro, .fnl-ck-cat-desc, .fnl-ck-p-leia { margin: 8px 0 0; color: rgba(255, 255, 255, .72); }
.fnl-ck-cat { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.fnl-ck-cat-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fnl-ck-cat-nome { font-weight: 700; }
.fnl-ck-cat-fixo { font-size: 12px; font-weight: 600; color: #79EB93; }
.fnl-ck-switch {
  position: relative; width: 48px; height: 28px; flex: none; cursor: pointer;
  border-radius: 14px; border: 0; background: rgba(255, 255, 255, .25);
}
.fnl-ck-switch[aria-checked="true"] { background: #79EB93; }
.fnl-ck-bola {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
}
.fnl-ck-switch[aria-checked="true"] .fnl-ck-bola { left: 23px; background: #101010; }
.fnl-ck-salvar { display: block; width: 100%; margin-top: 18px; flex: none; }
.fnl-ck-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Animação só para quem não pediu menos movimento. */
@media (prefers-reduced-motion: no-preference) {
  .fnl-ck-banner { animation: fnl-ck-sobe .28s cubic-bezier(.2, .8, .2, 1) both; }
  .fnl-ck-scrim { animation: fnl-ck-fade .2s ease-out both; }
  .fnl-ck-painel { animation: fnl-ck-pop .22s cubic-bezier(.2, .8, .2, 1) both; }
  .fnl-ck-switch, .fnl-ck-bola { transition: background-color .15s ease, left .15s ease; }
}
@keyframes fnl-ck-sobe { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fnl-ck-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fnl-ck-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
