@use '../abstracts';


#toplevel_page_better-commenting-admin .wp-menu-name {
    font-size: 12px;
}

#adminmenu #toplevel_page_better-commenting-admin div.wp-menu-image {
    width: 34px;
    height: 30px;
}

#adminmenu #toplevel_page_better-commenting-admin div.wp-menu-name {
    padding-left: 30px;
}

.cf-dashboard-layout {
    padding-right: 20px;
    
    * {
        box-sizing: border-box;
    }
    &__header { 
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin: 30px 0 0;
        padding: 15px 20px;
        background-color: #fff;
        border: 1px solid #E2E4E7;

        .main-logo {
            box-shadow: none;
        }

        img.cf-plugin-logo {
            height: auto;
        }
    }
    &__tabs-list {
        display: flex;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin: 0;
        background-color: #fff;
        padding: 0;
        border: 1px solid #E2E4E7;
        border-top: none;

        .nav-tab {
            display: inline-block;
            padding: 15px 0;
            cursor: pointer;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            line-height: 17px;
            margin: 0 20px;
            border: none;
            outline: none;
            box-shadow: none;
            color: #000;
            background-color: transparent;
            border-bottom: 2px solid transparent;


            &.nav-tab-active,.nav-tab-active:hover {
                background-color: transparent;
                border-bottom-color: abstracts.$secondary-theme-color;
                border-bottom-width: 2px;
            }
        }
    }
    .notice {
        margin: 15px 0 2px;
    }
    input[type=checkbox]:checked {
        background: #fff;
    }
    .button.button-primary {
        background-color: abstracts.$secondary-theme-color;
        border: 2px solid abstracts.$secondary-theme-color;
        box-shadow: none;
        text-shadow: none;
        height: auto;
        padding: 10px 15px;
        line-height: normal;
        font-size: 14px;
        border-radius: 6px;
        min-width: 145px;
        text-align: center;
        font-weight: 500;
        transition: 0.2s all ease-in-out;

        &:hover {
            color: abstracts.$secondary-theme-color;
            background-color: transparent;
            border: 2px solid abstracts.$secondary-theme-color;
        }
    }
    &__form {
        position: relative;   
        margin: 20px 0;
        min-height: 540px;
        background-color: #fff;
        border: 1px solid #e2e4e7; 

        &-inner {
            display: flex;
            justify-content: space-between;
        }

        h2 {
            padding: 0 20px 20px 0;
            margin: 0;
            border-bottom: 1px solid #e2e4e7;
        }
        .form-table {
            padding: 0 20px;
            display: block;
            margin: 0;

            th {
                @media (max-width: 767px) { 
                    margin-bottom: 5px;
                }
            }
        }
        p.submit {
            padding: 20px;
            margin: 20px 0 0;
        }
    }
    &__intro {
        padding: 20px;
        flex-basis: 60%;

        @media (max-width: 1399px) { 
            flex-basis: 57%;
        }
        @media (max-width: 991px) { 
            flex-basis: 100%;
        }

        h1 {
            margin-top: 0;
            line-height: 34px;
            margin-bottom: 25px;
        }

        p {
            font-size: 15px;
        }
    }
}

.cf-dashboard-layout__form .form-table input[type=checkbox]:checked::before {
    content: "✔︎";
    color: #4b1bce;
    position: absolute;
    top: 2px;
    left: 4px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 12px;
}

.cf-dashboard-layout__form .form-table input[type=checkbox] {
    position: relative;
    box-shadow: none;
    outline: none;
}

.cf-dashboard-layout__form .form-table  input[type=checkbox] {
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
}

