/* WS Filter Builder — front-end styles (moved out of the page so they load once). */

/* ======================================================
WS WooCommerce Filter Builder — Global Skin
========================================================= */

/* 1. Root variables for the whole filter skin (GLOBAL) */
:root {
    /* Typography */
    --ws-filter-font-family: "Roboto", sans-serif;
    --ws-filter-font-size: clamp(0.94rem, 0.90517rem + 0.13793vw, 1.00rem);
    --ws-filter-text-color: #1e1e1e;
    --ws-filter-text-weight: 400;

    /* Label */
    --ws-filter-label-color: #1e1e1e;
    --ws-filter-label-bg: #f4f4f4; /* transparent */
    --ws-filter-label-weight: 500;
    --ws-filter-label-font-size: clamp(0.94rem, 0.90517rem + 0.13793vw, 1.00rem);
    --ws-filter-label-padding: 5px 10px 5px 10px;
    --ws-filter-label-radius: 5px;
    --ws-filter-label-hover-bg: #f4f4f4;
    /*--ws-filter-label-active-bg: transparent;*/

    /* Wrapper & spacing */
    --ws-filter-gap-between-filters-row: 5px;
    --ws-filter-gap-between-filters-col: 5px;
    --ws-filter-gap-between-pills: 8px;
    --ws-filter-checkbox-gap-row: 8px;
    --ws-filter-checkbox-gap-col: 8px;

    /* Dropdown field width */
    --ws-filter-input-min-width: auto; /* 150px */

    /* Pills */
    --ws-filter-pill-bg: #ffffff;
    --ws-filter-pill-bg-hover: #1e1e1e;
    --ws-filter-pill-bg-active: #1e1e1e;
    --ws-filter-pill-border: 1px solid #e2e8f0;
    --ws-filter-pill-border-active: #e2e8f0;
    --ws-filter-pill-text: #1e1e1e;
    --ws-filter-pill-text-hover: #ffffff;
    --ws-filter-pill-text-active: #ffffff;
    --ws-filter-pill-radius: 5px;
    --ws-filter-pill-padding: 5px 15px 5px 15px;
    --ws-filter-pill-font-size: clamp(0.94rem, 0.90517rem + 0.13793vw, 1.00rem);

    /* Dropdown (custom select) */
    --ws-filter-dropdown-bg: #fff;
    --ws-filter-dropdown-border: 1px solid #e2e8f0;
    --ws-filter-dropdown-radius: 5px;
    --ws-filter-dropdown-padding: 0px 15px 0px 15px;
    --ws-filter-dropdown-font-size: clamp(0.94rem, 0.90517rem + 0.13793vw, 1.00rem);
    --ws-filter-dropdown-text-color: #1e1e1e;
    --ws-filter-dropdown-text-hover: #ffffff;
    --ws-filter-dropdown-text-active: #ffffff;
    --ws-filter-dropdown-hover-bg: #1e1e1e;
    --ws-filter-dropdown-panel-bg: #ffffff;
    --ws-filter-dropdown-panel-border: #e2e8f0;
    --ws-filter-dropdown-caret-color: #0f172a;

    /* Price slider inputs (the little number fields) */
    --ws-filter-price-input-width: 70px;
    --ws-filter-price-input-padding: 4px 6px 4px 6px;
    --ws-filter-price-input-font-size: clamp(0.94rem, 0.90517rem + 0.13793vw, 1.00rem);
    --ws-filter-price-input-text-color: #1e1e1e;
    --ws-filter-input-border-radius: 5px;
    --ws-filter-input-border: 1px solid #e2e8f0;
    --ws-filter-input-bg: #ffffff;

    /* Price slider track & thumb */
    --ws-filter-slider-track-color: #007E9A;
    --ws-filter-slider-track-height: 4px;
    --ws-filter-slider-thumb-color: #007E9A;
    --ws-filter-slider-thumb-size: 16px;
    --ws-filter-slider-thumb-margin-top: -6px;
    --ws-filter-slider-wrapper-width: 100px;

    /* Reset icon / per-filter reset button */
    --ws-filter-reset-icon-size: 23px;
    --ws-filter-reset-icon-color: #aaaaaa;
    --ws-filter-reset-icon-color-hover: #000000;
    --ws-filter-reset-btn-bg: transparent;
    --ws-filter-reset-btn-bg-hover: transparent;
    --ws-filter-reset-btn-radius: 5px;
    --ws-filter-reset-btn-padding: 0px 0px 0px 0px;

    /* Reset All button (global reset shortcode) */
    --ws-filter-reset-all-bg: #D0D0CE;
    --ws-filter-reset-all-bg-hover: #1e1e1e;
    --ws-filter-reset-all-color: #1e1e1e;
    --ws-filter-reset-all-color-hover: #fff;
    --ws-filter-reset-all-border: 1px solid #e2e8f0;
    --ws-filter-reset-all-radius: 5px;
    --ws-filter-reset-all-padding: 0px 10px 0px 10px;
    --ws-filter-reset-all-weight: 500;

    /* View Results redirect button */
    --ws-filter-view-results-bg: #2563eb;
    --ws-filter-view-results-bg-hover: #1d4ed8;
    --ws-filter-view-results-color: #ffffff;
    --ws-filter-view-results-color-hover: #ffffff;
    --ws-filter-view-results-border: 0px solid transparent;
    --ws-filter-view-results-radius: 10px;
    --ws-filter-view-results-padding: 12px 18px;
    --ws-filter-view-results-font-size: 14px;
    --ws-filter-view-results-font-weight: 600;

    /* Checkboxes */
    --ws-filter-checkbox-size: 20px;
    --ws-filter-checkbox-color: #ff0050;
    --ws-filter-checkbox-border-color: #d0d0ce;
    --ws-filter-checkbox-bg: #ffffff;
    --ws-filter-checkbox-hover-bg: #d0d0ce;
    --ws-filter-checkbox-check-color: #fff;

    /* Sort / filter shared label spacing */
    --ws-filter-header-gap: 5px;

    /* Colour swatch states */
    --ws-filter-swatch-bg-hover: #ffffff;
    --ws-filter-swatch-bg-active: #ffffff;
    --ws-filter-swatch-border-active: 2px solid #000000;

    /* Colour swatch dot + option tweaks */
    --ws-filter-swatch-dot-size: 15px;
    --ws-filter-swatch-dot-radius: 50%;
    --ws-filter-swatch-dot-border: 1px solid rgba(0,0,0,.25);
    --ws-filter-swatch-dot-margin-right: 6px;

    --ws-filter-swatch-option-font-size: clamp(0.94rem, 0.90517rem + 0.13793vw, 1.00rem);
    --ws-filter-swatch-option-padding: 5px 15px;
    --ws-filter-swatch-option-border: 1px solid #e2e8f0;
    --ws-filter-swatch-option-border-active: 2px solid #000; }

/* Colour swatch */
.ws-colour-swatch {
  width: var(--ws-filter-swatch-dot-size);
  height: var(--ws-filter-swatch-dot-size);
  border-radius: var(--ws-filter-swatch-dot-radius);
  background: var(--ws-swatch);
  border: var(--ws-filter-swatch-dot-border);
  display: inline-block;
  margin-right: var(--ws-filter-swatch-dot-margin-right);
  box-sizing: border-box; }

.ws-wc-filters-skin .ws-wc-filter-multiselect-option:has(.ws-colour-swatch){
  font-size: var(--ws-filter-swatch-option-font-size);
  padding: var(--ws-filter-swatch-option-padding);
  border: var(--ws-filter-swatch-option-border); }
.ws-wc-filters-skin .ws-wc-filter-multiselect-option.is-active:has(.ws-colour-swatch){
  border: var(--ws-filter-swatch-option-border-active); }

/* ========================================================
Additional Refinement ONLY IF NEEDED
========================================================= */

/* 2. Base layout & typography (filters) */
.ws-wc-filters-skin.ws-wc-filter-wrapper {
    margin-bottom: var(--ws-filter-wrapper-margin-bottom);
    font-family: var(--ws-filter-font-family);
    font-size: var(--ws-filter-font-size);
    color: var(--ws-filter-text-color);
    font-weight: var(--ws-filter-text-weight); }

/* Sort wrapper should also inherit typography */
.ws-wc-sort-wrapper {
    font-family: var(--ws-filter-font-family);
    font-size: var(--ws-filter-font-size);
    color: var(--ws-filter-text-color);
    font-weight: var(--ws-filter-text-weight); }

.ws-wc-filters-skin .ws-wc-filter-form,
.ws-wc-sort-wrapper .ws-wc-sort-form.ws-wc-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ws-filter-gap-between-filters-row) var(--ws-filter-gap-between-filters-col);
    align-items: center;
    justify-content: flex-start; }

