/* Cookie consent banner + preferences modal */

.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  padding: 0.75rem;
  pointer-events: none;
}

.consent-banner[hidden] {
  display: none !important;
}

.consent-banner__inner {
  pointer-events: auto;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--site-surface);
  border: 1px solid var(--site-border-subtle);
  border-radius: var(--site-radius);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.consent-banner__text {
  flex: 1 1 16rem;
  min-width: 0;
}

.consent-banner__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--site-text);
}

.consent-banner__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--site-text-muted);
}

.consent-banner__desc a {
  color: var(--site-link, #0d6efd);
  text-decoration: underline;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

body.consent-banner-visible {
  padding-bottom: 5.5rem;
}

.consent-category {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--site-border-subtle);
}

.consent-category:last-child {
  border-bottom: 0;
}

.consent-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.consent-category__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.consent-category__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--site-text-muted);
  line-height: 1.45;
}

.consent-category__badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--site-text-muted);
  background: var(--site-bg, #f8f9fa);
  border: 1px solid var(--site-border-subtle);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .consent-banner__actions {
    width: 100%;
  }

  .consent-banner__actions .btn {
    flex: 1 1 auto;
  }
}