.cf-dashboard-details-rightbar {   
    position: relative;
    max-width: 320px;
    width: 100%;
    flex-basis: 30%;
    padding: 20px 20px 20px 0;

    @media (min-width: 1500px) {
        display: flex;
        align-items: center;
    }

    @media (max-width: 1399px) { 
        flex-basis: 35%;
    }
    @media (max-width: 991px) { 
        display: none;
    }

    .cf-dashboard-details-rightbar-inner {
        position: sticky;
        top: 80px;
        transition: .3s linear;
    }
    .cf-dashboard-rightbar-block {
        .cf-dashboard-rightbar-free-trial {
            &::before {
               background-image: url('../../images/bg-image-blog.svg');
                content: "";
                position: absolute;
                top: -10px;
                right: 0;
                left: auto;
                width: 100%;
                height: 100%;
                background-repeat: no-repeat;
                z-index: -1;
                background-position: right top;
                display: block;
                background-size: cover;
            }
        }
    }
    .cf-dashboard-sidebottom-block {
        margin-top: 30px;

        .cf-dashboard-rightbar-free-trial {
            background: #f5f5f5;
            box-shadow: none;
            overflow: hidden;

            &::before {
               background-image: url('../../images/md-sidebanner-bg.svg');
                content: "";
                position: absolute;
                top: -30px;
                right: -30px;
                left: auto;
                width: 100%;
                height: 100%;
                background-repeat: no-repeat;
                z-index: -1;
                display: block;
                background-size: 209px;
                background-position: right top;
            }

            h5 {
                font-size: 26px;
                line-height: 34px;
                color:#03264B;
                letter-spacing: -0.02em;
                text-align: left;
                margin-bottom: 10px;
            }

            p {
                color: #002954;
                text-align: left;
                margin-bottom: 15px;
            }

            .wp-block-buttons {
                justify-content: flex-start;
            }

            .cf-dashboard-rightbar-free-trial-btn {
                width: auto;
                box-shadow: none;
                border: 1px solid #03264B;
                padding: 10px 20px;
                background-color: transparent;

                @media (max-width: 1399px) { 
                    padding: 8px 5px;
                }

                .wp-block-button__link
                {
                    font-size: 17px;
                    line-height: 26px;
                    color: #000;
                    padding: 0;
                    transition: none;
                    outline: none;
                box-shadow: none;
                    strong {
                        color: #000;
                    }
                }
    
                &:hover {
                    background-color: #03264B;
                    transition: all .3s linear;
                    
                    .wp-block-button__link{
                        strong {
                            color: #fff;
                            transition: all .3s linear;
                        }
                    }
                }
            }
        }
    }
    .cf-dashboard-rightbar-free-trial {
        position: relative;
        display: block;
        overflow: hidden;
        z-index: 9;  
        padding: 20px;
        border-radius: 10px;
        background: linear-gradient(360deg,rgb(75,27,206) 0%,rgb(173,73,226) 140%);
        box-shadow: 0 10px 40px 0 rgba(111,137,163,0.2);
        border-radius: 10px;
        background-color: rgba(75,27,206,0.06);
        margin: 0 auto;
        @media (max-width: 1399px) { 
            padding: 20px; 
        }

        h5 {
            font-size: 22px;
            line-height: 30px;
            color: #fff;
            margin: 0;
            text-align: center;
            margin-bottom: 15px;
        
            span {
                color: #FFD602;
            }
        }
        p {
            font-size: 18px;
            line-height: 26px;
            color: #fff;
            text-align: center;

            + {
                .wp-block-image {
                    text-align: center;
                    margin-top: 0;

                    img {
                        padding: 0;
                        width: 100%;
                        width: 70px;
                        height: 70px;
                        border: none;
                    }
                } 
            }
        }
        img {
            padding: 0;
            border-radius: 6px;
        }
        p + {
            .wp-block-buttons {
                .cf-dashboard-rightbar-free-trial-btn {
                    margin-top: 15px;
                }
            }
        }
        .wp-block-buttons {
            justify-content: center;

            .cf-dashboard-rightbar-free-trial-btn {
                margin-top: 18px;
            }
        }
        .cf-dashboard-rightbar-free-trial-btn {
            box-shadow: 0px 4px 26px 2px rgba(0,0,0,0.3);
            transition: background-color 0.1s;
            padding: 12px 10px;
            font-size: 20px;
            line-height: 28px;
            background-color: #FFD602;
            color: #000000;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            display: block;
            margin-top: 10px;
            text-decoration: none;
            text-align: center;
            .wp-block-button__link{
                font-size: 20px;
                line-height: 28px;
                color: #000;
                text-decoration: none;
                padding: 0;
                transition: none;
                outline: none;
                box-shadow: none;
                strong {
                    color: #000;
                }

            }
            &.md_sidebar-optionbtn {
                @media (max-width: 1399px) { 
                    padding: 12px 5px;
                    font-size: 20px;
                    line-height: 20px;
                }

                .wp-block-button__link {
                    font-size: 17px;
                    line-height: 26px;

                    @media (max-width: 1399px) { 
                        font-size: 14px;
                        line-height: 20px;
                    }
                }
            }

            &:hover {
                background-color: #E3C000;
                transition-delay: 0.1s;
            }
        }
    }
}