/* 3. Header (Label + Reset) */
.ws-wc-filters-skin .ws-wc-filter-header {
    display: inline-flex;
    align-items: center;
    gap: var(--ws-filter-header-gap); }

/* Label for both filter + sort */
.ws-wc-filters-skin .ws-wc-filter-label,
.ws-wc-sort-wrapper .ws-wc-filter-label {
    font-weight: var(--ws-filter-label-weight);
    font-size: var(--ws-filter-label-font-size);
    color: var(--ws-filter-label-color);
    background: var(--ws-filter-label-bg);
    padding: var(--ws-filter-label-padding);
    border-radius: var(--ws-filter-label-radius);
    margin-right: 0; }

.ws-wc-filters-skin .ws-wc-filter-label:hover,
.ws-wc-sort-wrapper .ws-wc-filter-label:hover {
    background: var(--ws-filter-label-hover-bg); }

/* 4. Generic text input / basic field (e.g. price min/max) */
.ws-wc-filters-skin .ws-wc-filter-control input[type="text"]:not(.ws-wc-search-input),
.ws-wc-filters-skin .ws-wc-filter-control input[type="number"] {
    min-width: var(--ws-filter-input-min-width);
    padding: var(--ws-filter-price-input-padding);
    border-radius: var(--ws-filter-input-border-radius);
    border: var(--ws-filter-input-border) !important;
    background: var(--ws-filter-input-bg);
    color: var(--ws-filter-price-input-text-color);
    font-weight: var(--ws-filter-text-weight); }

/* 5. Checkbox groups (non-pill) */
.ws-wc-filters-skin .ws-wc-filter-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ws-filter-checkbox-gap-row) var(--ws-filter-checkbox-gap-col); }

.ws-wc-filters-skin .ws-wc-filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: var(--ws-filter-text-weight); }

/* Checkbox input itself — fully custom, no system UI */
.ws-wc-filters-skin .ws-wc-filter-checkbox input[type="checkbox"] {
    width: var(--ws-filter-checkbox-size);
    height: var(--ws-filter-checkbox-size);

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-color: var(--ws-filter-checkbox-bg);
    border-radius: 3px;
    border: 1px solid var(--ws-filter-checkbox-border-color) !important;
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease; }

/* The tick mark */
.ws-wc-filters-skin .ws-wc-filter-checkbox input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: border-color 0.15s ease, transform 0.15s ease; }

/* Checked state */
.ws-wc-filters-skin .ws-wc-filter-checkbox input[type="checkbox"]:checked {
    background-color: var(--ws-filter-checkbox-color);
    border-color: var(--ws-filter-checkbox-border-color); }

/* Tick visible when checked */
.ws-wc-filters-skin .ws-wc-filter-checkbox input[type="checkbox"]:checked::before {
    border-right-color: var(--ws-filter-checkbox-check-color);
    border-bottom-color: var(--ws-filter-checkbox-check-color);
    transform: rotate(45deg) scale(1); }

/* Hover state for checkbox (unchecked OR checked) */
.ws-wc-filters-skin .ws-wc-filter-checkbox input[type="checkbox"]:hover {
    background-color: var(--ws-filter-checkbox-hover-bg);
    border-color: var(--ws-filter-checkbox-border-color); }

