/*
 * Papeloucos — aviso de cookies (Google Analytics / LGPD)
 * Ver /pl-privacidade/README.md
 *
 * Camadas e posição (convive com os temas sazonais):
 *   renas 84 · Papai Noel inflável 85 · banner/som sazonal 86 · Lumi 90
 *   aviso de cookies 95 (este) · menu mobile 99
 * O cartão fica acima da faixa inferior (banner sazonal à esquerda, botão de
 * som à direita, renas) e nunca na coluna direita do Papai Noel.
 * position: fixed → não causa layout shift.
 */
.pl-consent {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  box-sizing: border-box;
  width: calc(100vw - 56px);
  max-width: 520px;
  transform: translateX(-50%);
  padding: 18px 20px 16px;
  border-radius: 24px;
  border: 1px solid rgba(185, 140, 255, .45);
  background: linear-gradient(150deg, rgba(43, 22, 82, .96), rgba(22, 12, 48, .96));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 26px rgba(185, 140, 255, .35), 0 10px 30px rgba(0, 0, 0, .45);
  color: #fff;
  font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  cursor: auto;
  animation: pl-consent-in .45s cubic-bezier(.2, .9, .3, 1.2) both;
}
.pl-consent[hidden] { display: none; }

.pl-consent-title {
  margin: 0 0 6px;
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  color: #fff;
}
.pl-consent-text {
  margin: 0 0 14px;
  color: #e4dcff;
}
.pl-consent-actions {
  display: flex;
  gap: 10px;
}
/* Botões com o mesmo peso visual: nenhuma opção é "escondida". */
.pl-consent-btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(185, 140, 255, .65);
  background: rgba(185, 140, 255, .16);
  color: #fff;
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.pl-consent-btn:hover { background: rgba(185, 140, 255, .3); transform: translateY(-1px); }
.pl-consent-more {
  display: inline-block;
  margin-top: 10px;
  color: #e4dcff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pl-consent-more:hover { color: #fff; }
.pl-consent-btn:focus-visible,
.pl-consent-link:focus-visible,
.pl-consent-more:focus-visible {
  outline: 3px solid #ffe45c;
  outline-offset: 2px;
}

/* Link "Preferências de cookies" (rodapés) */
.pl-consent-link {
  display: inline;
  padding: 2px 4px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink-2, #cfc6f2); /* contraste ≥ 4.5:1 nos fundos do site (dia e noite) */
  font: inherit;
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pl-consent-link:hover { text-decoration-thickness: 2px; }
.pl-consent-footer-row { display: block; margin-top: 10px; }

/* Bloco injetado no fim do <body> (post, que não tem rodapé) */
.pl-consent-footer {
  padding: 0 16px 28px;
  text-align: center;
  color: #b9b0e0;
}

/* Tablet/desktop estreito: tira o cartão da coluna do Papai Noel (direita, 162px) */
@media (max-width: 860px) {
  .pl-consent {
    left: 28px; /* guirlanda lateral do Natal ocupa 24px em cada borda */
    right: 162px;
    width: auto;
    max-width: none;
    transform: none;
  }
}

/* Celular / toque: acima do Papai Noel inflável e das renas */
@media (max-width: 640px), (pointer: coarse) {
  .pl-consent {
    left: 28px;
    right: 28px;
    bottom: calc(190px + env(safe-area-inset-bottom, 0px));
    padding: 14px 16px;
  }
  .pl-consent-title { font-size: 16px; }
  .pl-consent-text { font-size: 13.5px; margin-bottom: 12px; }
}
/* Tela baixa (paisagem): Papai Noel e renas somem; fica logo acima da faixa inferior */
@media (max-height: 519px) {
  .pl-consent { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

@keyframes pl-consent-in {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-consent { animation: none; }
  .pl-consent-btn { transition: none; }
}
