/* Slider */
.tss-slider-div {
    width: 100%;
    padding-bottom: 8px;
}

.tss-slider-container {
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    display: block;
}

    .tss-slider-container.tss-vertical {
        transform: rotate(270deg);
    }

        .tss-slider-container.tss-vertical .tss-slider {
            margin-left: -50%;
        }

        .tss-slider-container.tss-vertical .tss-slider-fake-progress {
            margin-left: -50%;
        }

        .tss-slider-container.tss-vertical .tss-slider-fake-background {
            margin-left: -50%;
        }

.tss-slider-fake-progress {
    border-radius: 4px 0px 0px 4px;
    background-color: var(--tss-slider-color);
    position: absolute;
    left: 0px;
    top: 4px;
    height: 8px;
    z-index: 0;
    -webkit-user-select: none;
    user-select: none;
}

.tss-slider-container input:hover ~ .tss-slider-fake-progress {
    background-color: var(--tss-primary-background-color);
}

.tss-slider-container input.tss-disabled ~ .tss-slider-fake-progress {
    background-color: var(--tss-disabled-foreground-color);
}

.tss-slider-container input.tss-disabled:hover ~ .tss-slider-fake-progress {
    background-color: var(--tss-disabled-foreground-color);
}

.tss-slider-fake-background {
    border-radius: 4px;
    background-color: rgba(var(--tss-slider-active-color-root), 0.3);
    position: relative;
    left: 0px;
    top: 4px;
    height: 8px;
    width: 100%;
    z-index: 0;
    -webkit-user-select: none;
    user-select: none;
}

.tss-slider-container input:hover ~ .tss-slider-fake-background {
    background-color: var(--tss-slider-active-color);
}

.tss-slider-container input.tss-disabled ~ .tss-slider-fake-background {
    background-color: var(--tss-slider-disabled-color);
}


.tss-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 0px;
    border-radius: 4px;
    background-color: var(--tss-slider-color);
    outline: none;
    cursor: pointer;
}

    .tss-slider.tss-fake {
        background-color: transparent;
        border-color: transparent;
        position: absolute;
        left: 0;
        top: 7px;
        z-index: 1;
    }

        .tss-slider.tss-fake:hover {
            background-color: transparent;
        }

        .tss-slider.tss-fake:disabled {
            background-color: transparent;
        }

    .tss-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 24px;
        border-radius: 10px;
        background-color: var(--tss-default-background-color);
        border: 2px solid var(--tss-slider-color);
    }

    .tss-slider::-moz-range-thumb {
        width: 16px;
        height: 24px;
        border-radius: 10px;
        background-color: var(--tss-default-background-color);
        border: 2px solid var(--tss-slider-color);
    }

    .tss-slider::-moz-range-progress {
        height: 8px;
        border-radius: 4px;
        background-color: var(--tss-default-border-color);
    }

    .tss-slider:hover {
        background-color: var(--tss-slider-active-color);
    }

        .tss-slider:hover::-webkit-slider-thumb {
            border-color: var(--tss-primary-background-color);
        }

        .tss-slider:hover::-moz-range-thumb {
            border-color: var(--tss-primary-background-color);
        }

        .tss-slider:hover::-moz-range-progress {
            background-color: var(--tss-primary-background-color);
        }

    .tss-slider.tss-disabled {
        background-color: var(--tss-slider-disabled-color);
    }

        .tss-slider.tss-disabled::-webkit-slider-thumb {
            border-color: var(--tss-disabled-foreground-color);
        }

        .tss-slider.tss-disabled::-moz-range-thumb {
            border-color: var(--tss-disabled-foreground-color);
        }

        .tss-slider.tss-disabled::-moz-range-progress {
            background-color: var(--tss-disabled-foreground-color);
        }