/* 6. Reset button (icon button for each filter) */
.ws-wc-filters-skin .ws-wc-filter-reset {
    border: none;
    background: var(--ws-filter-reset-btn-bg);
    padding: var(--ws-filter-reset-btn-padding);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ws-filter-reset-btn-radius); }

/* Kill ONLY mouse focus ring, keep keyboard focus */
.ws-wc-filters-skin .ws-wc-filter-reset:focus {
  outline: none;
  box-shadow: none; }

/* Visible keyboard focus for reset icon (STAYS) */
.ws-wc-filters-skin .ws-wc-filter-reset:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
  height: auto;
  border-radius: var(--ws-filter-reset-btn-radius); }

.ws-wc-filters-skin .ws-wc-filter-reset span[aria-hidden="true"] {
    font-size: var(--ws-filter-reset-icon-size);
    color: var(--ws-filter-reset-icon-color); }

.ws-wc-filters-skin .ws-wc-filter-reset:hover {
    background: var(--ws-filter-reset-btn-bg-hover); }

.ws-wc-filters-skin .ws-wc-filter-reset:hover span[aria-hidden="true"] {
    color: var(--ws-filter-reset-icon-color-hover); }

/* Screen-reader only helper */
.ws-wc-filters-skin .ws-wc-sr-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden; }

/* 7. Custom single-select dropdown (filters + sort) */
.ws-wc-filters-skin .ws-custom-select,
.ws-wc-sort-wrapper .ws-custom-select {
    position: relative;
    min-width: var(--ws-filter-input-min-width); }

.ws-wc-filters-skin .ws-custom-select-toggle,
.ws-wc-sort-wrapper .ws-custom-select-toggle {
    width: 100%;
    padding: var(--ws-filter-dropdown-padding);
    border-radius: var(--ws-filter-dropdown-radius);
    border: var(--ws-filter-dropdown-border);
    background: var(--ws-filter-dropdown-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: var(--ws-filter-dropdown-font-size);
    color: var(--ws-filter-dropdown-text-color);
    font-weight: var(--ws-filter-text-weight); }

.ws-wc-filters-skin .ws-custom-select-label,
.ws-wc-sort-wrapper .ws-custom-select-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; }

.ws-wc-filters-skin .ws-custom-select-caret,
.ws-wc-sort-wrapper .ws-custom-select-caret {
    margin-left: 0.5rem;
    color: var(--ws-filter-dropdown-caret-color); }

.ws-wc-filters-skin .ws-custom-select-panel,
.ws-wc-sort-wrapper .ws-custom-select-panel {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 99;
    min-width: 100%;
    max-height: 220px;
    overflow: auto;
    background: var(--ws-filter-dropdown-panel-bg);
    border: 1px solid var(--ws-filter-dropdown-panel-border);
    border-radius: var(--ws-filter-dropdown-radius);
    padding: 0.25rem 0;
    display: none; }

.ws-wc-filters-skin .ws-custom-select-option,
.ws-wc-sort-wrapper .ws-custom-select-option {
    width: 100%;
    padding: 0.3rem 0.6rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: var(--ws-filter-dropdown-font-size);
    color: var(--ws-filter-dropdown-text-color);
    font-weight: var(--ws-filter-text-weight); }

.ws-wc-filters-skin .ws-custom-select-option:hover,
.ws-wc-sort-wrapper .ws-custom-select-option:hover {
    background: var(--ws-filter-dropdown-hover-bg);
    color: var(--ws-filter-dropdown-text-hover); }

.ws-wc-filters-skin .ws-custom-select.is-open .ws-custom-select-panel,
.ws-wc-sort-wrapper .ws-custom-select.is-open .ws-custom-select-panel {
    display: block; }

/* 8. Multiselect as inline chips (pills) */
.ws-wc-filters-skin .ws-wc-filter-multiselect-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ws-filter-gap-between-pills);
    min-width: var(--ws-filter-input-min-width); }

.ws-wc-filters-skin .ws-wc-filter-multiselect-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border-radius: var(--ws-filter-pill-radius);
    border: var(--ws-filter-pill-border);
    background: var(--ws-filter-pill-bg);
    padding: var(--ws-filter-pill-padding);
    font-size: var(--ws-filter-pill-font-size);
    color: var(--ws-filter-pill-text);
    font-weight: var(--ws-filter-text-weight);
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease; }

/* Hide the actual inputs inside pills */
.ws-wc-filters-skin .ws-wc-filter-multiselect-option input[type="checkbox"],
.ws-wc-filters-skin .ws-wc-filter-multiselect-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none; }

/* ✅ Keyboard focus ring for pills (checkbox + radio) */
.ws-wc-filters-skin .ws-wc-filter-multiselect-option:focus-within {
  outline: 2px solid #000;
  outline-offset: 3px; }

/* Text inside the chip */
.ws-wc-filters-skin .ws-wc-filter-multiselect-option span {
    white-space: nowrap;
    color: inherit; }

/* Hover state */
.ws-wc-filters-skin .ws-wc-filter-multiselect-option:hover {
    background: var(--ws-filter-pill-bg-hover);
    border-color: var(--ws-filter-pill-border-active);
    color: var(--ws-filter-pill-text-hover); }

.ws-wc-filters-skin .ws-wc-filter-multiselect-option:hover span {
    color: var(--ws-filter-pill-text-hover); }

/* Selected chip */
.ws-wc-filters-skin .ws-wc-filter-multiselect-option.is-active {
    background: var(--ws-filter-pill-bg-active);
    border-color: var(--ws-filter-pill-border-active);
    color: var(--ws-filter-pill-text-active); }

.ws-wc-filters-skin .ws-wc-filter-multiselect-option.is-active span {
    color: inherit; }

/* ======================================================
Colour swatch pill overrides
========================================================= */

.ws-wc-filters-skin
.ws-wc-filter-multiselect-option:hover:has(.ws-colour-swatch) {
    background: var(--ws-filter-swatch-bg-hover) !important;
    color: var(--ws-filter-pill-text) !important; }

.ws-wc-filters-skin
.ws-wc-filter-multiselect-option:hover:has(.ws-colour-swatch) span:not(.ws-colour-swatch) {
    color: var(--ws-filter-pill-text) !important; }

