.c-slider {
    $color--element = $color--main;

    position: relative;
    height: 1em;
    margin-top: 35px;
    padding-top: calc(.5em - 1px);
    font-size: 16px;
    color: $color--element;

    &--min-max {
        flexbox();
        align-items: center;
        padding-top: 0;
    }

    &__main {
        flex: 1 0 0;
        position: @position;
        height: @height;
        padding-top: @padding-top;
        margin-left: 10px;
        margin-right: @margin-left;
    }

    &__track {
        position: relative;
        width: 100%;
        height: 2px;
        background-color: #ccc;
        cursor: pointer;

        &:before, &:after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 100%;
            width: 100%;
            height: 6px;
        }

        &:after {
            bottom: auto;
            top: 100%;    
        }

        ^[0]--min-max & {
            margin-left: 10px;
            margin-right: @margin-left;
        }
    }

    &__bar {
        position: absolute;
        height: 2px;
        background-color: currentColor;
        transition: .2s;
    }

    &__handle {
        position: absolute;
        top: 0;
        width: 1.5em;
        height: @width;
        margin-top: calc(-.75em + 1px);
        margin-left: -.75em;

        &:before {
            content: '';
            display: block;
            width: 1em;
            height: @width;
            margin-top: .25em;
            margin-left: @margin-top;
            border-radius: 50em;
            background-color: currentColor;
            transition: .4s ease-out;
        }

        &:hover, &:focus {
            &:before {
                box-shadow: 0 0 0 6px alpha($color--element, 49%);    
            }
        }

        &:active {
            &:before {
                box-shadow: 0 0 0 6px alpha($color--element, 70%);
            }
        }

        &-container {
            z-index: 1;
            transition: .2s;
        }

        &-val {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translate(-50%, -150%);
            padding: 7px 17px;
            background-color: $color--main-dark;
            border-radius: 4px;
            font-size: 10px;
            line-height: 1;
            color: #fff;

            &:after {
                content: '';
                display: block;
                position: absolute;
                bottom: -2px;
                left: calc(50% - 4px);
                width: 7px;
                height: @width;
                transform: rotate(45deg);
                background-color: @background-color;
                border-radius: 2px;
            }
        }
    }

    &__val {
        display: none;
        font-size: 1rem;
        color: #323232;

        ^[0]--min-max & {
            display: block;
        }

        &--min {
            order: -1;
        }

        &--max {
            order: 1;
        }
    }
}