.cooSwitch{
    display: inline-block;
    height: 34px;
    min-width: 64px;
    border-radius: 36px;
    position: relative;
    border-width: 1px;
    border-style: solid;
    transition: all .3s ease;
    &--default{
        background-color: #dadada;
        border-color: #d9d9d9;
    }
    &--large{

    }
    &--small{

    }
    &-success{

    }
    &--primary{

    }
    &--error{

    }
    &-text{
        line-height: 34px;
        color: $white;
        margin-left: 40px;
        margin-right: 10px;
        transition: all .3s ease;
        user-select: none;
        font-size: 14px;
    }
    &-icon{
        position: absolute;
        width: 32px;
        height: 32px;
        top: 1px;
        left: 1px;
        border-radius: 32px;
        background-color: $white;
        cursor: pointer;
        box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, .2);
        transition: all .3s ease;
    }
    &--disabled{
        opacity: .6;
        .cooSwitch-icon{
            cursor: not-allowed;
            background-image: linear-gradient(0deg, #fff, #f8f8f8);
            background-color: $white;
        }
    }
}

.cooSwitch--checked {
    &.cooSwitch{
        &--primary{
            background-color: $blue;
            border-color: $blue;
        }
        &--success{
            background-color: $green;
            border-color: $green;
        }
        &--error{
            background-color: $red;
            border-color: $red;
        }
    }
    .cooSwitch {
        &-icon{
            margin-left: -1px;
            left: 100%;
            transform: translateX(-100%);
        }
        &-text{
            color: $white;
            margin-left: 10px;
            margin-right: 40px;
            transition: all .3s ease;
        }
    }
}