/* cookie-consent.css — pairs with cookie-consent.js.
   Uses the site design tokens from styles.css where available, with fallbacks. */

.cc-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  background: var(--cc-bg, #14181f);
  color: var(--cc-fg, #f4f5f7);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
  animation: cc-up .25s ease-out;
}
@keyframes cc-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cc-banner { animation: none; } }

.cc-inner {
  max-width: var(--container, 1140px);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: grid;
  gap: .75rem 1.5rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}
@media (max-width: 680px) { .cc-inner { grid-template-columns: 1fr; } }

.cc-text p { margin: .25rem 0 0; font-size: .9rem; line-height: 1.5; opacity: .9; }
.cc-text a { color: inherit; text-decoration: underline; }

.cc-options {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding: .5rem 0;
  font-size: .9rem;
}
/* `display:flex` above would otherwise defeat the [hidden] attribute,
   showing the category checkboxes before "Customize" is clicked. */
.cc-options[hidden] { display: none; }
.cc-options label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }

.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-self: end; }
@media (max-width: 680px) { .cc-actions { justify-self: stretch; } }

.cc-btn {
  font: inherit;
  font-size: .9rem;
  padding: .55rem 1rem;
  border-radius: var(--radius, 8px);
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cc-btn:hover { background: rgba(255, 255, 255, .12); }
.cc-btn:focus-visible { outline: 2px solid var(--brand, #4f8cff); outline-offset: 2px; }

.cc-primary {
  background: var(--brand, #4f8cff);
  border-color: var(--brand, #4f8cff);
  color: var(--brand-contrast, #fff);
}
.cc-primary:hover { filter: brightness(1.08); background: var(--brand, #4f8cff); }
