/* Barra de consentimento de cookies — usada por planos.html, cadastro.php
   e landing.html.
   Unificada no Design System Stars Polaris 5.0 (Glassora + Modo Espelho). */

.polaris-cookies {
  position: fixed; left: 0; right: 0; bottom: 0;
  /* Abaixo do overlay de checkout do planos.html, que usa 50. */
  z-index: 40;
  background: var(--ck-painel, rgba(10, 16, 30, 0.88));
  background-image: linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, rgba(10, 16, 30, 0.88) 52%, rgba(103, 212, 236, 0.05) 100%);
  border-top: 1px solid var(--ck-borda, rgba(103, 212, 236, 0.30));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 -18px 44px rgba(0, 0, 0, 0.72);
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: none;
}
.polaris-cookies.aberta { display: block; }

.polaris-cookies .ck-inner {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.polaris-cookies p {
  margin: 0; flex: 1 1 260px; min-width: 0;
  font-size: 12.5px; line-height: 1.55;
  color: var(--ck-texto-fraco, #98a9ca);
}
.polaris-cookies a {
  color: var(--ck-destaque, #67d4ec);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.polaris-cookies .ck-botoes { display: flex; gap: 10px; flex-shrink: 0; }
.polaris-cookies button {
  min-height: 44px; padding: 11px 20px; border-radius: 999px;
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: transform 0.12s ease, filter 0.16s ease, border-color 0.16s ease;
}
.polaris-cookies .ck-aceitar {
  background: var(--ck-destaque, #67d4ec);
  background-image: linear-gradient(135deg, #67d4ec 0%, #3b82f6 55%, #f5c55b 120%);
  border: 1px solid rgba(103, 212, 236, 0.45);
  color: var(--ck-destaque-texto, #050914);
  box-shadow: 0 10px 24px -10px rgba(103, 212, 236, 0.58);
}
.polaris-cookies .ck-aceitar:hover { filter: brightness(1.08); }
.polaris-cookies .ck-aceitar:active { transform: scale(0.985); }
.polaris-cookies .ck-essenciais {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ck-borda, rgba(103, 212, 236, 0.28));
  color: var(--ck-texto-fraco, #cfe7ff);
  font-weight: 600;
}
.polaris-cookies .ck-essenciais:hover {
  color: var(--ck-texto, #eef4ff);
  border-color: rgba(103, 212, 236, 0.55);
  background: rgba(103, 212, 236, 0.08);
}

@media (max-width: 520px) {
  .polaris-cookies .ck-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .polaris-cookies p { flex: 0 1 auto; }
  .polaris-cookies .ck-botoes { width: 100%; }
  .polaris-cookies .ck-botoes button { flex: 1 1 0; padding: 12px 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .polaris-cookies.aberta { animation: ck-subir 0.28s ease-out; }
  @keyframes ck-subir { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
