/* --- ZOEKVELD KRUISJE & FUNCTIONALITEIT --- */

/* Verberg het standaard browser-kruisje */
#paint-filter #searchInput::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Custom groot kruisje via SVG achtergrond */
#paint-filter .pill input,
#paint-filter .pill select {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

#paint-filter #searchInput:focus,
#paint-filter #searchInput:focus-visible,
#paint-filter #sortSelect:focus,
#paint-filter #sortSelect:focus-visible,
#paint-filter .pill input:focus,
#paint-filter .pill input:focus-visible,
#paint-filter .pill select:focus,
#paint-filter .pill select:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#paint-filter #searchInput {
  width: 180px;
  font-weight: bold;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B9B9B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 0px;
  transition: background-size 0.2s ease, padding 0.2s ease;
}

/* Toon het kruisje alleen als het veld NIET leeg is */
#paint-filter #searchInput:not(:placeholder-shown) {
  background-size: 20px; 
  padding-right: 5px;
  cursor: pointer;
}

/* Extra groot op mobiel voor dikke vingers */
@media (max-width: 640px) {
  #paint-filter #searchInput:not(:placeholder-shown) {
    background-size: 20px; 
    background-position: right 0px center;
    padding-right: 50px;
  }
}

/* --- FAVORITEN KNOOP & DEELKNOP --- */
.favs-action-btn {
  position: relative;
  z-index: 6 !important;
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  background: #e7e7e7 !important;
  color: #000 !important;
  border: 1px solid #ccc !important;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 45px;
  border-radius: 50px;
  gap: 8px;
  padding: 0 20px;
  font-size: 15px;
  pointer-events: all !important;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

/* pill-klasse mag hoogte/rand niet overschrijven */
.favs-action-btn.pill {
  height: 45px;
  min-height: 45px;
  border-radius: 50px;
  padding: 0 20px;
}

.favs-action-btn:not(#shareFavsBtn):hover {
  background: #d5d5d5 !important;
}

.favs-action-btn.active {
  background: #444 !important;
  color: #fff !important;
}

#shareFavsBtn {
  position: relative;
  overflow: hidden;
  background: #e7e7e7 !important;
}

#shareFavsBtn .share-text {
  display: inline-block;
  line-height: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
  will-change: opacity, transform;
}

#shareFavsBtn::after {
  content: "\2764";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  font-size: 20px;
  line-height: 1;
  color: #fff !important;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  #shareFavsBtn:hover {
    background: #e63946 !important;
    color: #fff !important;
    border-color: #e63946 !important;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
  }

  #shareFavsBtn:hover .share-text {
    opacity: 0;
    transform: scale(0.92);
  }

  #shareFavsBtn:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* --- CENTRALE LOCK & TOOLTIP --- */

/* De blokkade op de containers zelf, NIET op het hele filter */
.filters.locked-filters::before,
.toolbar.locked-filters::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 5;
    cursor: not-allowed;
    pointer-events: all;
}

/* Visuele feedback voor de filters en zoekbalk */
.filters.locked-filters, 
.toolbar.locked-filters .controls .pill:not(.favs-action-btn) {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

/* De kleurstalen (grid) blijven altijd volledig klikbaar */
#grid {
    pointer-events: all !important;
    opacity: 1 !important;
}

/* --- HARTJES OP DE TEGELS --- */
.fav { 
  position: absolute; top: 10px; right: 27px; width: 40px; height: 40px;
  display: grid; place-items: center; cursor: pointer; background: transparent !important;
  border: none !important; box-shadow: none !important; outline: none !important; z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.fav svg { 
  width: 28px; height: 28px; fill: #fff; 
  transition: fill .2s ease, transform .2s ease; 
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2)); 
}

.fav:hover svg { transform: scale(1.1); }
.fav[data-active="true"] svg { fill: #E63946 !important; }

/* --- ALGEMENE STYLING & GRID --- */
#paint-filter * { 
    box-sizing:border-box; 
    -webkit-user-select: none;
    user-select: none;
}

#paint-filter input,
#paint-filter textarea,
#paint-filter select {
  -webkit-user-select: text;
  user-select: text;
}

:root {
  --zmm-label-bg: rgba(255,255,255,.9);
  --zmm-label-text: #222222;
}

#paint-filter {
  --bg:#ffffff; --panel:#fff; --muted:#000000; --chip:#E7E7E7; --text:#222222;
  --label: var(--zmm-label-bg); --label-text: var(--zmm-label-text);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text); background:var(--bg); padding:0px 20px;
}

/* Voorkom layout-jump als de pagina-scrollbar verschijnt/verdwijnt */
html:has(#paint-filter),
body:has(#paint-filter) {
  scrollbar-gutter: stable;
}

.filters { 
  display: flex; 
  justify-content: center; 
  align-items: flex-start; 
  gap: 40px; 
  background: #fff; 
  padding: 16px; 
  border-radius: 18px; 
  margin-bottom: 14px; 
  transition: opacity 0.3s ease; 
  position: relative;
  width: 100%; 
}

/* AANGEPAST: 0 0 50% dwingt af dat beide kolommen exact de helft blijven */
.filters .group { 
  flex: 0 0 50%; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  min-width: 0;
  min-height: 120px; /* Houdt de titels verticaal stabiel */
}

/* Bij slechts Ã©Ã©n merk: merklabel verbergen, kleurfilters volle breedte en gecentreerd */
.filters.filters--single-brand .group:first-child { display: none; }
.filters.filters--single-brand .group:last-child { flex: 1 1 100%; }

.group h3 { margin: 10px; font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--muted); }

