.sclc-swatches{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:14px 0;clear:both}.sclc-heading{flex-basis:100%;font-size:13px;font-weight:600}.sclc-swatches .sclc-swatch{display:inline-block;flex:0 0 25px;width:25px;height:25px;min-height:0;padding:0;border-radius:50%;border:2px solid #fff;outline:1px solid #a8a8a8;background:var(--sclc-color)!important;cursor:pointer;box-shadow:none;line-height:1;text-decoration:none}.sclc-swatch:hover,.sclc-swatch[aria-pressed=true]{outline:2px solid #16164c;outline-offset:2px}.sclc-swatches button:focus-visible,.sclc-swatches a:focus-visible,.sclc-preview button:focus-visible{outline:3px solid #16164c;outline-offset:3px}.sclc-more{font-size:12px;white-space:nowrap}.sclc-swatches .sclc-reset{border:0;padding:4px 6px;min-height:0;background:transparent;color:inherit;text-decoration:underline;font-size:12px;cursor:pointer}.sclc-swatches [hidden]{display:none!important}.sclc-status{flex-basis:100%;font-size:12px}.sclc-status:empty{display:none}.sclc-preview{width:100%}.sclc-preview-main{width:100%;line-height:0}.sclc-preview-main img{display:block;width:100%;height:auto}.sclc-preview-caption{font-size:13px;margin:8px 0}.sclc-preview-thumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}.sclc-preview-thumbs button{padding:6px 10px;min-height:36px;border:1px solid #bbb;border-radius:3px;background:transparent;color:inherit;cursor:pointer;font-size:12px}.sclc-preview-thumbs button[aria-pressed=true]{border-color:#16164c;outline:1px solid #16164c}.sclc-preview-thumbs .sclc-worn{padding:2px}.sclc-worn img{width:56px;height:56px;object-fit:cover}.sclc-dot{display:inline-block;vertical-align:middle;width:16px;height:16px;flex:0 0 16px;border:2px solid #fff;outline:1px solid #aaa;border-radius:50%;background:var(--sclc-color);margin-inline-end:7px}.sclc-filter{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:16px 0}.sclc-filter strong{flex-basis:100%}.sclc-filter-choice{display:inline-flex;align-items:center;font-size:13px}.sclc-filter-choice[aria-current=true]{font-weight:bold;text-decoration:underline}.sclc-swatches[data-sclc-context=card]{justify-content:inherit;margin-block:10px}@media(pointer:coarse){.sclc-swatches .sclc-swatch{flex-basis:32px;width:32px;height:32px}.sclc-swatches{gap:12px}.sclc-preview-thumbs button{min-height:44px}}

/* Blocksy's dropdown is a multi-column widget grid. Let the inline Lumise
   filter span that grid; keep Blocksy's native wrapping, labels and controls.
   Scoped to this attribute and dropdown mode, including AJAX-inserted widgets. */
#woo-filters-panel[data-behaviour="drop-down"] .ct-filter-content > .ct-widget:has(.ct-filter-widget[data-filter-param="filter_lumise-couleur"][data-display-type="inline"]) {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}

/* V3: disclosure stays on the card; photo thumbnails retain native sizing. */
.sclc-swatches button.sclc-more{display:inline-flex;align-items:center;justify-content:center;min-width:25px;min-height:25px;height:auto;padding:2px 4px;border:0;background:transparent;color:inherit;font:inherit;font-size:12px;line-height:1.4;cursor:pointer;box-shadow:none}
.sclc-preview-thumbs{gap:10px var(--sclc-thumb-gap, 10px);margin-top:10px}
.sclc-preview-thumbs button.sclc-photo-thumb{flex:0 0 var(--sclc-thumb-width, calc((100% - 30px)/4));width:var(--sclc-thumb-width, calc((100% - 30px)/4));min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden;line-height:0;box-sizing:border-box}
.sclc-photo-thumb img{display:block;width:100%;height:auto;aspect-ratio:var(--sclc-thumb-ratio, 1);object-fit:contain}
.sclc-preview-thumbs button.sclc-photo-thumb[aria-pressed=true]{outline:2px solid #16164c;outline-offset:2px}

/* Keep the native thumbnail frame, but fit the coloured mask as an actual
   proportional image box. Empty space around it must remain transparent. */
.sclc-photo-thumb .sclc-thumb-mask{display:block;position:relative;width:100%;aspect-ratio:var(--sclc-thumb-ratio, 1);background:transparent}
.sclc-photo-thumb .sclc-thumb-mask img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:auto;height:auto;max-width:100%;max-height:100%;aspect-ratio:auto;object-fit:fill;margin:0;padding:0;border:0}

/* Category previews: retain the original image geometry and product link. */
.sclc-card-media{display:block;position:relative}
.ct-media-container.sclc-card-active{position:relative}
.sclc-card-active > img,.sclc-card-active > picture{visibility:hidden!important}
.sclc-card-active > .sclc-card-preview{display:block;position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none;background:var(--sclc-card-background, #fff)}
.sclc-card-active > .sclc-card-preview > img{position:absolute!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;aspect-ratio:auto!important;object-fit:fill!important;opacity:1!important;visibility:visible!important;margin:0!important;padding:0!important;border:0!important}

/* Inset only the colour backing, not the image: prevents coloured hairlines
   from the outer transparent pixels of a scaled Lumise mask. */
.sclc-card-active > .sclc-card-preview > img.sclc-card-mask{background-color:transparent!important;background-image:linear-gradient(var(--sclc-mask-color),var(--sclc-mask-color));background-position:center;background-repeat:no-repeat;background-size:calc(100% - 4px) calc(100% - 4px)}

/* Only the dropdown explicitly kept open after a Lumise filter selection. */
#woo-filters-panel[data-behaviour="drop-down"].sclc-filter-keep-open {
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.sclc-filter-error { color: #9c2222; }
