@import './theme';

.mc-switch{
    display: inline-block;
    cursor: pointer;

    &.mc-switch__disabled{
        opacity: .6;
    }

    &__wrap{
        display: flex;
        align-items: center;
    }

    &__label{
        color: @color-font-nav;

        &.left{
            margin-right: 6px;
        }

        &.right{
            margin-left: 6px;
        }
    }

    &__inner{
        position: relative;
        width: 40px;
        height: 20px;
        background: #DCE4ED;
        border-radius: 30px;
        transition: 200ms;

        &.active{
            background: @color-default;
        }
    }

    &__dot{
        display: inline-block;
        position: absolute;
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
        background: #fff;
        border-radius: 50%;
        transition: 200ms;

        &.active{
            left: 22px;
        }
    }
}
