/* Cookie consent banner — brand-aligned, falls back if tokens are unavailable */
.consent-banner[hidden] { display: none; } /* author display:flex below otherwise beats the UA [hidden] rule */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 14px;
  background: var(--bg-elev, #152a33);
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.15));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  animation: consent-rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.consent-text {
  flex: 1 1 300px; margin: 0; font-size: 13px; line-height: 1.55;
  color: var(--text-mute, #8a9ba5);
}
.consent-text a { color: var(--accent, #00ff88); text-decoration: none; }
.consent-text a:hover { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-btn {
  font: inherit; cursor: pointer; padding: 9px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  transition: transform 0.15s, border-color 0.2s, color 0.2s;
}
.consent-accept {
  background: var(--accent, #00ff88); color: #001a0d;
  box-shadow: 0 4px 20px var(--accent-glow, rgba(0, 255, 136, 0.4));
}
.consent-accept:hover { transform: translateY(-1px); }
.consent-decline {
  background: transparent; color: var(--text, #e8eef2);
  border-color: var(--border-strong, rgba(255, 255, 255, 0.15));
}
.consent-decline:hover { border-color: var(--accent, #00ff88); color: var(--accent, #00ff88); }
@keyframes consent-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) {
  .consent-banner { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .consent-banner { animation: none; } }