/* Breedte van de module, filtermenu */
.chips { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  justify-content: center; 
  width: 100%;
  max-width: 100%; 
}

.chip {
  position: relative; 
  display: inline-flex !important; 
  align-items: center; 
  justify-content: center; 
  padding: 8px 18px !important; 
  border-radius: 50px !important; 
  background: #E7E7E7 !important; 
  border: 1px solid #ccc !important; 
  cursor: pointer; 
  font-size: 15px; 
  color: #333 !important; 
  transition: all .2s ease;
  white-space: nowrap; 
  -webkit-tap-highlight-color: transparent;
}

/* KLEURGERELATEERDE RANDEN VOOR KLEURFILTERS â€“ GEBASEERD OP JS-KLASSE (BETROUWBAAR OP MOBIEL) */
.chip.chip-active-color[data-value="White"] {
  border-color: #e5e7eb !important;
  box-shadow: 0 0 0 2px rgba(229,231,235,0.9);
}

.chip.chip-active-color[data-value="Grey"] {
  border-color: #9ca3af !important;
  box-shadow: 0 0 0 2px rgba(156,163,175,0.9);
}

.chip.chip-active-color[data-value="Neutral"] {
  border-color: #d1b48c !important;
  box-shadow: 0 0 0 2px rgba(209,180,140,0.9);
}

.chip.chip-active-color[data-value="Red-Pink"] {
  border-color: #f97373 !important;
  box-shadow: 0 0 0 2px rgba(249,115,115,0.9);
}

.chip.chip-active-color[data-value="Orange-Yellow"] {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 2px rgba(251,191,36,0.9);
}

.chip.chip-active-color[data-value="Green"] {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.9);
}

.chip.chip-active-color[data-value="Blue"] {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.9);
}

.chip.chip-active-color[data-value="Purple"] {
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 2px rgba(168,85,247,0.9);
}

.chip.chip-active-color[data-value="Dark-Black"] {
  border-color: #111827 !important;
  box-shadow: 0 0 0 2px rgba(17,24,39,0.9);
}

/* Kleurfilter-chips: hover met gekleurde rand (desktop, fijne pointer) */
@media (hover: hover) and (pointer: fine) {
  #colorChips .chip {
    transition:
      border-color 0.28s ease,
      box-shadow 0.28s ease,
      transform 0.22s ease,
      background 0.22s ease;
  }

  #colorChips .chip:not(.chip-active-color):hover {
    transform: translateY(-2px);
  }

  #colorChips .chip[data-value="White"]:not(.chip-active-color):hover {
    border-color: #e5e7eb !important;
    box-shadow: 0 0 0 2px rgba(229, 231, 235, 0.85), 0 6px 16px rgba(148, 163, 184, 0.28);
  }

  #colorChips .chip[data-value="Grey"]:not(.chip-active-color):hover {
    border-color: #9ca3af !important;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.85), 0 6px 16px rgba(107, 114, 128, 0.28);
  }

  #colorChips .chip[data-value="Neutral"]:not(.chip-active-color):hover {
    border-color: #d1b48c !important;
    box-shadow: 0 0 0 2px rgba(209, 180, 140, 0.9), 0 6px 16px rgba(180, 140, 90, 0.3);
  }

  #colorChips .chip[data-value="Red-Pink"]:not(.chip-active-color):hover {
    border-color: #f97373 !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 115, 0.85), 0 6px 16px rgba(239, 68, 68, 0.28);
  }

  #colorChips .chip[data-value="Orange-Yellow"]:not(.chip-active-color):hover {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.9), 0 6px 16px rgba(245, 158, 11, 0.28);
  }

  #colorChips .chip[data-value="Green"]:not(.chip-active-color):hover {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.85), 0 6px 16px rgba(34, 197, 94, 0.28);
  }

  #colorChips .chip[data-value="Blue"]:not(.chip-active-color):hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.85), 0 6px 16px rgba(59, 130, 246, 0.28);
  }

  #colorChips .chip[data-value="Purple"]:not(.chip-active-color):hover {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.85), 0 6px 16px rgba(168, 85, 247, 0.28);
  }

  #colorChips .chip[data-value="Dark-Black"]:not(.chip-active-color):hover {
    border-color: #111827 !important;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.75), 0 6px 16px rgba(17, 24, 39, 0.22);
  }

  /* Geselecteerd: ring iets sterker bij hover */
  #colorChips .chip.chip-active-color[data-value="White"]:hover {
    box-shadow: 0 0 0 3px rgba(229, 231, 235, 1), 0 6px 16px rgba(148, 163, 184, 0.35);
  }
  #colorChips .chip.chip-active-color[data-value="Grey"]:hover {
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 1), 0 6px 16px rgba(107, 114, 128, 0.35);
  }
  #colorChips .chip.chip-active-color[data-value="Neutral"]:hover {
    box-shadow: 0 0 0 3px rgba(209, 180, 140, 1), 0 6px 16px rgba(180, 140, 90, 0.35);
  }
  #colorChips .chip.chip-active-color[data-value="Red-Pink"]:hover {
    box-shadow: 0 0 0 3px rgba(249, 115, 115, 1), 0 6px 16px rgba(239, 68, 68, 0.35);
  }
  #colorChips .chip.chip-active-color[data-value="Orange-Yellow"]:hover {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 1), 0 6px 16px rgba(245, 158, 11, 0.35);
  }
  #colorChips .chip.chip-active-color[data-value="Green"]:hover {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 1), 0 6px 16px rgba(34, 197, 94, 0.35);
  }
  #colorChips .chip.chip-active-color[data-value="Blue"]:hover {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 1), 0 6px 16px rgba(59, 130, 246, 0.35);
  }
  #colorChips .chip.chip-active-color[data-value="Purple"]:hover {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 1), 0 6px 16px rgba(168, 85, 247, 0.35);
  }
  #colorChips .chip.chip-active-color[data-value="Dark-Black"]:hover {
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.95), 0 6px 16px rgba(17, 24, 39, 0.3);
  }
}

