html.wp-toolbar:has(.solace_page_dashboard-sitebuilder) {
    padding-top: 0;
}

body.solace_page_dashboard-sitebuilder {

    /* Coming soon container styling */
    .coming-soon-container {
        text-align: center;
        background-color: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* Heading styling */
    .coming-soon-container h1 {
        font-size: 3em;
        color: #333;
        margin-bottom: 20px;
    }
    .container {
        display: flex;
        justify-content: center; /* Center horizontally */
        align-items: center;     /* Center vertically */
        height: 100vh;  
    }

    /* Paragraph styling */
    .coming-soon-container p {
        font-size: 1.2em;
        color: #666;
    }
    
    #adminmenumain,
    #wpadminbar {
        display: none;
    }

    #wpcontent,
    #wpfooter {
        margin-left: 0;
        padding-left: 0;
    }

    #wpbody-content {
        padding-bottom: 0;
    }

    #wpfooter {
        display: none;
    }

    #update-nag,
    .update-nag {
        display: none;
    }

    .wrap {
        >nav .mycontainer{
            padding: 0;
        }
        >nav {
            margin-bottom: 0;
        }
        // background-color: var(--sol-customizer-panel-bg-color);
        background-color: #001644;
        
    }
    .solace-sitebuilder {
        display: flex;
        min-height: 100vh;
        align-items: stretch;
        .parts {
            min-width: 300px;
            display: flex;
            flex-direction: column;
            margin: 20px;
            .label {
                color: #fff;
                font-weight: 700;
                font-size: 18px;
                margin-bottom: 20px;
            }
            .button {
                background-color: #102C5F;
                color: #fff;
                font-weight: 300;
                font-size: 18px;
                margin-bottom: 15px;
                border-radius: 10px;
                border: 0;
                display: flex;
                align-items: center;
                transition: all 0.3s ease-out;
                &.all {
                    margin-bottom: 30px;
                    font-weight: 600;
                    
                }
                img {
                    margin-right: 10px;
                }
                &:focus,&:hover {
                    box-shadow: 0 0 0 2px #FF9400;
                }
                &.nf {
                    justify-content: space-between;
                    .desc {
                        display: flex;
                        align-items: center;
                    }
                    .dashicons-lock {
                        display: none;
                    }
                    &:hover .dashicons-lock {
                        display: block;
                    }
                }
                
            }
            a.button.active, .parts a.button:hover {
                outline: 3px solid #FF9400;
            }
        }
        .list {
            padding: 50px;
            background: #F1F1F1;
            width: 100%;
            .label {
                font-size: 18px;
                font-weight: 700;
                color: #000;
            }
            .card-grid {
                display: flex;
                gap: 20px;
                flex-wrap: wrap;
                a {
                    text-decoration: none;
                    &:active {
                        box-sizing: unset;
                    } 
                    &:focus {
                        box-shadow: none;
                    }
                    &:hover .dashicons-lock,&:hover button {
                        display: block;
                    }
                    &:hover .card::after {
                        opacity: 1; 
                    }
                }
                .lock .title {
                    color: #000;
                }
                .newpart span.label {
                    position: absolute;
                    left: 37%;
                    top: 61%;
                }

            }
            
            .card {
                margin-top: 0;
                border: 1px solid #ccc;
                padding: 20px;
                border-radius: 8px;
                background-color: #fff;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                position: relative;
                width: 307px;
                background-repeat: no-repeat;
                border-radius: 20px;
                height: 307px;
                display: flex;
                justify-content: space-between;
                flex-direction: column;
                padding-bottom: 15px;
                transition: background-color 0.3s ease; 

                &::after {
                    content: ""; 
                    position: absolute; 
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background-color: rgba(0, 0, 0, 0.2); 
                    opacity: 0; 
                    transition: opacity 0.3s ease; 
                    z-index: 1; 
                    border-radius: 20px;
                }
            }
            
            .card-header h3 {
                margin-top: 0;
                font-size: 1.25em;
            }
            
            .card-body {
                // margin-bottom: 20px;
                margin: 0 auto;
                top: 35%;
                position: relative;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                button {
                    position: relative;
                    border: none;
                    cursor: pointer;
                    padding: 6px 16px;
                    background: #ff8f00;
                    color: #fff;
                    font-family: Poppins;
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 600;
                    border-radius: 20px;
                    display: none;
                    text-decoration: none;
                    text-align: center;
                    transition: width 1s ease, padding-right 1s ease;
                   
                }
                .dashicons-lock {
                    color:#000;
                    display: none;
                }
            }
            
            .card-footer {
                // position: absolute;
                // bottom: 20px;
                // right: 20px;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                .title {
                    color: #000000; 
                }
                &.active {
                    .title {
                        color: #fff;
                    }   
                }
            }
            
            .switch {
                position: relative;
                display: inline-block;
                width: 34px;
                height: 20px;
                &.layout {
                    .all-status-switch {
                        visibility: hidden;
                    }
                    
                    .slider:before {
                        height: 13px;
                        width: 13px;
                        left: 4px;
                        bottom: 4px;
                    } 
                }
                .switch input {
                    opacity: 0;
                    width: 0;
                    height: 0;
                }
                
                .slider {
                    position: absolute;
                    cursor: pointer;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background-color: #ccc;
                    transition: 0.4s;
                    border-radius: 34px;
                    z-index: 9;
                }
                
                .slider:before {
                    position: absolute;
                    content: "";
                    height: 13px;
                    width: 13px;
                    left: 4px;
                    bottom: 3px;
                    background-color: white;
                    transition: 0.4s;
                    border-radius: 50%;
                } 
            }
            
            
            
            input:checked + .slider {
                background-color: #FF9400;
            }
            
            input:checked + .slider:before {
                transform: translateX(14px);
            }

            .headlist {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 30px;
                .addnew,
                #save-404 {
                    position: relative;
                    background-color: #ff9400;
                    color: #fff;
                    border-radius: 30px;
                    padding: 6px 60px 5px 40px;
                    height: 39px;
                    border: none;
                    &::after {
                        content: url('../../assets/images/plus-addnew.svg');
                        position: absolute;
                        right: 4px;
                        top: -4px;
                    }
                    &:hover {
                        background-color: #ea8903;
                    }
                }
            }

            .solace-list-view {
                .solace-template-item {
                    background-color: #fff;
                    border-radius: 20px;
                    margin-bottom: 20px;
                    padding-bottom: 10px;
                }
                
                .solace-list-item {
                    
                    display: flex;
                    align-items: center;
                    padding: 10px 0;
                    border-bottom: 1px solid #F1F1F1;

                    .group.instances {
                        display: flex;
                        align-items: center;
                        background-color: #F0F3FF;
                        padding-left: 11px;
                        padding-right: 0px;
                        border-radius: 30px;
                        padding-top: 6px;
                        padding-bottom: 6px;
                        .label {
                            font-size: 12px;
                            font-weight: 300;
                            &.listinstances {
                                font-weight: 600;
                                .text-include {
                                    color: green; 
                                }
                                
                                .text-exclude {
                                    color: red; 
                                }
                                
                            }
                        }
                        .conditions-column {
                            position:relative;
                            .edit-conditions-button {
                                display: flex;
                                align-items: center;
                                &::before {
                                    content: url('../../assets/images/sitebuilder-editconditions.svg');
                                    position: absolute;
                                    left: 25px;
                                    top: 5px;
                                }
                            }
                        }
                        
                    }
                    .group.action {
                        display: flex;
                        margin-right: 10px;
                        align-items: center;
                        background-color: #f0f3ff;
                        padding-left: 0px;
                        padding-right: 0px;
                        border-radius: 30px;
                        padding-top: 6px;
                        padding-bottom: 6px;
                        margin-left: 20px;
                        .edit-column {
                            position:relative;
                            .edit-page {
                                &::before {
                                    content: url('../../assets/images/sitebuilder-edit.svg');
                                    position: absolute;
                                    left: 24px;
                                    top: 6px;
                                }
                            }
                        }
                        .rename-column {
                            position:relative;
                            .rename {
                                &::before {
                                    content: url('../../assets/images/sitebuilder-rename.svg');
                                    position: absolute;
                                    left: 15px;
                                    top: 1px;
                                }
                            }
                        }
                        .export-column {
                            position:relative;
                            .export {
                                &::before {
                                    content: url('../../assets/images/sitebuilder-export.svg');
                                    position: absolute;
                                    left: 25px;
                                    top: 6px;
                                }
                            }
                        }
                        .delete-column {
                            position:relative;
                            .delete {
                                &::before {
                                    content: url('../../assets/images/sitebuilder-delete.svg');
                                    position: absolute;
                                    left: 25px;
                                    top: 6px;
                                }
                            }
                        }
                    }
                }
            
                .list-column {
                    flex: 1;
                    padding: 0 10px;
                    display: flex;
                    align-items: center;
                    
                    &.title-column {
                        font-weight: bold;
                        padding-left: 20px;
                    }
            
                    .button {
                        display: flex;
                        align-items: center;
                        border-radius: 30px;
                        font-size: 12px;
                        background-color: #0E305F;
                        color: #fff;
                        height: 31px;
                        padding: 0;
                        padding-left: 40px;
                        padding-right: 20px;
                        padding-top: 1px;
                        &.delete {
                            color: #fff;
                        }
                        &.rename,
                        &.edit-page {
                            color: #fff;
                        }
                    }
                    a {
                        // transition: all .3s ease-out;
                        &:hover {
                            outline: 2px solid #ff9400;
                            // transition: all .3s ease-in;
                        }
                    }
            
                    .switch {
                        display: inline-block;
                    }
                }
            
                .status-column {
                    display: flex;
                    justify-content: flex-end;
                }
            }
            
            
        }

        .delete-condition {
            color: #FF9400; 
            font-size: 16px;
            text-decoration: none;
            cursor: pointer;
            margin-left: 10px;
            &.hide {
                visibility: hidden; 
            }
        }

        .delete-condition:hover {
            color: #a00; 
        }

        .solace-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7); 
            z-index: 999;
            display: none;
        }


        .solace-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 854px;
            background: #fff;
            max-width: 854px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            border-radius: 30px;
            z-index: 1001; /* Ensure it's above the overlay */
            display: none;
        }
        
        .solace-popup-content {
            // padding: 20px;
            position: relative;

            // width: 854px;
            width: 100%;
            text-align: center;
            span.addnew-title {
                font-weight: 700;
                font-size: 25px;
                margin: 30px;
                display: block;
            }
            #new-conditions-container {
                margin-top: 40px;
                // margin-bottom: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                flex-direction: column;
                // border-bottom: 1px solid #F0F3FF;
                // padding-bottom: 30px;
            }
            #addnew-add-condition,
            #add-condition {
                background-color: #0e305f;
                color: #fff;
                padding-left: 50px;
                padding-right: 20px;
                border-radius: 30px;
                height: 40px;
                position: relative;
                padding-top: 3px;
                &::before {
                    content: url('../../assets/images/plus-addcondition.svg');
                    position: absolute;
                    left: 6px;
                    top: -1px;
                    width: 20px;
                
                }
            }
            #partnew-add-condition {
                background-color: #0e305f;
                color: #fff;
                padding-left: 50px;
                padding-right: 20px;
                border-radius: 30px;
                height: 40px;
                position: relative;
                padding-top: 3px;
                &::before {
                    content: url('../../assets/images/plus-addcondition.svg');
                    position: absolute;
                    left: 8px;
                    top: 0px;
                    width: 20px;
                }
            }
            .desc {
                display: block;
                font-size: 15px;
                line-height: 22px;
            }
            // #add-condition {
            //     background-color: #0e305f;
            //     color: #fff;
            //     padding-left: 30px;
            //     padding-right: 20px;
            //     border-radius: 30px;
            // }
            #conditions-container,
            .conditions-container {
                margin-top: 40px;
                margin-bottom: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                flex-direction: column;
            }
            #save-conditions,#save-new-conditions,#partnew-save-new-conditions,#solace-save-404 {
                background-color: #ff9400;
                border: none;
                padding-left: 30px;
                padding-right: 20px;
                border-radius: 30px;
                color: #fff;
                height: 40px;
                margin-bottom: 20px;

            }
            #partnew-save-new-conditions,
            #save-new-conditions,
            #save-conditions,
            #solace-save-404 {
                position: relative;
                width: 250px;
                box-shadow: none;

                display: inline-flex;
                align-items: center;  
                justify-content: center;
                transition: width 1s ease, padding-right 1s ease;

                .box-bubble {
                    dotlottie-player {
                        display: none;
                        width: 130px;
                        height: 130px;
                        position: absolute;
                        top: -46px;
                        left: 65px;
                    }
                }
                &:hover {
                    background-color: #ea8903;
                };
            }
            /* Close button styling */
            .close-popup {
                position: absolute;
                top: -32px;
                right: -2px;            
                font-size: 19px;
                color: #fff;
                cursor: pointer;
                background-color: #0e305f;
                border-radius: 100px;
                font-weight: 300;
                padding: 3px 5px 0px 5px;
            }
            #all-new-conditions-container {
                // margin-top: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                flex-direction: column;
                select.condition-part-select {
                    margin-bottom: 20px;
                    background-position: right 13px center;
                }
            }
            span.chooseparts {
                display: flex;
                justify-content: center;
                align-items: center;
                margin-top: 30px;
                margin-bottom: 10px; 
                &.part404 {
                    margin-bottom: 40px;
                }
            }
            select.condition-part-select {
                margin-left: 10px;
                background-position: right 13px center;
                // margin-top: 40px;
                // margin-bottom: 20px;
            }
        }

        #save-404 {
            background-color: #ff9400;
            border: none;
            border-radius: 30px;
            color: #fff;
            height: 40px;
            margin-bottom: 20px;
            position: relative;
            width: 158px;
            box-shadow: none;
            padding: 5px 60px 5px 40px;
            display: inline-flex;
            align-items: center;  
            justify-content: center;
            transition: width 1s ease, padding-right 1s ease;

            .box-bubble {
                dotlottie-player {
                    display: none;
                    width: 130px;
                    height: 130px;
                    position: absolute;
                    top: -46px;
                    left: 65px;
                }
            }
            &:hover {
                background-color: #ea8903;
            };
        }

        .condition-part-select {
            border: 0;
            position: relative;
            background-color: #F0F3FF;
            border-radius: 30px;
            padding: 5px 30px 5px 30px;
            font-size: 12px;
            height: 44px;
            padding-right: 100px;
            background-position: right 13px center;
        }
        
        .condition-item {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            .condition-exclude-include-select,
            select.condition-select {
                border: 0;
                position: relative;
                background-color: #F0F3FF;
                border-radius: 30px;
                padding: 5px 39px 5px 30px;
                font-size: 12px;
                height: 44px;
                background-position: right 13px center;
            }
            select.condition-select {
                padding-right: 100px;
                position: relative;
                background-position: right 13px center;
            }
            .condition-exclude-include-select {
                padding-left: 50px;
                &::before {
                    content: url('../../assets/images/plus-include.svg');
                    position: absolute;
                    left: 5px; 
                    top: 50%;
                    transform: translateY(-50%);
                    width: 20px; 
                    height: 20px; 
                }
            }
            .icon-container {
                justify-content: center;
                position: absolute;
                left: 14px;
                top: 50%;
                transform: translateY(-50%);
                display: flex;
                align-items: center;
                z-index: 9;
            }
        }        

        
        .solace-popup-footer {
            text-align: center;
            margin-top: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 50px;
            border-bottom: 1px solid #f0f3ff;
            padding-bottom: 20px;
            margin-bottom: 30px;
        
        }
        .preview-container {
            margin-top: 10px; 
            // width: 100%;
            display: flex;
            justify-content: center; 
            margin: 10px;
            height: 200px;
            position: relative;
            overflow: hidden;

            .iframe-overlay {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: transparent; 
                z-index: 10; 
            }
            // height: 50px;
            .custom-header-content {
                width: 100%;
                position: relative; 
                border-radius: 18px; 
                overflow: hidden; 
                height: auto;
                border: 2px solid #f1f1f1;
                transition: height 0.3s ease; 

                &::before {
                    content: ''; 
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgb(0 0 0 / 0%);
                    border-radius: 18px;
                    z-index: 10; 
                    pointer-events: none; 
                }
            }

            iframe {
                width: 100%;
                height: 200px; /* Adjust the height as needed */
                border: none;
            }
        }
        
        .solace-rename-popup-overlay,.solace-404-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }
        
        .solace-rename-popup-content,.solace-404-popup-content {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            background: #fff;
            max-width: 854px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
            border-radius: 30px;
            z-index: 1001;
            text-align: center;
            #solace-save-rename,#solace-save-404 {
                position: relative;
                width: 250px;
                box-shadow: none;
                .box-bubble {
                    dotlottie-player {
                        display: none;
                        width: 130px;
                        height: 130px;
                        position: absolute;
                        top: -46px;
                        left: -13px;
                    }
                }
                &:hover {
                    background-color: #ea8903;
                }
            }
            .addnew-title {
                font-weight: 700;
                font-size: 25px;
                margin: 30px;
                display: block;
            }
            span.solace-close-popup {
                position: absolute;
                right: 25px;
                font-size: 19px;
                color: #fff;
                cursor: pointer;
                background-color: #0e305f;
                border-radius: 100px;
                font-weight: 300;
                padding: 2px 5px 0px 5px;
            }
            h3 {
                margin-bottom: 15px;
            }
            input {
                width: 30%;
                padding: 8px;
                display: block;
                margin: 0 auto;
                margin-bottom: 40px;
            }
            .solace-rename-button,.solace-404-button {
                background-color: #ff9400;
                border: none;
                padding-left: 30px;
                padding-right: 30px;
                border-radius: 30px;
                color: #fff;
                height: 40px;
                margin-bottom: 20px;
                &:hover {
                    cursor: pointer;
                }
            }
        }
        
    }
}

