/*!
 * True Makeup Theme — range-slider.css
 *
 * Custom double-thumb price range slider used inside the shop
 * filter panel. Stacks two native <input type="range"> elements
 * on top of each other and absolutely-positions a filled bar
 * between them. WCAG 2.4.7 / 1.4.11-compliant focus rings on
 * both Gecko and Chromium thumbs.
 */


/* ─── Host container + accordion pad ─────────────────────── */

.price-filter .inner { padding: 1rem 0; }

.range-slider {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    margin-bottom: 24px;   /* leave room under the thumbs for the output pills */
    text-align: center;
}


/* ─── Stacked native range inputs ────────────────────────── */

.range-slider input {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 18px;
    margin: 0;
    padding: 0;
    pointer-events: none;  /* only the thumbs themselves are interactive */
}

.range-slider input::-webkit-slider-thumb {
    position: relative;
    z-index: 1;
    pointer-events: all;
}
.range-slider input::-moz-range-thumb {
    position: relative;
    z-index: 10;
    width: 9px;
    pointer-events: all;
    -moz-appearance: none;
}
.range-slider input::-moz-range-track {
    position: relative;
    z-index: -1;
    background-color: var(--color-on-surface);
    border: 0;
}
.range-slider input:last-of-type::-moz-range-track {
    background: none transparent;
    border: 0;
    -moz-appearance: none;
}
.range-slider input[type="range"]::-moz-focus-outer { border: 0; }


/* ─── Thumb focus ring (keyboard only) ───────────────────── */

.range-slider input[type="range"]:focus-visible::-webkit-slider-thumb,
.range-slider input[type="range"]:focus-visible::-moz-range-thumb {
    outline: 2px solid #000;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #000;
}


/* ─── Track + thumb styling ──────────────────────────────── */

.range-slider input[type="range"] {
    background: none;
    -webkit-appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track,
.range-slider input[type="range"]::-ms-track,
.range-slider input[type="range"]::-moz-range-track {
    height: 5px;
    background: transparent;
    border: none;
    border-radius: 999px;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    position: relative;
    z-index: 10000;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    background: var(--color-on-surface);
    border: none;
    border-radius: 0;
    cursor: pointer;
    -webkit-appearance: none;
}
.range-slider input[type="range"]::-ms-thumb {
    position: relative;
    z-index: 10000;
    width: 16px;
    height: 16px;
    margin-top: -5px;
    background: var(--color-on-surface);
    border: none;
    border-radius: 0;
    cursor: pointer;
    -webkit-appearance: none;
}
.range-slider input[type="range"]::-moz-range-thumb {
    position: relative;
    z-index: 10000;
    width: 16px;
    height: 16px;
    margin-top: -9px;
    background: var(--color-on-surface);
    border: none;
    border-radius: 0;
    cursor: pointer;
    -webkit-appearance: none;
}


/* ─── Full + inclusive range bars ────────────────────────── */

.full-range,
.incl-range {
    position: absolute;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-surface-container-low);
    pointer-events: none;
}
.incl-range { background: var(--color-on-surface); }


/* ─── Min / max value pills ─────────────────────────────── */

.output {
    position: absolute;
    bottom: -70%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 30px;
    padding: 0.4rem 1rem;
    background: transparent;
    color: var(--color-on-surface);
    border: 1px solid var(--color-on-surface);
    font-family: var(--font-primary);
    font-size: 13px;
    text-align: center;
}

.output.outputOne { left: 0; }
.output.outputTwo { right: 0; }