.chip input:checked + span,
.chip.chip-active-color span {
  color: #fff !important;
}
.chip.chip-active-color { background: #444 !important; color: #fff !important; }
.chip input { position: absolute !important; opacity: 0 !important; width: 0 !important; height: 0 !important; }

.toolbar { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; margin:10px 2px 18px; position: relative; width: 100%; }
.count { color:#E63946; font-size:17px; font-weight:600; text-align:center; width:100%; }
.controls { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; width: 100%; }

.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ccc; background: #fff; padding: 6px 15px; border-radius: 12px; font-size: 15px; color: #333; height: 50px; }

#paint-filter #sortSelect {
  cursor: pointer;
  padding-right: 4px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(var(--zmm-tile-minmax, 320px), 1fr));
  margin-top: 40px;
  margin-bottom: 75px;
}
.tile {
  aspect-ratio: 16/9;
  border-radius: var(--zmm-tile-radius, 18px);
  overflow: hidden;
  box-shadow: var(--zmm-tile-shadow, 0 4px 10px rgba(0,0,0,.08));
  position: relative;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile.tile--skeleton {
  pointer-events: none;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: none;
  background: linear-gradient(90deg, #ececec 0%, #f4f4f4 45%, #ececec 100%);
  background-size: 200% 100%;
  animation: zmm-tile-skeleton 1.15s ease-in-out infinite;
}
.tile.tile--skeleton:hover {
  transform: none;
  box-shadow: none;
}
@keyframes zmm-tile-skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.tile:hover {
  transform: translateY(var(--zmm-tile-hover-y, -3px));
  box-shadow: var(--zmm-tile-shadow-hover, 0 10px 25px rgba(0,0,0,.15));
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  #paint-filter.zmm-tile-3d-enabled .grid .tile:not(.tile--skeleton) {
    transform-style: preserve-3d;
    will-change: transform;
  }

  #paint-filter.zmm-tile-3d-enabled .grid .tile:not(.tile--skeleton):hover {
    transform: none;
  }

  #paint-filter.zmm-tile-gloss-enabled .grid .tile:not(.tile--skeleton)::before {
    content: "";
    position: absolute;
    inset: -25% -45%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background:
      linear-gradient(
        112deg,
        rgba(255,255,255,0) 35%,
        rgba(255,255,255,.07) 42%,
        rgba(255,255,255,.34) 49%,
        rgba(255,255,255,.12) 54%,
        rgba(255,255,255,0) 65%
      );
    transform: translate3d(
      var(--zmm-tile-gloss-shift-x, 0%),
      var(--zmm-tile-gloss-shift-y, 0%),
      0
    );
    transition: opacity .12s ease, transform .08s linear;
  }

  #paint-filter.zmm-tile-3d-enabled .grid .tile.zmm-tile-3d-active {
    transition: transform .08s linear, box-shadow .08s linear;
    box-shadow: var(
      --zmm-tile-dynamic-shadow,
      var(--zmm-tile-shadow-hover, 0 10px 25px rgba(0,0,0,.15))
    );
  }

  #paint-filter.zmm-tile-gloss-enabled .grid .tile.zmm-tile-gloss-moving::before {
    opacity: .5;
  }
}

@media (prefers-reduced-motion: reduce) {
  #paint-filter.zmm-tile-3d-enabled .grid .tile,
  #paint-filter.zmm-tile-3d-enabled .grid .tile::before,
  #paint-filter.zmm-tile-gloss-enabled .grid .tile::before {
    transform: none !important;
    opacity: 0 !important;
  }
}

#paint-filter .label {
  --zmm-label-max-width: 94%;
  --zmm-label-padding: 10px 12px;
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  min-width: var(--zmm-label-min-width, 168px);
  max-width: var(--zmm-label-max-width);
  background: var(--label, var(--zmm-label-bg, rgba(255,255,255,.9)));
  color: var(--label-text, var(--zmm-label-text, #222));
  padding: var(--zmm-label-padding);
  border-radius: var(--zmm-label-radius, 10px);
  z-index: 1;
  font-family: var(--zmm-tile-font, inherit);
  font-weight:600; text-transform: var(--zmm-label-text-transform, none); font-size: var(--zmm-label-font-size, 14px); line-height:1.15; text-align:center;
  box-sizing: border-box;
}
#paint-filter .label > div,
#paint-filter .label .zmm-label-name {
  margin: 0;
  line-height: 1.15;
  text-transform: var(--zmm-label-name-transform, none);
}
#paint-filter .label small,
#paint-filter .label .zmm-label-brand {
  display: var(--zmm-label-brand-display, block);
  margin-top: 2px;
  line-height: 1.1;
  font-size: var(--zmm-label-brand-size, 12px);
  font-weight: 400;
  text-transform: none;
}

.zmm-mobile-shell { display: block; }

