/* WoodMart Product Filters: keep mobile gutter even if Elementor post CSS is stale/optimized away. */
@media (max-width: 767px) {
    .woe-product-filters > .elementor-widget-container {
        padding: 0 10px;
    }
}

/* WoodMart Product Filters: Brand-style image swatches */
.wd-pf-inventory-location li.wd-swatches-brands,
.wd-pf-categories li.wd-swatches-brands,
.vitrinify-gender-brand-swatches li.wd-swatches-brands {
    --wd-swatch-h: 30px;
    --wd-swatch-w: 60px;
}

.wd-pf-inventory-location li.wd-swatch-wrap > a.pf-value,
.wd-pf-categories li.wd-swatch-wrap > a.pf-value,
.vitrinify-gender-brand-swatches li.wd-swatch-wrap > a.pf-value {
    display: flex;
    align-items: center;
    width: 100%;
}

.wd-pf-inventory-location .wd-swatch.vitrinify-inventory-location-swatch,
.wd-pf-categories .wd-swatch.vitrinify-category-filter-swatch,
.vitrinify-gender-brand-swatches .wd-swatch.vitrinify-gender-filter-swatch {
    flex: 1 0 auto;
    width: auto;
    max-width: var(--wd-swatch-w);
    height: var(--wd-swatch-h);
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.wd-pf-inventory-location .vitrinify-inventory-location-swatch .wd-swatch-bg,
.wd-pf-categories .vitrinify-category-filter-swatch .wd-swatch-bg,
.vitrinify-gender-brand-swatches .vitrinify-gender-filter-swatch .wd-swatch-bg {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.wd-pf-inventory-location .vitrinify-inventory-location-swatch::before,
.wd-pf-inventory-location .vitrinify-inventory-location-swatch::after,
.wd-pf-inventory-location .vitrinify-inventory-location-swatch .wd-swatch-bg::before,
.wd-pf-categories .vitrinify-category-filter-swatch::before,
.wd-pf-categories .vitrinify-category-filter-swatch::after,
.wd-pf-categories .vitrinify-category-filter-swatch .wd-swatch-bg::before,
.vitrinify-gender-brand-swatches .vitrinify-gender-filter-swatch::before,
.vitrinify-gender-brand-swatches .vitrinify-gender-filter-swatch::after,
.vitrinify-gender-brand-swatches .vitrinify-gender-filter-swatch .wd-swatch-bg::before {
    content: none !important;
    display: none !important;
}

.wd-pf-inventory-location .vitrinify-inventory-location-swatch img,
.wd-pf-categories .vitrinify-category-filter-swatch img,
.vitrinify-gender-brand-swatches .vitrinify-gender-filter-swatch img {
    display: block;
    width: inherit;
    height: inherit;
    max-height: 100%;
    border-radius: inherit;
    object-fit: contain;
}

.wd-pf-inventory-location .wd-swatch-wrap > a.pf-value:hover .vitrinify-inventory-location-swatch,
.wd-pf-inventory-location .wd-swatch-wrap.wd-active .vitrinify-inventory-location-swatch,
.wd-pf-categories .wd-swatch-wrap > a.pf-value:hover .vitrinify-category-filter-swatch,
.wd-pf-categories .wd-swatch-wrap.wd-active .vitrinify-category-filter-swatch,
.vitrinify-gender-brand-swatches .wd-swatch-wrap > a.pf-value:hover .vitrinify-gender-filter-swatch,
.vitrinify-gender-brand-swatches .wd-swatch-wrap.wd-active .vitrinify-gender-filter-swatch {
    opacity: 0.5;
}

.wd-pf-inventory-location .vitrinify-inventory-location-label,
.wd-pf-categories .vitrinify-category-filter-label,
.vitrinify-gender-brand-swatches .vitrinify-gender-filter-label {
    margin-inline-start: 10px;
    min-width: 0;
}

/* WoodMart active filters: Vitrinify fallback chips */
.wd-active-filters .vitrinify-active-filters-widget ul,
.wd-active-filters .vitrinify-active-filters-widget li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-active-filters .vitrinify-active-filters-widget li::marker {
    content: "";
}
