/* Vexis — banner e painel de consentimento de cookies.
   Tokens e componentes (.btn, .sr-only) vêm do style.css do tema.
   position:fixed de propósito: não empurra conteúdo, então não gera CLS. */

/* [hidden] tem que vencer o display das regras abaixo.
   O `[hidden]{display:none}` da folha do navegador perde por especificidade de
   qualquer seletor de classe com display próprio (.vxck-modal{display:flex}), e o
   resultado é o painel de preferências aparecendo sozinho no carregamento mesmo
   com o atributo hidden presente. Estes seletores são classe+atributo, então
   ganham. Não remover. */
.vxck[hidden],
.vxck-modal[hidden],
.vxck-abrir[hidden]{display:none}

.vxck-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:2500;
  display:flex;align-items:center;gap:26px;flex-wrap:wrap;
  max-width:var(--maxw);margin:0 auto 18px;width:calc(100% - 36px);
  background:var(--branco);border:1px solid var(--linha);border-radius:var(--radius);
  box-shadow:var(--shadow-lg);padding:20px 24px;
  animation:vxck-sobe .28s ease both;
}
@keyframes vxck-sobe{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

.vxck-txt{flex:1 1 340px;min-width:0}
.vxck-txt strong{display:block;font-family:"Ubuntu",sans-serif;color:var(--roxo);font-size:1.02rem;margin-bottom:4px}
.vxck-txt p{font-size:.9rem;line-height:1.6;color:var(--cinza)}
.vxck-txt a{color:var(--roxo);font-weight:600;text-decoration:underline;text-underline-offset:2px}

.vxck-acoes{display:flex;gap:10px;flex-wrap:wrap;flex:0 0 auto}
.vxck-acoes .btn{font-size:.9rem;padding:11px 20px}

/* ---------------------------------------------------------------- painel */
.vxck-modal{
  position:fixed;inset:0;z-index:2600;
  display:flex;align-items:center;justify-content:center;padding:24px;
  background:rgba(36,16,50,.55);
  animation:vxck-fade .2s ease both;
}
@keyframes vxck-fade{from{opacity:0}to{opacity:1}}

.vxck-card{
  background:var(--branco);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  width:100%;max-width:600px;max-height:calc(100vh - 48px);overflow-y:auto;
  padding:28px 30px;
}
.vxck-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.vxck-head h2{font-size:1.4rem}
.vxck-x{
  flex:0 0 auto;background:var(--creme);border:0;border-radius:50%;
  width:36px;height:36px;display:grid;place-items:center;cursor:pointer;
  transition:background-color .18s ease;
}
.vxck-x:hover{background:var(--creme-2)}
.vxck-x svg{width:18px;height:18px;fill:none;stroke:var(--roxo);stroke-width:2;stroke-linecap:round}

.vxck-intro{margin:10px 0 20px;font-size:.92rem;line-height:1.65;color:var(--cinza)}

.vxck-cats{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.vxck-cat{
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  background:var(--creme);border-radius:14px;padding:16px 18px;
}
.vxck-cat h3{font-size:1rem;margin-bottom:4px}
.vxck-cat h3 label{cursor:pointer}
.vxck-cat p{font-size:.84rem;line-height:1.55;color:var(--cinza)}
.vxck-fixo{
  flex:0 0 auto;font-family:"Ubuntu",sans-serif;font-size:.72rem;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;color:var(--roxo);
  background:var(--lav);border-radius:20px;padding:6px 12px;white-space:nowrap;
}

/* interruptor */
.vxck-sw{flex:0 0 auto;position:relative;display:block;width:48px;height:27px;cursor:pointer}
.vxck-sw input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.vxck-slider{
  position:absolute;inset:0;background:#cfc7d8;border-radius:27px;
  transition:background-color .2s ease;pointer-events:none;
}
.vxck-slider::after{
  content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;
  background:#fff;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.2);
  transition:transform .2s ease;
}
.vxck-sw input:checked + .vxck-slider{background:var(--roxo)}
.vxck-sw input:checked + .vxck-slider::after{transform:translateX(21px)}
.vxck-sw input:focus-visible + .vxck-slider{outline:3px solid var(--roxo);outline-offset:3px}

.vxck-foot{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}
.vxck-foot .btn{font-size:.9rem;padding:11px 20px}

/* Com o painel aberto, a barra sai de cena (a decisão está no painel). */
.vxck-com-modal .vxck-bar{display:none}

/* Link de revogação no rodapé: herda o tom dos links do rodapé. */
.vxck-abrir{cursor:pointer}

/* ------------------------------------------------------------ responsivo */
@media (max-width:820px){
  .vxck-bar{
    gap:16px;padding:18px 20px;margin-bottom:12px;width:calc(100% - 20px);
    max-height:82vh;overflow-y:auto;
  }
  .vxck-acoes{width:100%}
  .vxck-acoes .btn{flex:1 1 auto;justify-content:center}
}
@media (max-width:520px){
  .vxck-acoes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  /* "Aceitar todos" é o terceiro botão: ocupa a linha inteira embaixo. */
  .vxck-acoes .btn:last-child{grid-column:1 / -1}
  .vxck-card{padding:22px 20px}
  .vxck-cat{flex-direction:column;gap:12px}
  .vxck-foot .btn{flex:1 1 auto;justify-content:center}
}

@media (prefers-reduced-motion:reduce){
  .vxck-bar,.vxck-modal{animation:none}
  .vxck-slider,.vxck-slider::after,.vxck-x{transition:none}
}
