.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: flex-end;
        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;
        overflow: hidden;
        background-color: #ccc;
    }

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

    &__handle {
        position: absolute;
        top: 0;
        width: 1em;
        height: 1em;
        margin-left: -(.5em);
        background-color: currentColor;
        border-radius: 50em;
        transition: .4s ease-out;

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

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

        &-val {
            position: absolute;
            bottom: calc(100% + 6px);
            left: 50%;
            transform: translate(-50%, 0);
            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 {
        font-size: 1rem;
        color: #323232;

        &--min {
            order: -1;
        }

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