/* ============================================
   Consent Mode v2 banner
   Bottom-fixed banner shown until the user accepts or rejects ad measurement
   cookies. Matches the site's dark glass aesthetic via tokens.css + glass.css.
   ============================================ */

.consent-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  margin-inline: auto;
  max-width: 32rem;
  padding: 1.25rem 1.25rem 1rem;
  background: rgba(20, 22, 30, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--glass-radius, 16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-sans, 'Comfortaa', sans-serif);
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.5;
  z-index: 9999;
  opacity: 1;
}

.consent-content {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.consent-heading {
  margin: 0;
  font-size: var(--text-base, 1rem);
  font-weight: var(--font-semibold, 600);
  color: rgba(255, 255, 255, 1);
}

.consent-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.consent-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.consent-btn {
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  font-family: inherit;
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  cursor: pointer;
  transition: background 180ms ease, transform 100ms ease, box-shadow 180ms ease;
}

.consent-btn-primary {
  background: var(--color-primary-light, #60a5fa);
  color: #0a0a0a;
}
.consent-btn-primary:hover {
  background: #82bbff;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.35);
}

.consent-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}
.consent-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.consent-btn:active { transform: translateY(1px); }

.consent-btn:focus-visible {
  outline: 2px solid var(--color-primary-light, #60a5fa);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner { transition: none; }
}

@media (max-width: 480px) {
  .consent-banner {
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    padding: 1rem;
  }
  .consent-actions { justify-content: stretch; }
  .consent-btn { flex: 1; }
}

/* RTL: flip action alignment */
[dir="rtl"] .consent-actions { justify-content: flex-start; }
