/* Shared numeric facets: native handles, exact bounds, and a full-width action. */
.range-filter .fxgp-range-slider {
    position: relative;
    box-sizing: border-box;
    height: 40px;
    margin: 0 10px 8px;
    direction: ltr;
}

.range-filter .fxgp-range-slider-track,
.range-filter .fxgp-range-slider-selected {
    position: absolute;
    top: 18px;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 4px;
    background: var(--border-color, #b8bec6);
}

.range-filter .fxgp-range-slider-selected {
    top: 0;
    background: var(--primary-color, #176b87);
}

.range-filter .fxgp-range-slider-handle {
    position: absolute;
    top: 0;
    left: -10px;
    box-sizing: border-box;
    width: calc(100% + 20px);
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.range-filter .fxgp-range-slider-handle::-webkit-slider-thumb {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color, #176b87);
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--background-color, var(--bg-main-color, #fff));
    cursor: grab;
    pointer-events: auto;
}

.range-filter .fxgp-range-slider-handle::-moz-range-thumb {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color, #176b87);
    border-radius: 50%;
    background: var(--background-color, var(--bg-main-color, #fff));
    cursor: grab;
    pointer-events: auto;
}

.range-filter .fxgp-range-slider-handle:focus-visible { outline: none; }
.range-filter .fxgp-range-slider-handle:focus-visible::-webkit-slider-thumb {
    outline: 2px solid var(--primary-color, #176b87);
    outline-offset: 3px;
}
.range-filter .fxgp-range-slider-handle:focus-visible::-moz-range-thumb {
    outline: 2px solid var(--primary-color, #176b87);
    outline-offset: 3px;
}
.range-filter .fxgp-range-slider.is-disabled { opacity: .5; }
.range-filter .fxgp-range-slider-handle:disabled::-webkit-slider-thumb { cursor: not-allowed; }
.range-filter .fxgp-range-slider-handle:disabled::-moz-range-thumb { cursor: not-allowed; }

.range-filter .ais-RangeInput-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 8px;
    margin: 0;
    width: 100%;
}

.range-filter .ais-RangeInput-label {
    min-width: 0;
    margin: 0;
}

.range-filter .ais-RangeInput-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid var(--border-color, #b8bec6);
    border-radius: 5px;
    background: var(--background-color, var(--bg-main-color, #fff));
    color: var(--text-default, var(--text-default-color, #171717));
    font: inherit;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
}

.range-filter .ais-RangeInput-separator {
    color: var(--text-muted, var(--text-muted-color, #647080));
    font-size: 12px;
}

.range-filter .ais-RangeInput-submit {
    grid-column: 1 / -1;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 36px;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid var(--primary-color, #176b87);
    border-radius: 5px;
    background: var(--primary-color, #176b87);
    color: var(--white-color, #fff);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
}

.range-filter .ais-RangeInput-submit:hover:not(:disabled) { filter: brightness(.9); }
.range-filter .ais-RangeInput-submit:active:not(:disabled) { filter: brightness(.8); }
.range-filter :is(.ais-RangeInput-input, .ais-RangeInput-submit):focus-visible {
    outline: 2px solid var(--primary-color, #176b87);
    outline-offset: -3px;
}
.range-filter :is(.ais-RangeInput-input, .ais-RangeInput-submit):disabled {
    opacity: .5;
    cursor: not-allowed;
}