.ws-wc-filters-skin
.ws-wc-filter-multiselect-option:hover .ws-colour-swatch {
    border: var(--ws-filter-swatch-border-active) !important; }

.ws-wc-filters-skin
.ws-wc-filter-multiselect-option.is-active:has(.ws-colour-swatch) {
    background: var(--ws-filter-swatch-bg-active) !important;
    color: var(--ws-filter-pill-text) !important; }

.ws-wc-filters-skin
.ws-wc-filter-multiselect-option.is-active:has(.ws-colour-swatch) span:not(.ws-colour-swatch) {
    color: var(--ws-filter-pill-text) !important; }

.ws-wc-filters-skin
.ws-wc-filter-multiselect-option.is-active .ws-colour-swatch {
    border: var(--ws-filter-swatch-border-active) !important; }

/* 9. Price range layout */
.ws-wc-filters-skin .ws-price-range-wrapper {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 260px; }

.ws-price-range-display {
    display: none;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.3; }

.ws-price-range-wrapper[data-currency-enabled="1"] .ws-price-range-display {
    display: inline-flex; }

.ws-wc-filters-skin .ws-price-range-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap; }

/* Number inputs for min/max price */
.ws-wc-filters-skin .ws-price-range-input {
    width: var(--ws-filter-price-input-width) !important;
    min-width: var(--ws-filter-price-input-width) !important;
    max-width: var(--ws-filter-price-input-width) !important;
    flex: 0 0 var(--ws-filter-price-input-width) !important;

    padding: var(--ws-filter-price-input-padding) !important;
    border-radius: var(--ws-filter-input-border-radius);
    border: var(--ws-filter-input-border) !important;
    font-size: var(--ws-filter-price-input-font-size) !important;
    color: var(--ws-filter-price-input-text-color);
    text-align: center !important;

    display: inline-block !important;
    box-sizing: border-box !important; }

.ws-wc-filters-skin .ws-price-range-separator {
    font-size: 1rem;
    display: none; }

/* Slider wrapper */
.ws-wc-filters-skin .ws-price-range-slider-wrapper {
    position: relative;
    flex: 0 0 var(--ws-filter-slider-wrapper-width);
    width: var(--ws-filter-slider-wrapper-width);
    min-width: var(--ws-filter-slider-wrapper-width);
    height: 30px; }

/* Both range inputs stacked */
.ws-wc-filters-skin .ws-price-range-slider-wrapper .ws-price-range {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;

    transform: translateY(-50%);
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;

    -webkit-appearance: none;
    appearance: none;
    z-index: 1; }

/* Make the max handle sit above the min handle when they overlap */
.ws-wc-filters-skin .ws-price-range-slider-wrapper .ws-price-range.ws-price-range-max {
    z-index: 2; }

/* WebKit track & thumb */
.ws-wc-filters-skin .ws-price-range-slider-wrapper .ws-price-range::-webkit-slider-runnable-track {
    height: var(--ws-filter-slider-track-height);
    background-color: var(--ws-filter-slider-track-color) !important; }

.ws-wc-filters-skin .ws-price-range-slider-wrapper .ws-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--ws-filter-slider-thumb-size);
    height: var(--ws-filter-slider-thumb-size);
    border-radius: 50%;
    background-color: var(--ws-filter-slider-thumb-color) !important;
    pointer-events: auto;
    margin-top: var(--ws-filter-slider-thumb-margin-top) !important;
    position: relative; }

/* Firefox track & thumb */
.ws-wc-filters-skin .ws-price-range-slider-wrapper .ws-price-range::-moz-range-track {
    height: var(--ws-filter-slider-track-height);
    background-color: var(--ws-filter-slider-track-color) !important; }

.ws-wc-filters-skin .ws-price-range-slider-wrapper .ws-price-range::-moz-range-thumb {
    width: var(--ws-filter-slider-thumb-size);
    height: var(--ws-filter-slider-thumb-size);
    border-radius: 50%;
    background-color: var(--ws-filter-slider-thumb-color) !important;
    margin-top: 0 !important;
    position: relative; }

/* Date range picker */
.ws-wc-filters-skin .ws-date-range-group {
    position: relative;
    min-width: var(--ws-filter-input-min-width); }

.ws-wc-filters-skin .ws-date-range-trigger {
    width: 100%;
    min-width: 220px;
    padding: var(--ws-filter-date-picker-padding);
    border-radius: var(--ws-filter-date-picker-radius);
    border: var(--ws-filter-date-picker-border);
    background: var(--ws-filter-date-picker-bg);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-size: var(--ws-filter-date-picker-font-size);
    color: var(--ws-filter-date-picker-text-color);
    font-weight: var(--ws-filter-text-weight);
    text-align: left; }

.ws-wc-filters-skin .ws-date-range-trigger-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; }

.ws-wc-filters-skin .ws-date-range-trigger-text.is-placeholder {
    color: var(--ws-filter-date-picker-placeholder-color); }

.ws-wc-filters-skin .ws-date-range-trigger-icon {
    flex: 0 0 auto;
    color: var(--ws-filter-date-picker-icon-color);
    cursor: pointer; }

.ws-wc-filters-skin .ws-date-range-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 99;
    min-width: 320px;
    background: var(--ws-filter-date-picker-panel-bg);
    border: 1px solid var(--ws-filter-date-picker-panel-border);
    border-radius: var(--ws-filter-date-picker-panel-radius);
    box-shadow: var(--ws-filter-date-picker-panel-shadow);
    padding: 12px; }

.ws-wc-filters-skin .ws-date-range-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px; }

.ws-wc-filters-skin .ws-date-range-preset {
    border: var(--ws-filter-date-picker-preset-border);
    border-radius: var(--ws-filter-date-picker-preset-radius);
    background: var(--ws-filter-date-picker-preset-bg);
    color: var(--ws-filter-date-picker-preset-text-color);
    padding: var(--ws-filter-date-picker-preset-padding);
    font-size: var(--ws-filter-date-picker-preset-font-size);
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }

