.wpcfto_range_slider {
    position: relative;
    padding: 25px 0 20px;
    &__pin {
        position: absolute;
        top: 0;
        text-align: center;
        line-height: 20px;
        font-size: 13px;
        font-weight: 500;
        background-color: #fff;
        color: #000;
        width: auto;
        min-width: 37px;
        height: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        transform: translateX(-50%);

        &::after {
            content: "";
            position: absolute;
            border: 4px solid transparent;
            border-top-color: #fff;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
        }
    }
}

.stm_metaboxes_grid .slider_r {
    .wpcfto_generic_field_range_slider {
        & {
            display: flex;
            justify-content: space-between;
            flex-direction: row;
            align-items: center;
            padding: 20px;
        }
        .wpcfto_field_title {
            & {
                width: 30%;
            }
            label {
                display: block;
            }
            .field-description {
                display: block;
                margin-top: 10px;
            }
        }
    }
}

.range-slider {
    display: block;
    height: 20px;
}

.range-slider.disabled {
    opacity: 0.5;
}

.range-slider-inner {
    display: inline-block;
    position: relative;
    height: 100%;
    width: 100%;
}

.range-slider-rail,
.range-slider-fill {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    height: 8px;
    border-radius: 100px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.range-slider-rail {
    width: 100%;
    background-color: #f6f9fc;
    height: 8px;
    border-radius: 100px;
    border: 1px solid #bec5cb;
}

.range-slider-fill {
    background-color: $accent;
}

.range-slider-knob {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
    background-color: #2985f7;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.range-slider-hidden {
    display: none !important;
}
