/* ==========================================================================
   BRIT demo – cookie banner (js/cookies.js)
   Restyle the banner by overriding the --cb-* variables.
   ========================================================================== */

:root {
  --cb-bg: #232733;          /* BRIT logo navy */
  --cb-fg: #ffffff;
  --cb-soft: #c9ccd4;        /* 9.3:1 on navy */
  --cb-accent: #f16522;      /* BRIT orange */
  --cb-accent-fg: #ffffff;   /* 3.3:1: buttons use large bold text */
  --cb-radius: 16px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  width: min(26rem, calc(100% - 32px));
  padding: 22px 22px 20px;
  background: var(--cb-bg);
  color: var(--cb-fg);
  border-radius: var(--cb-radius);
  border-top: 4px solid var(--cb-accent);
  box-shadow: 0 18px 50px rgba(10, 14, 20, 0.28);
  font-size: 0.95rem;
  line-height: 1.55;
  animation: cookie-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}
.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: inherit;
}
.cookie-banner p { margin: 0 0 16px; color: var(--cb-soft); }
.cookie-banner a { color: var(--cb-fg); text-decoration-color: var(--cb-accent); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions button {
  flex: 1 1 auto;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--cb-accent);
  font: inherit;
  font-size: 1.1875rem;      /* 19px bold = large text for WCAG */
  font-weight: 700;
  cursor: pointer;
}
.cookie-accept { background: var(--cb-accent); color: var(--cb-accent-fg); }
.cookie-reject { background: transparent; color: var(--cb-fg); }
.cookie-accept:hover { filter: brightness(1.08); }
.cookie-reject:hover { background: rgba(255, 255, 255, 0.08); }
.cookie-actions button:focus-visible,
.cookie-banner a:focus-visible {
  outline: 3px solid var(--cb-fg);
  outline-offset: 2px;
}

/* "Cookie-instellingen" in the footer: a button that looks like a footer link */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.link-button:hover { text-decoration: underline; }

@media print {
  .cookie-banner { display: none !important; }
}