/* Legacy chip-filters + toolbar: uit zicht, blijven in DOM voor sync */
#paint-filter .filters,
#paint-filter .toolbar {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 640px), ((max-width: 1024px) and (hover: none) and (pointer: coarse)) {
  #paint-filter { padding: 0 16px; }
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 48px;
  }
  .grid .tile {
    aspect-ratio: auto;
    height: clamp(104px, 30vw, 132px);
    border-radius: min(14px, var(--zmm-tile-radius, 18px));
  }
  #paint-filter .label {
    --zmm-label-min-width: 180px;
    --zmm-label-max-width: 96%;
    --zmm-label-padding: 8px 12px;
  }
  .grid .fav {
    top: 10px;
    right: 14px;
    width: 34px;
    height: 34px;
  }
  .grid .fav svg {
    width: 22px;
    height: 22px;
  }

  /* Geen desktop-finder-chrome op telefoons/touch-tablets */
  #paint-filter button.zmm-mobile-icon-btn.zmm-desktop-only-btn {
    display: none !important;
  }
  .zmm-mobile-color-label,
  .zmm-mobile-action-label {
    display: none !important;
  }
  #paint-filter {
    --zmm-chrome-scale: 1 !important;
  }
  #paint-filter[data-zmm-tile-size] {
    --zmm-tile-minmax: var(--zmm-tile-minmax-base, 320px);
  }
}

/* --- KLEURENZOEKER CHROME (zoekveld, groepen, acties) --- */
.zmm-mobile-search-wrap {
  margin: 0 0 14px;
  position: relative;
}
#paint-filter .zmm-mobile-search-wrap input[type="search"] {
  width: 100% !important;
  height: 50px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #ececec !important;
  padding: 0 48px 0 18px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #222 !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
#paint-filter .zmm-mobile-search-wrap input[type="search"]::placeholder {
  color: #9b9b9b !important;
  font-weight: 500 !important;
}
#paint-filter .zmm-mobile-search-wrap input[type="search"]:focus,
#paint-filter .zmm-mobile-search-wrap input[type="search"]:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: #ececec !important;
}
.zmm-mobile-search-wrap input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.zmm-search-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: pre;
  pointer-events: none;
  z-index: 1;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  line-height: normal;
  color: #b0b0b0;
  box-sizing: border-box;
  padding: 0 48px 0 18px;
}
.zmm-search-ghost__typed {
  color: transparent;
  flex: 0 0 auto;
}
.zmm-search-ghost__hint {
  color: #b0b0b0;
  overflow: hidden;
  text-overflow: clip;
  flex: 0 1 auto;
  min-width: 0;
}
.zmm-mobile-search-wrap:not(.has-search-ghost-hint) .zmm-search-ghost {
  visibility: hidden;
}
.zmm-mobile-search-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.2' stroke-linecap='round'%3e%3ccircle cx='11' cy='11' r='7'/%3e%3cline x1='16.5' y1='16.5' x2='21' y2='21'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}
.zmm-mobile-search-wrap:has(input:not(:placeholder-shown))::after {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='3' stroke-linecap='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'/%3e%3cline x1='6' y1='6' x2='18' y2='18'/%3e%3c/svg%3e");
  width: 18px;
  height: 18px;
  right: 18px;
  pointer-events: auto;
  cursor: pointer;
}

