/*
 * chrome.css — Catermonkey site chrome (header / nav / footer)
 *
 * Fully self-contained: defines its own variables, owns all chrome layout
 * and styling. Loads on every page. Does NOT depend on cm.css, Divi parent
 * theme, child theme CSS, or any per-page bundle.
 *
 * Markup contracts (see site/_partials/{nav,footer}.<locale>.html):
 *   <header class="cm-header">
 *     <div class="cm-topbar"> … brochure / login / locale switcher … </div>
 *     <nav class="cm-nav" aria-label="Main">
 *       <a class="cm-nav__logo"> <img …> </a>
 *       <ul class="cm-nav__list">
 *         <li class="cm-nav__item cm-nav__item--has-children">
 *           <a class="cm-nav__link">Label</a>
 *           <ul class="cm-nav__submenu cm-nav__submenu--mega"> …items… </ul>
 *         </li>
 *         …
 *       </ul>
 *       <button class="cm-nav__toggle" aria-label="Menu" aria-expanded="false">…</button>
 *     </nav>
 *   </header>
 *
 *   <footer class="cm-footer">
 *     <div class="cm-footer__cta"> Probeer Catermonkey gratis! …button… </div>
 *     <div class="cm-footer__cols">
 *       <section class="cm-footer__col cm-footer__col--brand"> …logo + tagline… </section>
 *       <section class="cm-footer__col"> <h3>Oplossingen</h3> <ul>…</ul> </section>
 *       …
 *     </div>
 *     <div class="cm-footer__legal"> …small print, links… </div>
 *   </footer>
 *
 * Active state (current page): the partials append a small <script> shim
 * that adds `is-current` to the matching <li>. Style accordingly.
 */

/* ============================================================ */
/* Page-level defensive rules                                   */
/* ============================================================ */

/* Kill horizontal scrollbars caused by Divi-soup descendants
   (full-width sections, parallax transforms, 100vw widths that ignore
   the scrollbar gutter, etc.). `clip` is preferred over `hidden`:
   same visual effect, but doesn't establish a scrolling context that
   would break `position: sticky`. Supported in all current browsers.
   Remove once Divi is fully sunset. */
html, body {
  overflow-x: clip;
}

/* ============================================================ */
/* Variables (own copy — chrome doesn't depend on cm.css)       */
/* ============================================================ */

.cm-header,
.cm-footer {
  --cm-c-accent:    #143c41;
  --cm-c-text:      #154c52;
  --cm-c-muted:     #6b7a7c;
  --cm-c-border:    #d8e2e0;
  --cm-c-bg:        #ffffff;
  --cm-c-bg-soft:   #e8f1ec;
  --cm-c-bg-dark:   #154c52;
  --cm-c-yellow:    #fdbf13;
  --cm-c-on-dark:   #ffffff;

  --cm-font:        'Open Sans', Helvetica, Arial, sans-serif;
  --cm-font-nav:    'Figtree', Helvetica, Arial, Lucida, sans-serif;
  --cm-radius:      8px;
  --cm-radius-pill: 999px;
  --cm-shadow-pop:  0 8px 24px rgba(0,0,0,0.08);

  --cm-content-w:   1200px;
  --cm-header-h:    72px;
}

/* ============================================================ */
/* HEADER + TOP BAR                                             */
/* ============================================================ */

.cm-header {
  background: var(--cm-c-bg-soft);
  font-family: var(--cm-font);
  color: var(--cm-c-text);
}

.cm-topbar {
  background: var(--cm-c-bg-soft);
  font-size: 13px;
}
.cm-topbar__inner {
  max-width: var(--cm-content-w);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
}
.cm-topbar a {
  color: var(--cm-c-text);
  text-decoration: none;
}
.cm-topbar a:hover { text-decoration: underline; }

/* Language switcher — <details>/<summary> dropdown.
   Summary shows the current locale code; the menu lists all locales.
   Native <details> handles open/close + click-outside-to-close. */
.cm-langswitch {
  position: relative;
  margin-left: 8px;
}
.cm-langswitch summary {
  list-style: none;            /* hide native triangle marker */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
}
.cm-langswitch summary::-webkit-details-marker { display: none; }   /* Safari */
.cm-langswitch summary::marker { content: ''; }                      /* Firefox */
/* Inline "Language:" hint, only on wider screens — signals that the
   locale code is a clickable dropdown. Hidden on mobile (see media query
   below) where the bare "FR ⌄" is enough. */