.ws-wc-filters-skin .ws-date-range-preset:hover,
.ws-wc-filters-skin .ws-date-range-preset:focus-visible {
    background: var(--ws-filter-date-picker-preset-hover-bg);
    color: var(--ws-filter-date-picker-preset-hover-text-color); }

.ws-wc-filters-skin .ws-date-range-preset.is-active,
.ws-wc-filters-skin .ws-date-range-preset[aria-pressed="true"] {
    background: var(--ws-filter-date-picker-preset-active-bg);
    color: var(--ws-filter-date-picker-preset-active-text-color); }

.ws-wc-filters-skin .ws-date-range-panel-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px; }

.ws-wc-filters-skin .ws-date-range-panel-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92em;
    color: var(--ws-filter-date-picker-inner-label-color); }

.ws-wc-filters-skin .ws-date-range-input {
    width: 100%;
    padding: var(--ws-filter-date-picker-inner-field-padding);
    border-radius: var(--ws-filter-date-picker-inner-field-radius);
    border: var(--ws-filter-date-picker-inner-field-border) !important;
    background: var(--ws-filter-date-picker-inner-field-bg);
    color: var(--ws-filter-date-picker-inner-field-text-color);
    font-size: var(--ws-filter-date-picker-inner-field-font-size);
    box-sizing: border-box; }

.ws-wc-filters-skin .ws-date-range-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: none; }

.ws-wc-filters-skin .ws-date-range-input::-webkit-calendar-picker-indicator,
.ws-wc-filters-skin .ws-date-range-input::-moz-calendar-picker-indicator {
    color: var(--ws-filter-date-picker-inner-field-icon-color); }

.ws-wc-filters-skin .ws-date-range-panel-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--ws-filter-date-picker-inner-actions-gap);
    margin-top: 12px; }

.ws-wc-filters-skin .ws-date-range-clear,
.ws-wc-filters-skin .ws-date-range-apply {
    cursor: pointer;
    font: inherit;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }

.ws-wc-filters-skin .ws-date-range-clear {
    border: var(--ws-filter-date-picker-clear-border);
    border-radius: var(--ws-filter-date-picker-clear-radius);
    background: var(--ws-filter-date-picker-clear-bg);
    color: var(--ws-filter-date-picker-clear-text-color);
    padding: var(--ws-filter-date-picker-clear-padding); }

.ws-wc-filters-skin .ws-date-range-clear:hover,
.ws-wc-filters-skin .ws-date-range-clear:focus-visible {
    background: var(--ws-filter-date-picker-clear-hover-bg);
    color: var(--ws-filter-date-picker-clear-hover-text-color); }

.ws-wc-filters-skin .ws-date-range-apply {
    border: var(--ws-filter-date-picker-apply-border);
    border-radius: var(--ws-filter-date-picker-apply-radius);
    background: var(--ws-filter-date-picker-apply-bg);
    color: var(--ws-filter-date-picker-apply-text-color);
    padding: var(--ws-filter-date-picker-apply-padding); }

.ws-wc-filters-skin .ws-date-range-apply:hover:not([disabled]):not([aria-disabled="true"]),
.ws-wc-filters-skin .ws-date-range-apply:focus-visible:not([disabled]):not([aria-disabled="true"]) {
    background: var(--ws-filter-date-picker-apply-hover-bg);
    color: var(--ws-filter-date-picker-apply-hover-text-color); }

.ws-wc-filters-skin .ws-date-range-apply[disabled],
.ws-wc-filters-skin .ws-date-range-apply[aria-disabled="true"] {
    opacity: 1;
    cursor: not-allowed;
    background: var(--ws-filter-date-picker-apply-disabled-bg);
    color: var(--ws-filter-date-picker-apply-disabled-text-color); }

.ws-wc-filters-skin .ws-date-range-trigger:focus,
.ws-wc-filters-skin .ws-date-range-input:focus,
.ws-wc-filters-skin .ws-date-range-clear:focus,
.ws-wc-filters-skin .ws-date-range-apply:focus,
.ws-wc-filters-skin .ws-date-range-preset:focus {
    outline: 2px solid #000;
    outline-offset: 2px; }

.ws-wc-filters-skin .ws-date-range-input::-ms-clear,
.ws-wc-filters-skin .ws-date-range-input::-ms-reveal {
    cursor: pointer; }

/* 10. Orientation handling (desktop) */
@media (min-width: 769px) {
    .ws-wc-filters-skin[data-desktop-orientation="horizontal"] .ws-wc-filter-form {
        flex-direction: row;
        align-items: center; }
    .ws-wc-filters-skin[data-desktop-orientation="horizontal"] .ws-wc-filter-control,
    .ws-wc-filters-skin[data-desktop-orientation="horizontal"] .ws-wc-filter-checkbox-group {
        flex-direction: row; }

    .ws-wc-filters-skin[data-desktop-orientation="vertical"] .ws-wc-filter-form {
        flex-direction: column;
        align-items: flex-start; }
    .ws-wc-filters-skin[data-desktop-orientation="vertical"] .ws-wc-filter-label {
        margin-right: 0;
        margin-bottom: 0.35rem; }
    .ws-wc-filters-skin[data-desktop-orientation="vertical"] .ws-wc-filter-control,
    .ws-wc-filters-skin[data-desktop-orientation="vertical"] .ws-wc-filter-checkbox-group {
        flex-direction: column;
        align-items: flex-start; } }

/* 11. Orientation handling (mobile) */
@media (max-width: 768px) {
    .ws-wc-filters-skin[data-mobile-orientation="horizontal"] .ws-wc-filter-form {
        flex-direction: row;
        align-items: center; }
    .ws-wc-filters-skin[data-mobile-orientation="horizontal"] .ws-wc-filter-control,
    .ws-wc-filters-skin[data-mobile-orientation="horizontal"] .ws-wc-filter-checkbox-group {
        flex-direction: row; }

    .ws-wc-filters-skin[data-mobile-orientation="vertical"] .ws-wc-filter-form {
        flex-direction: column;
        align-items: flex-start; }
    .ws-wc-filters-skin[data-mobile-orientation="vertical"] .ws-wc-filter-label {
        margin-right: 0;
        margin-bottom: 0.35rem; }
    .ws-wc-filters-skin[data-mobile-orientation="vertical"] .ws-wc-filter-control,
    .ws-wc-filters-skin[data-mobile-orientation="vertical"] .ws-wc-filter-checkbox-group {
        flex-direction: column;
        align-items: flex-start; } }