.zmm-mobile-filter-slot {
  /* Fixed height so circles ↔ sliders never shift the results bar. */
  --zmm-filter-slot-h: 148px;
  display: grid;
  width: 100%;
  height: var(--zmm-filter-slot-h);
  margin: 0 0 10px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  max-height: var(--zmm-filter-slot-h);
  opacity: 1;
  transition:
    height 0.35s ease,
    max-height 0.35s ease,
    margin 0.35s ease,
    opacity 0.25s ease;
}
.zmm-mobile-filter-slot.is-collapsed {
  height: 0;
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.zmm-mobile-filter-slot > .zmm-mobile-circles,
.zmm-mobile-filter-slot > .zmm-mobile-sliders {
  grid-area: 1 / 1;
  margin: 0;
  padding: 0;
  align-self: center;
  justify-self: center;
  /* No opacity crossfade: both layers share one cell; fading both
     briefly stacks them (visible on iPad/WebKit). Instant swap instead. */
}
.zmm-mobile-filter-slot > .zmm-mobile-sliders {
  width: 100%;
}
.zmm-mobile-filter-slot > .zmm-mobile-circles {
  /* Cluster on tablets; still fill narrow phones via min(100%, …) below */
  width: min(100%, calc(5 * var(--zmm-circle-size, 68px) + 4 * 6px));
  margin-inline: auto;
}
.zmm-mobile-filter-slot > .zmm-mobile-circles.is-hidden,
.zmm-mobile-filter-slot > .zmm-mobile-sliders.is-hidden {
  display: none !important;
  pointer-events: none;
}
.zmm-mobile-circles {
  --zmm-circle-size: 68px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, calc(5 * var(--zmm-circle-size) + 4 * 6px));
  margin-inline: auto;
}
.zmm-mobile-circles.is-locked,
.zmm-mobile-sliders.is-locked {
  opacity: 0.35;
  pointer-events: none;
}
.zmm-mobile-color-item {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
}
.zmm-mobile-color-item:nth-child(6) { grid-column: 2 / span 2; }
.zmm-mobile-color-item:nth-child(7) { grid-column: 4 / span 2; }
.zmm-mobile-color-item:nth-child(8) { grid-column: 6 / span 2; }
.zmm-mobile-color-item:nth-child(9) { grid-column: 8 / span 2; }
.zmm-mobile-color-label {
  display: none;
}
#paint-filter .zmm-mobile-color-circle {
  display: block !important;
  /* Phone: fill grid cell, capped so 2-row layout stays usable.
     Wide compact (iPad) and desktop roomy override size below. */
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  min-width: 0 !important;
  max-width: var(--zmm-circle-size, 68px) !important;
  min-height: 44px !important;
  max-height: var(--zmm-circle-size, 68px) !important;
  border-radius: 50% !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  position: relative;
  justify-self: stretch;
  align-self: center;
  box-sizing: border-box !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  -webkit-tap-highlight-color: transparent;
  appearance: none !important;
  -webkit-appearance: none !important;
  overflow: visible;
}
.zmm-mobile-color-check {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.zmm-mobile-color-check::after {
  content: "";
  width: 34%;
  max-width: 22px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}
.zmm-mobile-color-circle.is-selected .zmm-mobile-color-check {
  display: flex;
}

.zmm-mobile-action-label {
  display: none;
}

.zmm-mobile-sliders {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  --zmm-hue-track: linear-gradient(to right, #c86a62 0%, #d48a58 9%, #d4ae62 18%, #9eb068 28%, #6eb088 38%, #5aa8a8 48%, #5a98c0 58%, #7888c8 68%, #b07898 78%, #c06868 88%, #c86a62 100%);
  --zmm-lightness-track: linear-gradient(to right, #5a5248 0%, #a89888 50%, #f2eeea 100%);
  --zmm-hue-thumb-color: #9a8898;
  --zmm-thumb-color: #a89888;
}
.zmm-mobile-slider-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#paint-filter .zmm-mobile-slider-label {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: #222 !important;
  letter-spacing: 0.01em;
  background: none !important;
  border: none !important;
  text-transform: none !important;
}

#paint-filter .zmm-mobile-sliders input[type="range"] {
  width: 100% !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  cursor: pointer;
}
#paint-filter .zmm-mobile-sliders input[type="range"]:focus,
#paint-filter .zmm-mobile-sliders input[type="range"]:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
#paint-filter .zmm-mobile-sliders input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 6px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
#paint-filter .zmm-mobile-sliders input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  margin-top: -11px;
  cursor: pointer;
}
#paint-filter .zmm-mobile-sliders #zmmLightnessSlider::-webkit-slider-runnable-track {
  background: var(--zmm-lightness-track, linear-gradient(to right, #5a5248, #a89888, #f2eeea));
}
#paint-filter .zmm-mobile-sliders #zmmHueSlider::-webkit-slider-runnable-track {
  background: var(--zmm-hue-track);
}
#paint-filter .zmm-mobile-sliders #zmmLightnessSlider::-webkit-slider-thumb {
  background: var(--zmm-thumb-color, #888);
}
#paint-filter .zmm-mobile-sliders #zmmHueSlider::-webkit-slider-thumb {
  background: var(--zmm-hue-thumb-color, #9a8898);
}
#paint-filter .zmm-mobile-sliders input[type="range"]::-moz-range-track {
  height: 12px;
  border-radius: 6px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
#paint-filter .zmm-mobile-sliders #zmmLightnessSlider::-moz-range-track {
  background: var(--zmm-lightness-track, linear-gradient(to right, #5a5248, #a89888, #f2eeea));
}
#paint-filter .zmm-mobile-sliders #zmmHueSlider::-moz-range-track {
  background: var(--zmm-hue-track);
}
#paint-filter .zmm-mobile-sliders input[type="range"]::-moz-range-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  cursor: pointer;
}
#paint-filter .zmm-mobile-sliders #zmmLightnessSlider::-moz-range-thumb {
  background: var(--zmm-thumb-color, #888);
  border: none !important;
}
#paint-filter .zmm-mobile-sliders #zmmHueSlider::-moz-range-thumb {
  background: var(--zmm-hue-thumb-color, #9a8898);
  border: none !important;
}