.cm-langswitch__label {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.cm-langswitch__caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 150ms ease;
}
.cm-langswitch[open] .cm-langswitch__caret { transform: rotate(180deg); }

/* When closed, the menu must NOT contribute to layout. The UA stylesheet's
   `details:not([open]) > *:not(summary) { display: none }` is supposed to do
   this, but `position: absolute` apparently bypasses it in Chrome — the menu
   ends up `display: block`, 220px wide, pushing the topbar's scrollWidth past
   the viewport. Force `display: none` explicitly. */
.cm-langswitch:not([open]) .cm-langswitch__menu { display: none; }

.cm-langswitch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  color: var(--cm-c-text);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.cm-langswitch__menu li { margin: 0; }
.cm-langswitch__menu a {
  display: block;
  padding: 8px 14px;
  color: var(--cm-c-text);
  text-decoration: none;
  white-space: nowrap;
}
.cm-langswitch__menu a:hover { background: #f4f7f6; text-decoration: none; }
.cm-langswitch__menu a.is-current {
  color: var(--cm-c-accent);
  font-weight: 700;
  pointer-events: none;
}

/* Mobile: bigger touch targets and a wider menu so each row hits the 44px
   target depth recommended for thumb-tappable controls. Also pin the menu
   to the right edge of the viewport so it never overflows on narrow screens. */
@media (max-width: 768px) {
  .cm-langswitch__menu {
    min-width: 220px;
    max-width: calc(100vw - 24px);
    padding: 6px 0;
  }
  .cm-langswitch__menu a {
    padding: 12px 16px;
    font-size: 15px;
  }
  .cm-langswitch summary {
    /* Slightly larger tap target around the trigger. */
    padding: 6px 4px;
    margin: -6px -4px;
  }
  .cm-langswitch__label { display: none; }
}

/* ============================================================ */
/* MAIN NAV                                                     */
/* ============================================================ */

.cm-nav {
  position: relative;          /* anchor for the absolute-positioned mobile menu list */
  max-width: var(--cm-content-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--cm-header-h);
}

.cm-nav__logo { display: inline-flex; }
.cm-nav__logo img { display: block; height: 40px; width: auto; }

.cm-nav__list {
  list-style: none;
  margin: 0 0 0 auto;          /* push the entire menu to the right */
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}

.cm-nav__item { position: relative; }

.cm-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: #154c52;
  font-family: var(--cm-font-nav);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.cm-nav__link:hover {
  opacity: 0.7;
}
.cm-nav__item.is-current > .cm-nav__link,
.cm-nav__item.is-ancestor > .cm-nav__link {
  color: var(--cm-c-accent);
}

/* Dropdown chevron — pure CSS, no icon font */
.cm-nav__item--has-children > .cm-nav__link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.cm-nav__item--has-children:hover > .cm-nav__link::after,
.cm-nav__item--has-children:focus-within > .cm-nav__link::after {
  transform: rotate(180deg);
}

/* CTA button — matches prod's "Probeer gratis": 10px/30px padding, Figtree 13/700, pill */
.cm-nav__cta {
  display: inline-block;
  padding: 10px 30px;
  background: var(--cm-c-yellow);
  color: var(--cm-c-text);
  font-family: var(--cm-font-nav);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 50px;
  transition: opacity 0.15s ease;
}
.cm-nav__cta:hover { opacity: 0.85; }

/* --- Submenus -------------------------------------------------- */

.cm-nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 12px;
  list-style: none;
  background: var(--cm-c-bg);
  border: 1px solid var(--cm-c-border);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow-pop);
  min-width: 240px;
  /* hide by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  z-index: 1000;
}
.cm-nav__item:hover > .cm-nav__submenu,
.cm-nav__item:focus-within > .cm-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cm-nav__submenu li { margin: 0; }
.cm-nav__submenu a {
  display: block;
  padding: 10px 14px;
  color: var(--cm-c-text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}
.cm-nav__submenu a:hover {
  background: var(--cm-c-bg-soft);
  color: var(--cm-c-accent);
}

/* Mega-menu variant: grid of icon-cards (icon above title + description) */
.cm-nav__submenu--mega {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  /* Centre the panel under its trigger so it works whether the trigger
     sits on the left or right half of the nav. Cap width to viewport so
     a near-edge trigger still fits without overflow. */
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  /* Combine -50% X-centre with the base submenu's open/close translateY. */
  transform: translate(-50%, 8px);
  padding: 16px;
}
.cm-nav__item:hover > .cm-nav__submenu--mega,
.cm-nav__item:focus-within > .cm-nav__submenu--mega {
  transform: translate(-50%, 0);
}
.cm-nav__submenu--mega a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  gap: 8px;
  background: transparent;          /* override generic hover bg */
  transition: transform 0.18s ease;
}
.cm-nav__submenu--mega a:hover {
  background: transparent;
  transform: translateY(-2px);
}
.cm-nav__submenu--mega .cm-nav__sub-icon {
  display: block;
  width: 64px;
  height: 64px;
  background: var(--cm-c-bg-soft);
  border-radius: 50%;
  padding: 12px;
  box-sizing: border-box;
  transition: background 0.18s ease;
}
.cm-nav__submenu--mega a:hover .cm-nav__sub-icon {
  background: var(--cm-c-yellow);
}
.cm-nav__submenu--mega .cm-nav__sub-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--cm-c-text);
}
.cm-nav__submenu--mega a:hover .cm-nav__sub-title {
  color: var(--cm-c-text);          /* keep dark teal on hover */
}
.cm-nav__submenu--mega .cm-nav__sub-desc {
  display: block;
  color: var(--cm-c-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* CTA sits flush against the rest of the menu (already right-aligned via list margin-left:auto) */
.cm-nav__list > li:last-child { margin-left: 12px; }

/* --- Mobile toggle --------------------------------------------- */

.cm-nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--cm-c-text);
}
/* SVG must not swallow clicks meant for the button */
.cm-nav__toggle svg { display: block; width: 28px; height: 28px; pointer-events: none; }

