.m_templates{
    @extend %grid;
    align-items: flex-start;

    .widgets-list{
        @include set-col(s, 4);
        @include set-col(lg, 3);

        // ul{
        //     display: flex;
        //     flex-wrap: wrap;
        // }

        position: sticky;
        ul{
            @include media-max(lg){
                display: flex;
                flex-wrap: wrap;
                margin-left: -5px;
            }
        }
        li{
            @include media-max(lg){
                margin: 5px;
            }
        }
    }

    .m-widget{
        width: 100%;
        border-radius: 3px;
        height: auto;
        position: relative;
        &:focus{
            border:1px solid $red;
        }
    }

    h3{
        font-size: 14px !important;
        font-weight: 800;
        text-transform: uppercase;
        color: #00235b;
    }
}

.m_template{
    &__title, &__input{
        @include set-col(s, 4);
        @include set-col(lg, 12);

        width:100%;
    }

    &__form{
        @include set-col(s, 4);
        @include set-col(lg, 9);
    }
    &__list{
        width:100%;
        background   : $lightgrey;
        border       : 1px solid $lightblue;
        border-radius: 5px;
        padding      : 20px;
        margin-bottom: 20px;


        background   : $white;
    
        box-shadow   : 0 2px 4px 0 $peacock-blue-10;

        // display: flex;
        // justify-content: center;
        // align-items: center;
    }
   
}

.m_success{
    border-left: 5px solid $success;
    background: $white;
    box-shadow   : 0 2px 4px 0 $peacock-blue-10;

    padding: 20px;
    margin-bottom: 30px;

    @include rem-size(14);
    font-weight: 600;
}
.m_error{
    border-left: 5px solid $red;
    background: $white;
    box-shadow   : 0 2px 4px 0 $peacock-blue-10;

    padding: 20px;
    margin-bottom: 30px;

    @include rem-size(14);
    font-weight: 600;
}

.onDrag-clone{
    height: 65px;
    border-radius: 5px;
    overflow: hidden;
    .m-widget__header{
        height: 65px;
        border-radius: 5px;
        overflow: hidden;
        border: 0px solid transparent !important;
        &:focus{
            border: 0px solid transparent !important;
        }
    }
}