/**
 * @author 1902 Software
 * @copyright Copyright © 2023 1902 Software (https://1902software.com/magento/)
 * @package WriteTextAI_WriteTextAI
 */

.wtai-grid-keyword-invalid-image-popup.wtai-no-display,
.wtai-grid-invalid-image-popup.wtai-no-display {
    display: none;
}

.wtai-keywords-invalid-image-popup-modal,
.wtai-categories-invalid-image-popup-modal,
.wtai-invalid-image-popup-modal,
.wtai-grid-keyword-invalid-image-popup-modal,
.wtai-grid-invalid-image-popup-modal {
    .modal-header {
        h1 {
            color: #DC3232;
            display: flex;
            
            &::before {
                background-color: transparent;
                background-image: url("../WriteTextAI_WriteTextAI/images/generate-error.png");
                background-position: center center;
                background-repeat: no-repeat;
                background-size: contain;
                content: "";
                display: inline-block;
                height: 21px;
                margin-right: 10px;
                vertical-align: middle;
                min-width: 21px;
            }
        }
    }

    .modal-inner-wrap {
        max-width: 800px;
        width: max-content;
    }

    .modal-content {
        padding-bottom: 0;
    }

    &.wtai-invalid-image-popup-modal,
    &.wtai-categories-invalid-image-popup-modal,
    &.wtai-keywords-invalid-image-popup-modal {
        .modal-footer {
            display: grid;
            justify-content: flex-start;
            align-items: center;
            width: 100%;
            grid-template-columns: 1fr auto auto;
        }
        .wtai-do-not-show-again {
            text-align: left;
            display: flex;
            flex-direction: row;
            align-items: center;
            label {
                display: flex;
                flex-direction: row;
                align-items: center;
                cursor: pointer;
            }
             input[type="checkbox"] {
                -webkit-appearance: none;
                appearance: none;
                width: 16px;
                height: 16px;
                border: 0.5px solid #999999;
                border-radius: 2px;
                background: #fff;
                position: relative;
                margin-right: 5px;
                cursor: pointer;
            }
            input[type="checkbox"]:checked {
                background: #fff;
            }
            input[type="checkbox"]:checked::after {
                content: '';
                position: absolute;
                left: 4px;
                top: 1px;
                width: 5px;
                height: 9px;
                border: solid #000;
                border-width: 0 2px 2px 0;
                transform: rotate(45deg);
            }
        }
    }

    .wtai-content {

        &.wtai-no-proceed {
            .action-primary {
                display: none;
            }
        }

        .wtai-images {
            display: flex;
            overflow: auto;
            margin-bottom: 5px;

            img {
                width: 50px;
                height: 50px;
                object-fit: contain;
                border: 1px solid #DDDDDD;
            }

            img + img {
                margin-left: 10px;
            }
    
        }

        .wtai-upload-error-message {
            font-size: 13px;
            color: #DC3232;
            line-height: 100%;
        }
        
        button {
            flex-shrink: 0;
            margin-left: 10px;

            &.action-default {
                margin-left: auto;
            }
        }
    }

    p.wtai-proceedable-paragraph {
        margin-bottom: 20px
    }
}

aside.modal-popup.wtai-invalid-image-popup-modal.modal-slide._show .action-close,
aside.modal-popup.wtai-categories-invalid-image-popup-modal.modal-slide._show .action-close,
aside.modal-popup.wtai-keywords-invalid-image-popup-modal.modal-slide._show .action-close{
    padding: 1rem !important;
}