/* ============================================================ */
/* RESPONSIVE                                                   */
/* ============================================================ */

@media (max-width: 980px) {
  .cm-topbar__inner { gap: 14px; padding: 6px 16px; }
  .cm-nav { padding: 0 16px; gap: 16px; }
  .cm-nav__toggle { display: inline-flex; margin-left: auto; }

  .cm-nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;                  /* reset desktop's `margin-left: auto` */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cm-c-bg);
    border-top: 1px solid var(--cm-c-border);
    box-shadow: var(--cm-shadow-pop);
    padding: 8px 0;
    z-index: 1000;              /* sit above page content */
    /* hide by default */
    display: none;
  }
  .cm-nav.is-open .cm-nav__list { display: flex; }
  .cm-nav__list > li { width: 100%; border-bottom: 1px solid var(--cm-c-border); }
  .cm-nav__list > li:last-child { margin-left: 0; padding: 16px; border-bottom: 0; }
  .cm-nav__link {
    display: flex;
    justify-content: space-between;
    padding: 18px 24px;
    border-radius: 0;
    font-size: 18px;
  }
  .cm-nav__link:hover { background: transparent; opacity: 1; }

  /* Chevron on parents — bigger + rotates when expanded */
  .cm-nav__item--has-children > .cm-nav__link::after {
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 6px;
  }
  .cm-nav__item.is-open > .cm-nav__link::after { transform: rotate(180deg); }
  .cm-nav__item--has-children:hover > .cm-nav__link::after { transform: none; }

  /* Submenu hidden by default on mobile; expands when parent has .is-open */
  .cm-nav__submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 8px;
    background: transparent;
    min-width: 0;
  }
  .cm-nav__item.is-open > .cm-nav__submenu { display: block; }
  .cm-nav__submenu--mega {
    display: none;          /* same hide-by-default */
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 0 0 8px;
  }
  .cm-nav__item.is-open > .cm-nav__submenu--mega { display: block; }
  /* Cancel the desktop X-centring transform on mobile — iOS keeps :hover /
     :focus-within sticky after a tap, so the higher-specificity hover rule
     would win over the base submenu reset and shove the panel -50% off-screen. */
  .cm-nav__item:hover > .cm-nav__submenu--mega,
  .cm-nav__item:focus-within > .cm-nav__submenu--mega {
    transform: none;
  }
  .cm-nav__submenu--mega a { flex-direction: row; text-align: left; padding: 12px 40px; gap: 12px; }
  .cm-nav__submenu--mega a:hover { transform: none; }
  .cm-nav__submenu--mega .cm-nav__sub-icon { display: none; }
  .cm-nav__submenu--mega .cm-nav__sub-desc { display: none; }
  .cm-nav__submenu a { padding: 12px 40px; font-size: 16px; }

  /* CTA goes full-width at the bottom */
  .cm-nav__cta { display: block; width: 100%; text-align: center; padding: 16px 24px; font-size: 16px; }
}