/* 12. Reset All button (from [wc_filter_reset_all]) */
body button.ws-wc-filter-reset-all {
    padding: var(--ws-filter-reset-all-padding);
    border-radius: var(--ws-filter-reset-all-radius);
    border: var(--ws-filter-reset-all-border);
    background: var(--ws-filter-reset-all-bg);
    color: var(--ws-filter-reset-all-color);
    font-family: var(--ws-filter-font-family);
    font-size: var(--ws-filter-font-size);
    font-weight: var(--ws-filter-reset-all-weight);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease; }

body button.ws-wc-filter-reset-all:hover {
    background: var(--ws-filter-reset-all-bg-hover);
    color: var(--ws-filter-reset-all-color-hover); }

body button.ws-wc-filter-reset-all:focus,
body button.ws-wc-filter-reset-all:active {
    outline: none;
    box-shadow: none;
    background: var(--ws-filter-reset-all-bg-hover);
    color: var(--ws-filter-reset-all-color-hover); }

/* ======================================================
13. Search box (5.2)
========================================================= */

/* The control is a shrink-to-fit flex item by default, which leaves a percentage
   width on the box with nothing to resolve against. Only search wrappers change. */
.ws-wc-filter-wrapper[data-ws-search="1"] .ws-wc-filter-form {
    width: 100%; }

.ws-wc-filter-wrapper[data-ws-search="1"] .ws-wc-filter-control {
    flex: 1 1 240px;
    width: auto;
    min-width: 0;
    box-sizing: border-box; }

.ws-wc-search-box {
    display: flex;
    align-items: stretch;
    gap: var(--ws-filter-search-gap, 0px);
    width: var(--ws-filter-search-width, 100%);
    max-width: var(--ws-filter-search-max-width, 520px);
    font-family: var(--ws-filter-font-family); }

.ws-wc-search-box .ws-wc-search-field {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-width: 0; }

