.wk-checkbox{
    display: flex;
    align-items: center;

    &:hover{
        
        .wk-checkbox__outer{
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            border-color: $secondary;
            // &:not(.wk-checkbox__outer--active) {
            //     &::before{
            //         opacity: .2;
            //     }
            // }
        }
    }

    &__label{
        user-select: none;
        cursor: pointer;

        &--disabled{
            color: $gray;
        }
    }

    &__cbox{
        flex-shrink: 0;
        margin-right: 5px;
    }

    input[type=checkbox]{
        display: none;
    }

    &__outer{
        width: 20px;
        height: 20px;
        border-radius: 5px;
        border: 1px solid $gray_400;
        cursor: pointer;
        position: relative;
        overflow: hidden;

        // &::before{
        //     content: "";
        //     position: absolute;
        //     top: 0;
        //     left: 0;
        //     width: 100%;
        //     height: 100%;
        //     border-radius: 3px;
        //     transform: scale(.35);
        //     background-color: $secondary;
        //     opacity: 0;
        //     transition: opacity .1s ease;
        // }

        transition: all .2s ease;

        &--active{
            border-color: $secondary;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
    }

    &__inner{
        position: absolute;
        // display: flex;
        // justify-content: center;
        // align-items: center;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        background-color: $secondary;
        color: $success;
        transition: all .2s ease;
        opacity: 0;
        transform: scale(.9);

        .wk-checkbox__rcont{
            width: 14px;
            height: 14px;
            top: 2px;
            left: 2px;
            position: relative;
            transform: translate(-2px, -4px) rotate(35deg);
        }

        .wk-checkbox__r1{
            position: absolute;
            width: 2px;
            height: 12px;
            background-color: #fff;
            bottom: 0;
            right: 0;
            border-radius: 1px;

            transform-origin: center bottom;
            transform: scaleY(0);

            transition: transform .2s ease;
            


            &--active{
                transform: scaleY(1);
                transition-delay: .4s;
            }

        }
        .wk-checkbox__r2{
            position: absolute;
            width: 7px;
            height: 2px;
            background-color: #fff;
            bottom: 0;
            right: 0;
            border-radius: 1px;

            transform-origin: left center;
            transform: scaleX(0);

            transition: transform .2s ease;
            

            &--active{
                transform: scaleY(1);
                transition-delay: .2s;
            }

        }

        &--active{
            opacity: 1;
            transform: scale(1);
        }
    
    }
}