/* ============================================================ */
/* FOOTER                                                       */
/* ============================================================ */

/* Pre-footer (CTA block). Lighter teal than the footer proper, with a
   fixed-size sawtooth at the top edge biting into the page above.
   Sibling of <footer>, not nested. */
.cm-pre-footer {
  position: relative;
  background: #154c52;
  color: var(--cm-c-on-dark);
  font-family: var(--cm-font);
  text-align: center;
  padding: 64px 24px;
  margin-top: 24px;            /* room for the ::before zigzag above */
}

/* Zigzag teeth: fixed 48px × 24px, 90° apex angle, repeats horizontally
   regardless of viewport width. Sits ABOVE the pre-footer, filled in
   the same color so it visually extends the block upward in sawtooth
   shape. */
.cm-pre-footer::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 24px;
  background-color: #154c52;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'><polygon points='0,24 24,0 48,24'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'><polygon points='0,24 24,0 48,24'/></svg>");
  -webkit-mask-size: 48px 24px;
          mask-size: 48px 24px;
  -webkit-mask-repeat: repeat-x;
          mask-repeat: repeat-x;
}

.cm-pre-footer__inner {
  max-width: 720px;
  margin: 0 auto;
}

/* The page's inline critical CSS sets `h2,h3,…{color:#154c52}` (same
   as our bg). Force white explicitly so the title isn't invisible. */
.cm-pre-footer__title {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--cm-font-nav);
}
.cm-pre-footer__intro {
  max-width: 560px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.5;
}
/* Match the nav CTA's pill button. The page's inline CSS reset includes
   `a { background: transparent }` plus `a { color: #2ea3f2 }`. Hex +
   !important on background/color so no inherited Divi rule wins.
   (`var(--cm-c-yellow)` resolves to the same #fdbf13, but I've seen
   the cascade lose to a more specific reset somewhere.) */
.cm-pre-footer .cm-pre-footer__button {
  display: inline-block !important;
  padding: 14px 36px !important;
  background: #fdbf13 !important;
  color: #154c52 !important;
  font-family: var(--cm-font-nav);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: 999px !important;
  transition: opacity 0.15s ease;
}
.cm-pre-footer .cm-pre-footer__button:hover { opacity: 0.85; }
.cm-pre-footer__callout {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

@media (max-width: 768px) {
  .cm-pre-footer { padding: 48px 20px; }
  .cm-pre-footer__title { font-size: 32px; }
}

/* Footer proper. Darker than the pre-footer so the boundary reads. */
.cm-footer {
  background: #0d3940;
  color: var(--cm-c-on-dark);
  font-family: var(--cm-font);
  font-size: 14px;
  padding: 64px 0 24px;
}

.cm-footer__inner {
  max-width: var(--cm-content-w);
  margin: 0 auto;
  padding: 0 24px;
}

.cm-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.cm-footer__col h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--cm-c-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cm-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Regular nav lists get a yellow ">" chevron. Excludes .cm-footer__social
   so the social-icon list stays icon-only. */
.cm-footer__col > ul:not(.cm-footer__social) > li {
  position: relative;
  padding-left: 16px;
  margin: 0 0 8px;
}
.cm-footer__col > ul:not(.cm-footer__social) > li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cm-c-yellow);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}
.cm-footer__col li { margin: 0 0 8px; }
.cm-footer__col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}
.cm-footer__col a:hover { color: var(--cm-c-on-dark); text-decoration: underline; }

