/* Cookie consent (Cookie Notice plugin, #cookie-notice) in the BBMc visual
   language: the glass panel of the nav dropdowns, Poppins light, sky as the
   single accent, gold only as a hairline. Enqueued site-wide from functions.php.

   GDPR / Telecommunicatiewet 11.7a rules this stylesheet enforces:
   - Accept and refuse are the SAME button: same size, weight, colour and
     position in the row. No nudge towards "accept".
   - The plugin's close icon (✕) is hidden: it carries data-cookie-set="accept",
     so dismissing the banner would silently record consent.
   - The banner never covers the page's own controls on phones: it scrolls
     internally instead of growing past 70% of the viewport.
   The plugin prints its colours as inline styles, hence the !important. */

#cookie-notice {
  position: fixed;
  left: 50% !important;
  right: auto !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%);
  width: min(46rem, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 100000;
  box-sizing: border-box;
  padding: 0 !important;
  background: rgba(19, 38, 54, 0.95) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(169, 196, 222, 0.16);
  border-radius: var(--radius, 14px);
  box-shadow: 0 24px 60px -18px rgba(3, 8, 13, 0.8);
  font-family: var(--font-sans, "Poppins", system-ui, sans-serif);
  text-align: left;
}
/* the gold hairline along the top edge — gold as line only */
#cookie-notice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.6rem;
  width: 2.2rem;
  height: 1px;
  background: var(--gold, #C99A3E);
  opacity: 0.8;
}

/* the plugin sets its own font stack on the container and buttons */
#cookie-notice,
#cookie-notice .cookie-notice-container,
#cookie-notice .cn-text-container,
#cookie-notice .cn-button {
  font-family: var(--font-sans, "Poppins", system-ui, sans-serif) !important;
}

#cookie-notice .cookie-notice-container,
#cookie-notice .cookie-revoke-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem 1.6rem !important;
  color: var(--text-2, #AEBFCB) !important;
  text-align: left;
}

#cookie-notice .cn-text-container,
#cookie-notice .cn-revoke-text {
  margin: 0 !important;
  font-size: 0.86rem;
  font-weight: var(--w-light, 300);
  line-height: 1.6;
  color: var(--text-2, #AEBFCB);
}
#cookie-notice .cn-text-container::before {
  content: "Privacy";
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky, #5E9AC8);
}
#cookie-notice .cn-text-container a {
  color: var(--pale, #E9F1F7);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(94, 154, 200, 0.6);
}

#cookie-notice .cn-buttons-container,
#cookie-notice .cn-revoke-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem 0.7rem;
  margin: 0 !important;
}

/* accept + refuse: one identical pill (the site's .cro-btn, without the arrow) */
#cookie-notice .cn-button,
#cookie-notice .cn-button.cn-button-custom {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  margin: 0 !important;
  padding: 0.72em 1.35em !important;
  border: 1px solid rgba(94, 154, 200, 0.55) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--pale, #E9F1F7) !important;
  font-family: inherit !important;
  font-size: 0.86rem !important;
  font-weight: var(--w-regular, 400) !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
#cookie-notice .cn-button:hover,
#cookie-notice .cn-button:focus-visible {
  background: rgba(94, 154, 200, 0.14) !important;
  border-color: var(--sky, #5E9AC8) !important;
}
#cookie-notice .cn-button:focus-visible {
  outline: 2px solid var(--sky, #5E9AC8);
  outline-offset: 3px;
}

/* "Privacyverklaring": a quiet text link, not a third button */
#cookie-notice .cn-button.cn-more-info {
  min-width: 0;
  padding: 0.72em 0.2em !important;
  border-color: transparent !important;
  color: var(--text-2, #AEBFCB) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(94, 154, 200, 0.6);
}
#cookie-notice .cn-button.cn-more-info:hover { background: transparent !important; color: var(--pale, #E9F1F7) !important; }

/* closing is not consenting */
#cookie-notice .cn-close-icon { display: none !important; }

/* footer: "Cookie-instellingen" looks like its neighbouring footer links */
.footer-linkbtn {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  margin: 0 0 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2, #AEBFCB);
  font: inherit;
  font-size: 0.88rem;
  text-align: inherit;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-linkbtn:hover { color: var(--pale, #E9F1F7); }
.footer-linkbtn:focus-visible { outline: 2px solid var(--sky, #5E9AC8); outline-offset: 3px; }

@media (max-width: 760px) {
  #cookie-notice .cookie-notice-container,
  #cookie-notice .cookie-revoke-container {
    padding: 1.2rem 1.15rem !important;
  }
  #cookie-notice .cn-buttons-container,
  #cookie-notice .cn-revoke-buttons { justify-content: stretch; }
  #cookie-notice .cn-set-cookie { flex: 1 1 8rem; min-width: 0; }
  #cookie-notice .cn-button.cn-more-info { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #cookie-notice .cn-button { transition: none; }
}