.zmm-mobile-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 12px;
  border-bottom: 1px solid #b4b4b4;
  margin-bottom: 4px;
  overflow: visible;
}
.zmm-mobile-count {
  font-size: 18px;
  color: #222;
  font-weight: 400;
  line-height: 1.3;
}
.zmm-mobile-count strong {
  font-weight: 800;
  font-size: 19px;
}
.count .zmm-count-loading,
.zmm-mobile-count .zmm-count-loading {
  font-weight: 800;
  font-size: inherit;
}
.zmm-count-dots {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 1em;
  min-width: 1.35em;
  vertical-align: -0.08em;
}
.zmm-count-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: zmm-count-dot-bounce 0.95s ease-in-out infinite;
}
.zmm-count-dots i:nth-child(2) {
  animation-delay: 0.16s;
}
.zmm-count-dots i:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes zmm-count-dot-bounce {
  0%,
  55%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .zmm-count-dots i {
    animation: none;
  }
}
.zmm-mobile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
  overflow: visible;
}
/* Hart op vaste plek; deel verschijnt er links naast zonder verschuiving */
.zmm-mobile-fav-anchor {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}
#paint-filter .zmm-mobile-fav-anchor #zmmMobileFavBtn {
  position: relative;
  z-index: 1;
}
#paint-filter .zmm-mobile-fav-icon-wrap {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  pointer-events: none;
}
#paint-filter .zmm-mobile-fav-icon-wrap .dashicons {
  width: 28px !important;
  height: 28px !important;
  font-size: 28px !important;
  line-height: 28px !important;
}
#paint-filter .zmm-fav-count-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e63946;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-sizing: border-box;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
#paint-filter .zmm-fav-count-badge[hidden] {
  display: none !important;
}
#paint-filter .zmm-mobile-fav-anchor #zmmMobileShareBtn:not(.is-hidden) {
  display: inline-flex !important;
  position: absolute;
  top: 0;
  right: calc(100% + 6px);
  z-index: 2;
}
#paint-filter button.zmm-mobile-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #222 !important;
  cursor: pointer;
  border-radius: 10px !important;
  line-height: 1 !important;
  -webkit-tap-highlight-color: transparent;
  appearance: none !important;
  -webkit-appearance: none !important;
  --zmm-icon-hole: #fff;
}
#paint-filter button.zmm-mobile-icon-btn .dashicons,
#paint-filter button.zmm-mobile-icon-btn .zmm-mobile-icon-svg {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 28px !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  flex-shrink: 0;
  pointer-events: none;
}
#paint-filter .zmm-mobile-fav-icon-wrap .dashicons {
  /* size via parent .zmm-mobile-icon-btn .dashicons rules */
  margin: 0 !important;
}
#paint-filter button.zmm-mobile-icon-btn .zmm-mobile-icon-svg svg {
  display: block;
  width: 26px;
  height: 26px;
}
#paint-filter button.zmm-mobile-icon-btn .zmm-mobile-icon-svg line,
#paint-filter button.zmm-mobile-icon-btn .zmm-mobile-icon-svg polyline,
#paint-filter button.zmm-mobile-icon-btn .zmm-mobile-icon-svg path {
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
#paint-filter button.zmm-mobile-icon-btn .zmm-mobile-icon-svg circle {
  stroke: currentColor;
  stroke-width: 1.85;
  fill: var(--zmm-icon-hole, #fff);
}
#paint-filter button.zmm-mobile-icon-btn.is-active:not(#zmmMobileFavBtn) {
  color: #111 !important;
}
#paint-filter button.zmm-mobile-icon-btn.is-hidden {
  display: none !important;
}
#paint-filter button.zmm-mobile-icon-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}
#paint-filter #zmmMobileFavBtn.is-active .dashicons {
  color: #e63946 !important;
}

/* Mode-toggle: beide faces gestapeld → breedte = langste label, geen verspringing */
#paint-filter button.zmm-mobile-icon-btn.zmm-mobile-mode-toggle {
  display: inline-grid !important;
  grid-template-columns: max-content;
  grid-template-rows: 44px;
  justify-items: start;
  align-items: center;
  align-content: center;
  height: 44px !important;
  max-height: 44px !important;
}
#paint-filter button.zmm-mobile-mode-toggle .zmm-mobile-mode-face {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  visibility: hidden;
  pointer-events: none;
}
#paint-filter button.zmm-mobile-mode-toggle[aria-pressed="false"] .zmm-mobile-mode-face--to-sliders,
#paint-filter button.zmm-mobile-mode-toggle:not([aria-pressed="true"]) .zmm-mobile-mode-face--to-sliders {
  visibility: visible;
}
#paint-filter button.zmm-mobile-mode-toggle[aria-pressed="true"] .zmm-mobile-mode-face--to-groups {
  visibility: visible;
}

/* Desktop-only actions (tile size, …) — verborgen op smalle schermen */
#paint-filter button.zmm-mobile-icon-btn.zmm-desktop-only-btn {
  display: none !important;
}
#paint-filter .zmm-desktop-only-btn .zmm-mobile-icon-svg svg rect {
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
}

/* Tegelgrootte: 1 groot tegeltje ↔ 4 kleinere tegels */
#paint-filter .zmm-tile-size-icons {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0;
  pointer-events: none;
}
#paint-filter .zmm-tile-size-icons .zmm-tile-size-face {
  position: absolute;
  inset: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  visibility: hidden;
}
#paint-filter .zmm-tile-size-toggle:not([aria-pressed="true"]) .zmm-tile-size-face--large,
#paint-filter .zmm-tile-size-toggle[aria-pressed="false"] .zmm-tile-size-face--large {
  visibility: visible;
}
#paint-filter .zmm-tile-size-toggle[aria-pressed="true"] .zmm-tile-size-face--small {
  visibility: visible;
}