.cm-footer__col--brand .cm-footer__logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}
.cm-footer__col--brand p {
  color: rgba(255,255,255,0.75);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* Phone / contact line */
.cm-footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cm-c-on-dark);
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
}

/* Social icons (use simple text labels — no icon font dependency) */
.cm-footer__social {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.cm-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--cm-c-on-dark);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s ease;
}
.cm-footer__social a:hover { background: rgba(255,255,255,0.2); }
.cm-footer__social svg { width: 18px; height: 18px; fill: currentColor; }

/* Bottom legal strip */
.cm-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.cm-footer__legal nav { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.cm-footer__legal a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.cm-footer__legal a:hover { color: var(--cm-c-on-dark); text-decoration: underline; }

@media (max-width: 768px) {
  .cm-footer { padding: 48px 0 20px; margin-top: 48px; }
  .cm-footer__cta-title { font-size: 24px; }
  .cm-footer__inner { padding: 0 16px; }
  .cm-footer__legal { flex-direction: column; align-items: flex-start; }
}

/* ============================================================ */
/* Cookie consent banner                                        */
/* ============================================================ */
/* Markup: site/_partials/cookie-banner.<locale>.html.
   JS:     site/static.catermonkey.com/js/cookie-consent.js.
   Bottom-right card; flips to bottom-full-width below 480 px. */

.cm-cookie-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  z-index: 10000;
  background: #fff;
  color: #154c52;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.cm-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cm-cookie-banner[hidden] { display: none !important; }

.cm-cookie-banner__inner {
  padding: 20px 22px 18px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.cm-cookie-banner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cm-cookie-banner__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #154c52;
}
.cm-cookie-banner__close {
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #154c52;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
}
.cm-cookie-banner__close:hover { opacity: 1; }

.cm-cookie-banner__intro {
  margin: 0 0 14px;
  color: #154c52;
}

.cm-cookie-banner__categories {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid #eef0ef;
}
.cm-cookie-banner__categories li {
  padding: 10px 0;
  border-bottom: 1px solid #eef0ef;
}
.cm-cookie-banner__categories label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}
.cm-cookie-banner__categories input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #cfd6d4;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms ease;
}
.cm-cookie-banner__categories input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 150ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.cm-cookie-banner__categories input[type="checkbox"]:checked { background: #2ea3f2; }
.cm-cookie-banner__categories input[type="checkbox"]:checked::after { transform: translateX(16px); }
.cm-cookie-banner__categories input[type="checkbox"]:disabled { opacity: 0.6; cursor: not-allowed; }
.cm-cookie-banner__cat-name { color: #154c52; }
.cm-cookie-banner__cat-desc {
  margin: 4px 0 0 48px;
  font-size: 13px;
  color: #5a6a6e;
  font-weight: 400;
}

.cm-cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.cm-cookie-banner__btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cfd6d4;
  background: #fff;
  color: #154c52;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.cm-cookie-banner__btn:hover { background: #f4f7f6; }
.cm-cookie-banner__btn--primary {
  background: #2ea3f2;
  border-color: #2ea3f2;
  color: #fff;
}
.cm-cookie-banner__btn--primary:hover {
  background: #1f8fd6;
  border-color: #1f8fd6;
}
/* "Manage" is a de-emphasized text link so Accept + Decline read as the two
   equal-weight choices (the compliant arrangement). */
.cm-cookie-banner__btn--text {
  flex: 0 1 auto;
  min-width: 0;
  padding: 10px 8px;
  background: none;
  border-color: transparent;
  color: #5a6a6e;
  text-decoration: underline;
}
.cm-cookie-banner__btn--text:hover {
  background: none;
  color: #154c52;
}
/* Compact mode: collapsed toggles + the not-yet-shown Save button stay out of
   the flow until "Manage" is clicked. */
.cm-cookie-banner__categories[hidden],
.cm-cookie-banner__btn[hidden] { display: none !important; }

.cm-cookie-banner__legal {
  margin: 0;
  font-size: 12px;
  color: #5a6a6e;
  text-align: center;
}
.cm-cookie-banner__legal a {
  color: #5a6a6e;
  text-decoration: underline;
}
.cm-cookie-banner__legal a:hover { color: #154c52; }

@media (max-width: 480px) {
  .cm-cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 12px 12px 0 0;
  }
}
