/* Complianz presentation only. Visibility and consent state remain plugin-owned. */
.cmplz-cookiebanner, #cmplz-manage-consent {
  --ke-consent-gold: color-mix(in srgb, var(--wp--preset--color--champagne) 68%, #000);
  --cmplz_banner_width: 526px;
  --cmplz_banner_background_color: var(--wp--preset--color--surface);
  --cmplz_text_color: var(--wp--preset--color--ink);
  --cmplz_hyperlink_color: var(--wp--preset--color--ink);
  --cmplz_banner_border_width: 0px;
  --cmplz_banner_border_radius: 12px;
  --cmplz_button_border_radius: 6px;
  --cmplz_text_font_size: 14px;
  --cmplz_link_font_size: 14px;
  --cmplz_button_font_size: 14px;
  --cmplz_category_body_font_size: 14px;
  --cmplz_category_header_active_font_size: 14px;
  --cmplz_category_header_always_active_color: var(--wp--preset--color--ink);
  --cmplz_button_accept_background_color: var(--ke-consent-gold);
  --cmplz_button_accept_border_color: var(--ke-consent-gold);
  --cmplz_button_accept_text_color: var(--wp--preset--color--white);
  --cmplz_button_deny_background_color: var(--wp--preset--color--surface);
  --cmplz_button_deny_border_color: var(--wp--preset--color--ink);
  --cmplz_button_deny_text_color: var(--wp--preset--color--ink);
  --cmplz_button_settings_background_color: var(--wp--preset--color--surface);
  --cmplz_button_settings_border_color: var(--ke-consent-gold);
  --cmplz_button_settings_text_color: var(--wp--preset--color--ink);
  --cmplz_slider_active_color: var(--ke-consent-gold);
  --cmplz_slider_inactive_color: var(--wp--preset--color--muted);
  --cmplz_slider_bullet_color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--body);
}
body .cmplz-cookiebanner {
  box-sizing: border-box;
  width: min(526px, calc(100vw - 32px));
  min-width: 0;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: auto;
  border: 0;
  box-shadow: 0 12px 48px color-mix(in srgb, var(--wp--preset--color--ink) 18%, transparent);
  font-size: 14px;
  line-height: 1.65;
}
body .cmplz-cookiebanner .cmplz-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
body .cmplz-cookiebanner .cmplz-title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 28px;
  line-height: 1.15;
  text-align: left;
  justify-self: start;
}
body .cmplz-cookiebanner :is(.cmplz-message, .cmplz-categories) { width: auto; min-width: 0; }
body .cmplz-cookiebanner .cmplz-message { line-height: 1.65; }
body .cmplz-cookiebanner .cmplz-divider { margin-inline: 0; border-color: var(--wp--preset--color--line); }
body .cmplz-cookiebanner a { color: var(--wp--preset--color--ink); text-underline-offset: 3px; text-decoration: underline; overflow-wrap: anywhere; }
body .cmplz-cookiebanner a:hover { text-decoration-thickness: 2px; }
body .cmplz-cookiebanner .cmplz-buttons { gap: 10px; flex-wrap: wrap; }
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
  flex: 1 1 130px;
  width: auto;
  min-height: 46px;
  white-space: normal;
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
  border-width: 2px;
}
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:hover { box-shadow: inset 0 0 0 1px currentColor; }
body .cmplz-cookiebanner .cmplz-category { border-radius: 6px; background: var(--wp--preset--color--canvas); }
body .cmplz-cookiebanner .cmplz-category .cmplz-category-header { grid-template-columns: minmax(0, 1fr) auto 44px; }
body .cmplz-cookiebanner .cmplz-category .cmplz-category-toggle { min-width: 44px; min-height: 44px; }
body .cmplz-cookiebanner .cmplz-description { line-height: 1.65; overflow-wrap: anywhere; }
body .cmplz-cookiebanner :is(button, a, [role="button"]):focus-visible,
#cmplz-manage-consent .cmplz-manage-consent:focus-visible,
body .cmplz-cookiebanner input:focus-visible + .cmplz-label {
  outline: 3px solid var(--wp--preset--color--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--wp--preset--color--surface);
}
#cmplz-manage-consent .cmplz-manage-consent {
  font-family: var(--wp--preset--font-family--body);
  font-size: 14px;
  border: 1px solid var(--wp--preset--color--champagne);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent);
  max-width: calc(100vw - 32px);
}
@media (max-width: 560px) {
  body .cmplz-cookiebanner { padding: 16px; }
  body .cmplz-cookiebanner .cmplz-message { line-height: 1.5; }
  body .cmplz-cookiebanner .cmplz-buttons { flex-direction: column; }
  body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { flex: auto; width: 100%; }
  body .cmplz-cookiebanner .cmplz-title { font-size: 24px; }
}
@media (max-width: 425px) {
  /* Complianz forces a one-column grid with !important at this breakpoint. */
  body .cmplz-cookiebanner .cmplz-category .cmplz-category-header {
    grid-template-columns: minmax(0, 1fr) auto 44px !important;
    gap: 6px;
  }
}

/* Preferences remain available through the permanent legal footer link.
   Hide only the floating launcher, never the banner or preference controls. */
body #cmplz-manage-consent .cmplz-manage-consent { display: none; }

/* Keep the configured Dutch statistics description, including for assistive technology. */
.kim-egberink-cookiebanner .cmplz-categories .cmplz-category .cmplz-description-statistics {
    display: none;
}
