/* Cookie consent banner.
   Hidden until analytics.js decides it is needed (the [hidden] attribute is the
   single source of truth, so the banner never flashes for returning visitors). */
.consent[hidden] {
  display: none;
}

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: var(--space-4);
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: consent-in 200ms ease-out;
}

.consent__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.consent__copy {
  flex: 1 1 420px;
  min-width: 0;
}

.consent__title {
  margin: 0 0 var(--space-1);
  font-size: 1rem;
  color: var(--text-strong);
}

.consent__body {
  margin: 0;
  color: var(--text-body);
  font-size: 0.9375rem;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 600px) {
  .consent__actions {
    width: 100%;
  }

  .consent__actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@keyframes consent-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

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