.ws-wc-filter-wrapper .ws-wc-search-box input.ws-wc-search-input {
    width: 100%;
    min-width: 0;
    height: var(--ws-filter-search-height, 46px);
    box-sizing: border-box;
    margin: 0;
    background: var(--ws-filter-search-bg, #ffffff);
    border: var(--ws-filter-search-border, 1px solid #e2e8f0);
    border-radius:
        var(--ws-filter-search-radius-tl, var(--ws-filter-search-radius, 4px))
        var(--ws-filter-search-radius-tr, var(--ws-filter-search-radius, 4px))
        var(--ws-filter-search-radius-br, var(--ws-filter-search-radius, 4px))
        var(--ws-filter-search-radius-bl, var(--ws-filter-search-radius, 4px));
    padding: var(--ws-filter-search-padding, 0px 38px 0px 14px);
    font-family: var(--ws-filter-font-family);
    font-size: var(--ws-filter-search-font-size);
    font-weight: var(--ws-filter-text-weight);
    color: var(--ws-filter-search-text-color, #1e1e1e);
    line-height: normal;
    box-shadow: none;
    transition: border-color 0.15s ease; }

.ws-wc-filter-wrapper .ws-wc-search-box input.ws-wc-search-input::placeholder {
    color: var(--ws-filter-search-placeholder-color, #9ca3af);
    opacity: 1; }

.ws-wc-filter-wrapper .ws-wc-search-box input.ws-wc-search-input:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--ws-filter-search-focus-border-color, #0f766e); }

.ws-wc-filter-wrapper .ws-wc-search-box input.ws-wc-search-input::-webkit-search-cancel-button {
    display: none; }

.ws-wc-search-box .ws-wc-search-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--ws-filter-search-clear-color, #9ca3af);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; }

.ws-wc-search-box.has-value .ws-wc-search-clear {
    display: inline-flex; }

.ws-wc-search-box .ws-wc-search-clear:hover,
.ws-wc-search-box .ws-wc-search-clear:focus {
    outline: none;
    background: transparent;
    color: var(--ws-filter-search-clear-hover-color, #4b5563); }

.ws-wc-filter-wrapper .ws-wc-search-box button.ws-wc-search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ws-filter-search-btn-width, 56px);
    height: var(--ws-filter-search-height, 46px);
    padding: 0;
    margin: 0;
    border: none;
    border-radius:
        var(--ws-filter-search-btn-radius-tl, var(--ws-filter-search-btn-radius, 4px))
        var(--ws-filter-search-btn-radius-tr, var(--ws-filter-search-btn-radius, 4px))
        var(--ws-filter-search-btn-radius-br, var(--ws-filter-search-btn-radius, 4px))
        var(--ws-filter-search-btn-radius-bl, var(--ws-filter-search-btn-radius, 4px));
    background: var(--ws-filter-search-btn-bg, #0f766e);
    color: var(--ws-filter-search-btn-color, #ffffff);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease; }

.ws-wc-filter-wrapper .ws-wc-search-box button.ws-wc-search-submit:hover,
.ws-wc-filter-wrapper .ws-wc-search-box button.ws-wc-search-submit:focus {
    outline: none;
    background: var(--ws-filter-search-btn-bg-hover, #115e59);
    color: var(--ws-filter-search-btn-color, #ffffff); }

.ws-wc-search-box .ws-wc-search-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round; }

.ws-wc-search-box.is-loading .ws-wc-search-icon {
    opacity: 0.55; }

.ws-wc-search-box.is-loading .ws-wc-search-field::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--ws-filter-search-focus-border-color, #0f766e);
    opacity: 0.35;
    animation: ws-search-pulse 0.9s ease-in-out infinite; }

@keyframes ws-search-pulse {
    0%   { opacity: 0.15; }
    50%  { opacity: 0.45; }
    100% { opacity: 0.15; } }

.ws-wc-filter-wrapper[data-desktop-orientation="vertical"] .ws-wc-search-box {
    width: 100%; }

@media (max-width: 767px) {
    .ws-wc-search-box {
        max-width: 100%; } }


/* ---- Layout rules that used to be printed inside every [wc_filter] ---- */
        .ws-wc-filter-wrapper {
            margin-bottom: 1rem; }
		.ws-filter-conditional-hidden {
			display: none !important; }

		.ws-filter-host-hidden {
			display: none !important;
			margin: 0 !important;
			padding: 0 !important;
			min-height: 0 !important; }

		.ws-wc-filter-form {
			display: flex;
			flex-wrap: wrap;
			gap: 0.5rem 1rem;
			align-items: center;
			justify-content: flex-start; }

		.ws-wc-filter-header {
			display: inline-flex;
			align-items: center;
			gap: 0.5rem; }

        .ws-wc-filter-label {
            font-weight: 600;
            margin-right: 0; }
        .ws-wc-filter-control input[type="text"] {
            min-width: 180px;
            padding: 0.4rem 0.6rem; }
        .ws-wc-filter-checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem 0.8rem; }
        .ws-wc-filter-checkbox {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem; }

        /* Reset button (minimal) */
        .ws-wc-filter-reset {
            border: none;
            background: none;
            padding: 0;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center; }

        .ws-wc-sr-only {
            position: absolute;
            left: -9999px;
            width: 1px;
            height: 1px;
            overflow: hidden; }

        /* Custom single-select dropdown */
        .ws-custom-select {
            position: relative;
            min-width: 180px; }
        .ws-custom-select-toggle {
            width: 100%;
            padding: 0.4rem 0.6rem;
            border-radius: 4px;
            border: 1px solid #e2e8f0;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            font-size: 0.9rem; }
        .ws-custom-select-label {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis; }
        .ws-custom-select-caret {
            margin-left: 0.5rem; }
        .ws-custom-select-panel {
            position: absolute;
            top: calc(100% + 2px);
            left: 0;
            z-index: 99;
            min-width: 100%;
            max-height: 220px;
            overflow: auto;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            padding: 0.25rem 0;
            display: none; }
        .ws-custom-select-option {
            width: 100%;
            padding: 0.3rem 0.6rem;
            border: none;
            background: transparent;
            text-align: left;
            cursor: pointer;
            font-size: 0.9rem; }
        .ws-custom-select-option:hover {
            background: #f1f5f9; }
        .ws-custom-select.is-open .ws-custom-select-panel {
            display: block; }

/* Multiselect as inline chips */
.ws-wc-filter-multiselect-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 180px; }

.ws-wc-filter-multiselect-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.15rem 0.7rem;
    font-size: 0.85rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }

/* Hide actual inputs inside pills; we only use them for form submission + JS hooks */
.ws-wc-filter-multiselect-option input[type="checkbox"],
.ws-wc-filter-multiselect-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none; }

/* A11Y: show visible focus ring when the hidden checkbox/radio gets keyboard focus */
.ws-wc-filter-multiselect-option:focus-within {
  outline: 2px solid currentColor;
  outline-offset: 3px; }

/* Text inside the chip */
.ws-wc-filter-multiselect-option span {
    white-space: nowrap; }

/* Hover state */
.ws-wc-filter-multiselect-option:hover {
    background: #f1f5f9; }

/* Selected chip */
.ws-wc-filter-multiselect-option.is-active {
    background: #3b82f6;
    border-color: #2563eb;
    color: #ffffff; }
.ws-wc-filter-multiselect-option.is-active span {
    color: inherit; }

/* DESKTOP: vertical layout */
@media (min-width: 769px) {
    .ws-wc-filter-wrapper[data-desktop-orientation="vertical"]
    .ws-wc-filter-multiselect-inline {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start; }

    .ws-wc-filter-wrapper[data-desktop-orientation="vertical"]
    .ws-wc-filter-multiselect-option {
        width: 100%;
        justify-content: flex-start; } }

/* MOBILE: vertical layout */
@media (max-width: 768px) {
    .ws-wc-filter-wrapper[data-mobile-orientation="vertical"]
    .ws-wc-filter-multiselect-inline {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start; }

    .ws-wc-filter-wrapper[data-mobile-orientation="vertical"]
    .ws-wc-filter-multiselect-option {
        width: 100%;
        justify-content: flex-start; } }

/* Price range layout */
.ws-price-range-wrapper {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 260px; }

.ws-price-range-display {
    display: none;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.3; }

.ws-price-range-wrapper[data-currency-enabled="1"] .ws-price-range-display {
    display: inline-flex; }

.ws-price-range-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap; }

.ws-price-range-input {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    flex: 0 0 70px !important;

    padding: 4px 6px !important;
    border-radius: 6px;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.9rem !important;
    text-align: center !important;

    display: inline-block !important;
    box-sizing: border-box !important; }

.ws-price-range-separator {
    font-size: 1rem; }

/* Slider sits between two inputs and expands */
.ws-price-range-slider-wrapper {
    position: relative;
    flex: 1 1 auto;
    min-width: 140px;
    height: 30px; /* slightly taller wrapper for true centering */ }

/* Both range inputs stacked */
.ws-price-range-slider-wrapper .ws-price-range {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;

    transform: translateY(-50%); /* centres the track itself */
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none; }

/* --- PERFECTLY CENTRED THUMBS --- */
.ws-price-range-slider-wrapper .ws-price-range::-webkit-slider-thumb {
    pointer-events: auto;
    margin-top: -7px !important;  /* this perfectly aligns the pin with the track */ }

.ws-price-range-slider-wrapper .ws-price-range::-webkit-slider-runnable-track {
    height: 4px; }

.ws-price-range-slider-wrapper .ws-price-range::-moz-range-track {
    height: 4px; }

.ws-price-range-slider-wrapper .ws-price-range::-moz-range-thumb {
    margin-top: 0 !important; /* Firefox centers automatically */ }

        /* Orientation handling */
        @media (min-width: 769px) {
            .ws-wc-filter-wrapper[data-desktop-orientation="horizontal"] .ws-wc-filter-form {
                flex-direction: row;
                align-items: center; }
            .ws-wc-filter-wrapper[data-desktop-orientation="horizontal"] .ws-wc-filter-control,
            .ws-wc-filter-wrapper[data-desktop-orientation="horizontal"] .ws-wc-filter-checkbox-group {
                flex-direction: row; }

            .ws-wc-filter-wrapper[data-desktop-orientation="vertical"] .ws-wc-filter-form {
                flex-direction: column;
                align-items: flex-start; }
            .ws-wc-filter-wrapper[data-desktop-orientation="vertical"] .ws-wc-filter-label {
                margin-right: 0;
                margin-bottom: 0.35rem; }
            .ws-wc-filter-wrapper[data-desktop-orientation="vertical"] .ws-wc-filter-control,
            .ws-wc-filter-wrapper[data-desktop-orientation="vertical"] .ws-wc-filter-checkbox-group {
                flex-direction: column;
                align-items: flex-start; } }

        @media (max-width: 768px) {
            .ws-wc-filter-wrapper[data-mobile-orientation="horizontal"] .ws-wc-filter-form {
                flex-direction: row;
                align-items: center; }
            .ws-wc-filter-wrapper[data-mobile-orientation="horizontal"] .ws-wc-filter-control,
            .ws-wc-filter-wrapper[data-mobile-orientation="horizontal"] .ws-wc-filter-checkbox-group {
                flex-direction: row; }

            .ws-wc-filter-wrapper[data-mobile-orientation="vertical"] .ws-wc-filter-form {
                flex-direction: column;
                align-items: flex-start; }
            .ws-wc-filter-wrapper[data-mobile-orientation="vertical"] .ws-wc-filter-label {
                margin-right: 0;
                margin-bottom: 0.35rem; }
            .ws-wc-filter-wrapper[data-mobile-orientation="vertical"] .ws-wc-filter-control,
            .ws-wc-filter-wrapper[data-mobile-orientation="vertical"] .ws-wc-filter-checkbox-group {
                flex-direction: column;
                align-items: flex-start; } }


/* ---- View Results button ---- */
            .ws-wc-filter-redirect-wrap {
                display: inline-flex;
                align-items: center;
                gap: 10px; }
            body button.ws-wc-filter-redirect-button {
                appearance: none;
                border: var(--ws-filter-view-results-border);
                border-radius: var(--ws-filter-view-results-radius);
                padding: var(--ws-filter-view-results-padding);
                background: var(--ws-filter-view-results-bg);
                color: var(--ws-filter-view-results-color);
                line-height: 1.2;
                cursor: pointer;
                font-size: var(--ws-filter-view-results-font-size);
                font-weight: var(--ws-filter-view-results-font-weight);
                transition: background .15s ease, color .15s ease, transform .08s ease, opacity .2s ease, border-color .15s ease; }
            body button.ws-wc-filter-redirect-button:hover,
            body button.ws-wc-filter-redirect-button:focus {
                background: var(--ws-filter-view-results-bg-hover);
                color: var(--ws-filter-view-results-color-hover);
                outline: none;
                box-shadow: none;
                opacity: 1; }
            body button.ws-wc-filter-redirect-button:active {
                transform: translateY(1px); }

/* ---- WS Filter Builder 6: loading state while results refresh ---- */
.ws-is-loading { opacity: .55; transition: opacity .15s ease; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ws-is-loading { transition: none; } }
.ws-custom-select-option:focus-visible, .ws-custom-select-toggle:focus-visible, .ws-wc-filter-multiselect-option:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }


/* ---- 6.1.0: buttons keep their look under any Elementor kit or theme ----
   A kit's "Buttons" style (and Hello Elementor's reset) applies to every
   <button> on the page, including the dropdowns, their options and the
   search button, and leaked uppercase, letter spacing, fonts and hover
   colours into them. These undo anything the filter doesn't set itself. */
.ws-wc-filters-skin button[type],
.ws-wc-sort-wrapper button[type],
body button.ws-wc-filter-reset-all,
body button.ws-wc-filter-redirect-button {
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    min-height: 0; }
.ws-wc-filters-skin button.ws-custom-select-toggle:hover,
.ws-wc-filters-skin button.ws-custom-select-toggle:focus,
.ws-wc-sort-wrapper button.ws-custom-select-toggle:hover,
.ws-wc-sort-wrapper button.ws-custom-select-toggle:focus {
    background: var(--ws-filter-dropdown-bg);
    color: var(--ws-filter-dropdown-text-color);
    border: var(--ws-filter-dropdown-border); }
.ws-wc-filters-skin button.ws-custom-select-option[aria-selected="true"] {
    font-weight: 600; }
.ws-wc-filter-label { margin: 0; }

/* ---- 6.1.0: Elementor widgets fill their column ----
   A Filter widget's dropdown or search box takes the width of the widget,
   rather than shrinking to its text. Change it under Style ▸ Layout. */
.elementor-widget-wsfb-filter .ws-wc-filter-wrapper,
.elementor-widget-wsfb-filter .ws-wc-filter-form { width: 100%; }
.elementor-widget-wsfb-filter .ws-wc-filter-control { flex: 1 1 auto; min-width: 0; align-self: stretch; }
.elementor-widget-wsfb-filter .ws-custom-select,
.elementor-widget-wsfb-filter .ws-wc-search-box { width: 100%; max-width: 100%; min-width: 0; }
.elementor-widget-wsfb-reset-all button.ws-wc-filter-reset-all,
.elementor-widget-wsfb-view-results button.ws-wc-filter-redirect-button { width: var(--wsfb-btn-width, auto); }
.elementor-widget-wsfb-view-results .ws-wc-filter-redirect-wrap { display: inline-flex; width: var(--wsfb-btn-width, auto); }
/* Dropdowns in a widget match the search box's height, so a row of filters lines up. */
.elementor-widget-wsfb-filter .ws-custom-select-toggle,
.elementor-widget-wsfb-sort .ws-custom-select-toggle { min-height: var(--ws-filter-search-height, 44px); }
