/* Codiji Site — cookie consent banner. Shown once (until a choice is made or
   reopened via the footer "Cookie Preferences" link); gates whether
   analytics is allowed to load. See assets/js/cookie-consent.js. */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}
.cookie-consent[hidden] { display: none; }

@media (min-width: 768px) {
  .cookie-consent {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.cookie-consent__text {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 48rem;
}
.cookie-consent__text a {
  color: var(--color-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent__text a:hover { color: var(--color-primary); }

.cookie-consent__actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.cookie-consent__actions .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
}