#paint-filter .zmm-mobile-options-inline {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 2px;
  background: #fff !important;
  box-shadow: none !important;
  border: none !important;
  transition: max-height 0.32s ease, opacity 0.24s ease, margin 0.32s ease;
  pointer-events: none;
}
#paint-filter .zmm-mobile-options-inline.is-open {
  max-height: 560px;
  opacity: 1;
  margin: 0 0 10px;
  pointer-events: auto;
  background: #fff !important;
}
#paint-filter .zmm-mobile-options-inline button,
#paint-filter .zmm-mobile-options-inline .zmm-mobile-option-label {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-variant: normal !important;
  font-family: inherit !important;
}
#paint-filter button.zmm-mobile-options-tab {
  display: inline-flex !important;
  align-items: center !important;
  border: none !important;
  background: transparent !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  color: #666 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.zmm-mobile-options-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0 12px;
  border-bottom: 1px solid #b4b4b4;
  margin-bottom: 4px;
  background: #fff !important;
}
.zmm-mobile-options-tabs {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
#paint-filter button.zmm-mobile-options-tab.is-active {
  font-weight: 700 !important;
  color: #222 !important;
}
#paint-filter button.zmm-mobile-options-tab.is-hidden {
  display: none !important;
}
.zmm-mobile-options-tab-divider {
  width: 1px;
  height: 18px;
  background: #b4b4b4;
  margin: 0 12px;
  flex-shrink: 0;
}
#paint-filter .zmm-mobile-options-tab-divider.is-hidden {
  display: none !important;
}
#paint-filter button.zmm-mobile-options-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  border: none !important;
  background: transparent !important;
  font-size: 36px !important;
  line-height: 1 !important;
  color: #222 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.zmm-mobile-options-section {
  padding: 10px 0 6px;
  background: #fff !important;
}
.zmm-mobile-options-section.is-hidden { display: none !important; }
.zmm-desktop-options-title { display: none; }
@media (prefers-reduced-motion: reduce) {
  #paint-filter .zmm-mobile-options-inline {
    transition: none;
  }
}
#paint-filter button.zmm-mobile-option-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  width: 100% !important;
  padding: 11px 0 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: #fff !important;
  text-align: left !important;
  cursor: pointer;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: #222 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  border-radius: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent;
}
#paint-filter button.zmm-mobile-option-row .zmm-mobile-option-label {
  color: #222 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}
.zmm-mobile-option-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c8c8c8;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}
.zmm-mobile-option-row.is-selected .zmm-mobile-option-mark {
  border-color: #3b82f6;
  background: #3b82f6;
}
.zmm-mobile-option-row.is-selected .zmm-mobile-option-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.zmm-mobile-option-label { flex: 1; }

/* Wide compact (iPad portrait / similar): one row of circles, no labels.
   Phones (≤640px) keep the 2-row grid. Desktop roomy adds labels when not compact. */
@media (min-width: 641px) {
  /* One fixed slot height for circles + sliders — avoids jump when toggling modes */
  #paint-filter[data-zmm-finder-chrome="compact"] .zmm-mobile-filter-slot {
    --zmm-filter-slot-h: 140px;
    height: var(--zmm-filter-slot-h);
    max-height: var(--zmm-filter-slot-h);
  }

  #paint-filter[data-zmm-finder-chrome="compact"] .zmm-mobile-filter-slot.is-collapsed {
    height: 0;
    max-height: 0;
  }

  #paint-filter[data-zmm-finder-chrome="compact"] .zmm-mobile-filter-slot > .zmm-mobile-circles {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  #paint-filter[data-zmm-finder-chrome="compact"] .zmm-mobile-circles {
    /* Scale with viewport width; stay touch-friendly on iPad portrait */
    --zmm-circle-size: clamp(56px, 8.2vw, 72px);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  #paint-filter[data-zmm-finder-chrome="compact"] .zmm-mobile-color-item {
    grid-column: auto;
    flex: 0 1 var(--zmm-circle-size);
    width: var(--zmm-circle-size);
    min-width: 44px;
    max-width: var(--zmm-circle-size);
  }

  #paint-filter[data-zmm-finder-chrome="compact"] .zmm-mobile-color-item:nth-child(n) {
    grid-column: auto;
  }

  #paint-filter[data-zmm-finder-chrome="compact"] .zmm-mobile-color-item .zmm-mobile-color-circle {
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    max-width: var(--zmm-circle-size) !important;
    max-height: var(--zmm-circle-size) !important;
    flex: 0 0 auto;
  }

  #paint-filter[data-zmm-finder-chrome="compact"] .zmm-mobile-color-label {
    display: none !important;
  }
}

/* Desktop:zelfde chrome, meer ruimte — tenzij chromeFit expliciet “compact” zet.
   Zonder attr of roomy = desktop (voorkomt flash bij laden). */
