/**
 * Filtros de la tienda
*/

@media (max-width: 768px) {
    .FiltroFila {
        padding-right: 0;
    }

    #FormFiltroContainer {
        background: var(--color-web-alphalow);
        box-shadow: black 0px 0px 50px;
    }

    #formFiltro {
        padding: 2% 0% !important;
    }

    #ReferenciaSugerencias {
        left: 0;
    }

    #ReferenciaSugerencias > li > .codigo {
        padding-right: 5%;
    }

    #CodigoReferencia, #PalabraSearch {
        font-size: larger !important;
    }

    .SpinnerFiltroReferencia {
        right: 7.5% !important;
    }

    .lista-sugerencias li {        
        padding: 0.5em 1em !important;
    }
}

#RangoPrecios {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#RangoPrecios input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none; /* evita que el de arriba bloquee el otro */
}

#RangoPrecios input[type="range"]::-webkit-slider-thumb {
    pointer-events: all; /* permite arrastrar los thumbs */
}

.range-container input[type="range"] {
    width: 80%;
    appearance: none;
    background: rgb(250, 144, 8);
    padding: 4px 0px;
    border: none;
    border-radius: unset;
    height: 5px;
    outline: none;
    cursor: pointer;
}

.range-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgb(250, 144, 8);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

.range-values {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold
}

.block-finder__body .selected-box .btn-light {
    color: initial
}

.price-filter {
    background-color: rgb(250, 144, 8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.price-filter h2 {
    margin: 0 0 20px;
    font-size: 18px;
}

.FilterLabel {
    color: white !important;
    font-size: 15px !important;
    margin-top: 15px !important;
    margin-bottom: .5rem !important;
    text-transform: none !important;
}

.lista-sugerencias {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-top: none; /* para que se vea conectada al input */
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    background: white;
    z-index: 1000;
    width: 100%; /* Ocupa el mismo ancho que el contenedor */
    box-sizing: border-box;
}

    .lista-sugerencias li {
        color: rgba(95, 95, 95, 1);
        padding: 0.5em 1.5em;
        cursor: pointer;
        display: flex;
        justify-content: space-between; /* Código a la izquierda, nombre a la derecha */
        font-size: 14px;
    }

        .lista-sugerencias li > .nombre {
            font-weight: bold;
        }

        .lista-sugerencias li:hover {
            background-color: #f0f0f0;
        }

/* Spinner pequeño dentro del input */
.SpinnerFiltroReferencia {
    position: absolute;
    right: 2.5%;
    top: 62.5%;
    width: 25px;
    height: 25px;
}

/* Input bloqueado visualmente */
.input-loading {
    background-color: #f5f5f5;
    cursor: not-allowed;
}