@media (min-width: 1025px), ((min-width: 641px) and (hover: hover)) {
  #paint-filter:not([data-zmm-finder-chrome="compact"]) {
    padding: 0 8px;
    --zmm-chrome-scale: 1;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-search-wrap {
    max-width: 520px;
    margin: 0 auto 28px;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-filter-slot {
    /* Tight enough for labelled circles + sliders; avoids large empty bands. */
    --zmm-filter-slot-h: calc(136px * var(--zmm-chrome-scale, 1));
    height: var(--zmm-filter-slot-h);
    max-height: var(--zmm-filter-slot-h);
    margin-bottom: 6px;
    /* Circles: grow with content so long labels (e.g. Donker-zwart) are not clipped. */
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
  }

  /* Sliders: stable full width (fit-content collapses when circles are hidden). */
  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-shell[data-mode="sliders"] .zmm-mobile-filter-slot {
    width: min(100%, 920px);
    max-width: min(100%, 920px);
    overflow: hidden;
  }

  /* Zoeken: slot inklappen (desktop height mag .is-collapsed niet overrulen) */
  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-filter-slot.is-collapsed {
    height: 0;
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-circles {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: calc(12px * var(--zmm-chrome-scale, 1)) calc(28px * var(--zmm-chrome-scale, 1));
    width: max-content;
    max-width: none;
    margin-inline: auto;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-color-item {
    grid-column: auto;
    flex: 0 0 auto;
    width: auto;
    min-width: calc(72px * var(--zmm-chrome-scale, 1));
    padding: 0 calc(2px * var(--zmm-chrome-scale, 1));
    gap: calc(10px * var(--zmm-chrome-scale, 1));
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-color-item:nth-child(n) {
    grid-column: auto;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-color-item .zmm-mobile-color-circle {
    width: calc(58px * var(--zmm-chrome-scale, 1)) !important;
    height: calc(58px * var(--zmm-chrome-scale, 1)) !important;
    min-height: calc(58px * var(--zmm-chrome-scale, 1)) !important;
    max-width: calc(58px * var(--zmm-chrome-scale, 1)) !important;
    max-height: calc(58px * var(--zmm-chrome-scale, 1)) !important;
    flex: 0 0 calc(58px * var(--zmm-chrome-scale, 1));
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-color-label {
    display: block;
    font-size: calc(15px * var(--zmm-chrome-scale, 1));
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    color: #222;
    max-width: none;
    white-space: nowrap;
    word-break: normal;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-color-check::after {
    width: calc(19px * var(--zmm-chrome-scale, 1));
    max-width: calc(19px * var(--zmm-chrome-scale, 1));
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-filter-slot > .zmm-mobile-sliders {
    max-width: none;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    justify-self: stretch;
    align-self: center;
    gap: calc(14px * var(--zmm-chrome-scale, 1));
    box-sizing: border-box;
    padding: 0 8px;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-filter-slot > .zmm-mobile-circles {
    width: max-content;
    max-width: none;
    justify-self: center;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-slider-label {
    font-size: calc(14px * var(--zmm-chrome-scale, 1)) !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-sliders input[type="range"] {
    height: calc(36px * var(--zmm-chrome-scale, 1)) !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-results-bar {
    align-items: center;
    padding: 2px 4px 2px;
    margin-bottom: 12px;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-count {
    font-size: 18px;
    line-height: 44px;
    white-space: nowrap;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-actions {
    gap: 22px;
    align-items: center;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-icon-btn.zmm-desktop-only-btn {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 44px !important;
    max-height: 44px !important;
    padding: 0 4px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"])[data-zmm-tile-size="1"] {
    --zmm-tile-minmax: calc(var(--zmm-tile-minmax-base, 320px) * 0.72);
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-fav-anchor {
    position: relative;
    width: auto;
    height: 44px;
    flex: 0 0 auto;
    display: block;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-fav-anchor #zmmMobileFavBtn {
    position: relative;
    z-index: 1;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-fav-anchor #zmmMobileShareBtn:not(.is-hidden) {
    display: inline-flex !important;
    position: absolute;
    top: 0;
    right: calc(100% + 16px);
    z-index: 2;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-icon-btn {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 44px !important;
    max-height: 44px !important;
    padding: 0 4px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-icon-btn.zmm-mobile-mode-toggle {
    justify-items: start;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-action-label {
    display: inline;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: inherit;
    white-space: nowrap;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-shell {
    position: relative;
    overflow: visible;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-search-wrap,
  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-filter-slot,
  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-results-bar {
    position: relative;
    z-index: 42;
    background: #fff;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-options-inline,
  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-options-inline.is-open {
    position: absolute;
    z-index: 41;
    top: auto;
    left: 0;
    right: auto;
    width: 480px;
    max-width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.72) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 14px !important;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform-origin: top center;
    transition: max-height 0.34s ease !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-options-inline {
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-options-inline.is-open {
    padding: 12px 8px 20px 20px !important;
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto;
    max-height: 640px;
    overflow: hidden;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-options-inline.is-desktop-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 20px;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .is-desktop-columns .zmm-mobile-options-header {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 48px;
    height: 48px;
    padding: 0;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .is-desktop-columns .zmm-mobile-options-tabs {
    display: none;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .is-desktop-columns .zmm-mobile-options-section {
    display: block;
    min-width: 0;
    padding-top: 2px;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .is-desktop-columns #zmmMobileBrandsSection {
    padding-right: 20px;
    border-right: 1px solid #e0e0e0;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .is-desktop-columns #zmmMobileBrandsSection.is-hidden {
    display: none !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .is-desktop-columns #zmmMobileBrandsSection.is-hidden + #zmmMobileSortPanel {
    grid-column: 1 / -1;
    padding-right: 56px;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-desktop-options-title {
    display: block;
    margin: 0 0 6px;
    padding: 4px 0 8px;
    border-bottom: 1px solid #e0e0e0;
    color: #222;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .is-desktop-columns #zmmMobileSortPanel .zmm-desktop-options-title {
    padding-right: 48px;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-options-inline::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-options-header,
  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-options-section,
  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-option-row {
    background: transparent !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-options-header {
    width: 100%;
    box-sizing: border-box;
    padding: 2px 0 6px;
    margin-bottom: 0;
    border-bottom: none;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-options-section {
    padding: 2px 0 0;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-options-close {
    margin-right: -4px !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-options-tab,
  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-option-row,
  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-option-row .zmm-mobile-option-label {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-options-tab {
    padding: 4px 0 !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-option-row {
    gap: 10px;
    padding: 5px 0 !important;
  }

  #paint-filter:not([data-zmm-finder-chrome="compact"]) button.zmm-mobile-options-tab.is-active {
    font-weight: 700 !important;
  }
}

/* Transparent colour-finder background (Vormgeving setting) */
#paint-filter[data-zmm-transparent-bg="1"] {
  --bg: transparent;
  background: transparent !important;
}
#paint-filter[data-zmm-transparent-bg="1"] .filters,
#paint-filter[data-zmm-transparent-bg="1"]:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-search-wrap,
#paint-filter[data-zmm-transparent-bg="1"]:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-filter-slot,
#paint-filter[data-zmm-transparent-bg="1"]:not([data-zmm-finder-chrome="compact"]) .zmm-mobile-results-bar {
  background: transparent !important;
}

