/* ==========================================================================
   HEADER STYLES
   ========================================================================== */
.imgaipress-ai-images-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px 0 40px 0;
}
.imgaipress-ai-images-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    letter-spacing: -0.5px;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */
.imgaipress-ai-images-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    width: 60vw;
    max-width: 900px;
    margin: 0 auto 50px auto;
    min-height: unset;
    border: 1px solid #cccccc;
    padding: 15px;
    gap: 10px;
}
.imgaipress-ai-images-form-prompt-row {
    width: 100%;
    margin-bottom: 0;
}
#imgaipress-ai-images-prompt {
    width: 100%;
    margin-left: 0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1.1rem;
    border: 1px solid #eee;
    background: #f8fafc;
    box-sizing: border-box;
    min-height: 50px;
    resize: vertical;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.imgaipress-ai-images-form-controls-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 0;
}
.imgaipress-ai-images-controls-group {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    justify-content: space-between;
}
.imgaipress-ai-images-form-controls-left {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
}
.imgaipress-ai-images-form-controls-row > * {
    margin: 0;
}

/* ==========================================================================
   GENERATE BUTTON
   ========================================================================== */
#imgaipress-ai-images-generate {
    border: none;
    outline: none;
    background: linear-gradient(90deg, #212a6e 0%, #0297c6 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 32px;
    height: 45px;
    border-radius: 5px;
    flex-shrink: 0;
    box-shadow: none;
    transition: opacity 0.2s;
    cursor: pointer;
}
#imgaipress-ai-images-generate:hover {
    opacity: 0.85;
}

/* ==========================================================================
   IMAGE GRID & IMAGE BOXES
   ========================================================================== */
.imgaipress-ai-images-grid {
    column-count: 4;
    column-gap: 16px;
}
.imgaipress-ai-image-col {
    display: block;
    margin-bottom: 16px;
    break-inside: avoid;
}
.imgaipress-ai-image-box {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.imgaipress-ai-image-box.loading .imgaipress-ai-image-progress {
    width: 48px;
    height: 48px;
    border: 5px solid #ddd;
    border-top: 5px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}
@keyframes spin {
    100% { transform: rotate(360deg);}
}

/* ==========================================================================
   IMAGE CONTROLS (REMOVE, DOWNLOAD)
   ========================================================================== */
.imgaipress-ai-image-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}
.imgaipress-ai-image-box:hover .imgaipress-ai-image-controls {
    opacity: 1;
}
.imgaipress-ai-image-remove, .imgaipress-ai-image-download {
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.18s;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.imgaipress-ai-image-remove:hover, .imgaipress-ai-image-download:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.imgaipress-ai-images-pagination {
    margin-top: 20px;
    text-align: center;
}
.imgaipress-ai-images-page-btn {
    margin: 0 4px;
    padding: 4px 10px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}
.imgaipress-ai-images-page-btn.active {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

/* ==========================================================================
   IMAGE POPUP MODAL
   ========================================================================== */
.imgaipress-ai-image-popup-overlay {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(30, 41, 59, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.imgaipress-ai-image-popup {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    max-width: 900px;
    width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: popupIn 0.18s;
}
@keyframes popupIn {
    from { transform: scale(0.95); opacity: 0;}
    to { transform: scale(1); opacity: 1;}
}
.imgaipress-ai-image-popup-left {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    height: 100%;
    padding: 15px 15px 15px 15px;
    align-self: center;
}
.imgaipress-ai-image-popup-left img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    background: #e5e7eb;
}
.imgaipress-ai-image-popup-right {
    flex: 1;
    padding: 32px 32px 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.imgaipress-ai-image-popup-info {
    font-size: 16px;
    color: #222;
    margin-bottom: 32px;
    line-height: 1.7;
    word-break: break-word;
}
.imgaipress-ai-image-popup-info strong {
    background: linear-gradient(90deg, #21426e 0%, #0297c6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}
.imgaipress-ai-image-popup-actions {
    display: flex;
    gap: 10px;
}
.imgaipress-ai-image-popup-actions .button {
    font-size: 16px;
    padding: 8px 22px;
    border-radius: 6px;
    border: none;
    box-shadow: 0 1px 4px rgba(34,113,177,0.06);
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
}
.imgaipress-ai-image-popup-actions .button-primary {
    background: linear-gradient(90deg, #212a6e 0%, #0297c6 100%) !important;
    color: #fff !important;
    transition: opacity 0.2s;
}
.imgaipress-ai-image-popup-actions .button-primary:hover {
    opacity: 0.85 !important;
}
.imgaipress-ai-image-popup-actions .button-danger {
    background: #616161 !important;
    color: #fff !important;
}
.imgaipress-ai-image-popup-actions .button-danger:hover {
    background: #414141 !important;
}
.imgaipress-ai-image-popup-close {
    position: absolute;
    top: 10px; right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #888;
    cursor: pointer;
    z-index: 10;
    transition: color 0.18s;
}
.imgaipress-ai-image-popup-close:hover {
    color: #2271b1 !important;
}

/* ==========================================================================
   CUSTOM DROPDOWNS (RATIO, STYLE, MODEL)
   ========================================================================== */

/* Ratio Dropdown */
.imgaipress-ai-images-ratio-dropdown {
    position: relative;
    min-width: 110px;
    margin: 0;
}
.imgaipress-ai-images-ratio-dropdown input[type="hidden"] {
    display: none;
}
.imgaipress-ai-images-ratio-dropdown .ratio-selected {
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 0;
    font-size: 1.05rem;
    padding: 0 16px 0 8px;
    height: 45px;
    cursor: pointer;
    min-width: 110px;
    position: relative;
}
.imgaipress-ai-images-ratio-dropdown .ratio-selected:after {
    display: none;
}
.imgaipress-ai-images-ratio-dropdown .ratio-options {
    display: none;
    position: absolute;
    left: 0; top: 100%;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin: 0;
    padding: 6px 0;
    list-style: none;
    z-index: 100;
}
.imgaipress-ai-images-ratio-dropdown.open .ratio-options {
    display: block;
}
.imgaipress-ai-images-ratio-dropdown .ratio-options li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.15s;
}
.imgaipress-ai-images-ratio-dropdown .ratio-options li:hover,
.imgaipress-ai-images-ratio-dropdown .ratio-options li.selected {
    background: #f0f7ff;
    color: #2271b1;
}

/* Ratio Icons */
.ratio-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2px solid #bbb;
    border-radius: 2px;
    box-sizing: border-box;
    vertical-align: middle;
}
.ratio-2-3  { width: 14px; height: 21px; }
.ratio-3-2  { width: 21px; height: 14px; }
.ratio-3-4  { width: 16px; height: 21px; }
.ratio-4-3  { width: 21px; height: 16px; }
.ratio-1-1  { width: 18px; height: 18px; }
.ratio-9-16 { width: 12px; height: 21px; }
.ratio-16-9 { width: 21px; height: 12px; }

/* Style Dropdown */
.imgaipress-ai-images-style-dropdown {
    position: relative;
    min-width: 135px;
}
.imgaipress-ai-images-style-dropdown input[type="hidden"] {
    display: none;
}
.imgaipress-ai-images-style-dropdown .style-selected {
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #fff;
    border: none;
    border-left: 1px solid #eee;
    border-radius: 0;
    font-size: 1.05rem;
    padding: 0 16px 0 8px;
    height: 45px;
    cursor: pointer;
    min-width: 130px;
    position: relative;
}
.imgaipress-ai-images-style-dropdown .style-options {
    display: none;
    position: absolute;
    left: 0; top: 100%;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin: 0;
    padding: 6px 0;
    list-style: none;
    z-index: 100;
}
.imgaipress-ai-images-style-dropdown.open .style-options {
    display: block;
}
.imgaipress-ai-images-style-dropdown .style-options li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.15s;
}
.imgaipress-ai-images-style-dropdown .style-options li:hover,
.imgaipress-ai-images-style-dropdown .style-options li.selected {
    background: #f0f7ff;
    color: #2271b1;
}

/* Model Dropdown */
.imgaipress-ai-images-model-dropdown {
    position: relative;
    min-width: 175px;
}
.imgaipress-ai-images-model-dropdown input[type="hidden"] {
    display: none;
}
.imgaipress-ai-images-model-dropdown .model-selected {
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #fff;
    border: none;
    border-left: 1px solid #eee;
    border-radius: 0;
    font-size: 1.05rem;
    padding: 0 16px 0 8px;
    height: 45px;
    cursor: pointer;
    min-width: 110px;
    position: relative;
}
.imgaipress-ai-images-model-dropdown .model-options {
    display: none;
    position: absolute;
    left: 0; top: 100%;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin: 0;
    padding: 6px 0;
    list-style: none;
    z-index: 100;
}
.imgaipress-ai-images-model-dropdown.open .model-options {
    display: block;
}
.imgaipress-ai-images-model-dropdown .model-options li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.15s;
}
.imgaipress-ai-images-model-dropdown .model-options li:hover,
.imgaipress-ai-images-model-dropdown .model-options li.selected {
    background: #f0f7ff;
    color: #2271b1;
}
.imgaipress-ai-images-model-dropdown .model-label small {
    font-size: 0.92em;
    color: #888;
    font-weight: 400;
    margin-left: 2px;
}

/* ==========================================================================
   LICENSE WARNING BOX
   ========================================================================== */
.imgaipress-license-warning {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 18px auto;
    max-width: 600px;
    background: #fff3f3;
    color: #d32f2f;
    border: 1px solid #f8bbbb;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 16px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(211,47,47,0.07);
    z-index: 20;
}
.imgaipress-license-warning a {
    color: #2271b1;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 4px;
}
.imgaipress-license-warning a:hover {
    color: #d32f2f;
    text-decoration: underline;
}

/* ==========================================================================
   IMAGE UPLOAD CONTROLS (IMAGE TO IMAGE)
   ========================================================================== */
.imgaipress-ai-images-controls-group {
    display: flex;
    width: 100%;
    gap: 0;
    justify-content: space-between;
}
.imgaipress-ai-images-controls-group > #imgaipress-ai-images-upload-trigger {
    margin: 0 18px;
}
/* Upload trigger icon */
.imgaipress-upload-trigger {
    width: 26px;
    height: auto;
    cursor: pointer;
    margin: 0 18px;
}
.imgaipress-disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(0.5);
}
.imgaipress-img2img-close {
    margin-left: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    z-index: 10;
    transition: color 0.18s;
    align-self: flex-start;
}
.imgaipress-img2img-close:hover {
    color: #2271b1;
}

/* Image-to-Image container */
.imgaipress-img2img {
    display: none;
    margin-top: 18px;
}
.imgaipress-img2img-flex {
    display: flex;
    gap: 24px;
    position: relative;
}
.imgaipress-img2img-col-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.imgaipress-img2img-upload-box {
    width: 220px;
    height: 220px;
    border: 2px dashed #bbb;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background: #fafbfc;
}
.imgaipress-img2img-upload-label {
    color: #2271b1;
    font-weight: 600;
}
.imgaipress-img2img-preview {
    display: none;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    border-radius: 5px;
}

/* Prompt Button */
#imgaipress-get-prompt {
    background-color: transparent;
    margin-left: auto;
    border: 1px solid #444444;
    color: #444444;
    font-size: 1.0rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}
#imgaipress-get-prompt:hover {
    color: #5c5c5c;
    border-color: #5c5c5c;
}
#imgaipress-get-prompt-status {
    margin-left: 10px;
}
#imgaipress-get-prompt:focus {
    box-shadow: none !important;
}
#imgaipress-get-prompt:disabled,
#imgaipress-get-prompt.imgaipress-disabled {
    opacity: 0.5;
    margin-left: auto;
    pointer-events: none;
    color: #888 !important;
    border-color: #ccc !important;
}

/* Strength Controls */
.imgaipress-img2img-strength label { font-size: 1rem; }
.imgaipress-img2img-strength input[type="range"] { margin-top: 4px; }
.imgaipress-img2img-strength input[type="number"] {text-align: right;width: 70px;}
.imgaipress-img2img-strength-box {
    width: 200px;
    margin-bottom: 12px;
}
.imgaipress-img2img-flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    justify-content: center;
}
.imgaipress-img2img-strength-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.imgaipress-img2img-strength-label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.imgaipress-img2img-strength-label span {
    cursor: pointer;
    opacity: 0.7;
}
#imgaipress-img2img-strength-range {
    flex: 1;
}
.imgaipress-img2img-strength-input {
    width: 54px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.imgaipress-img2img-strength-reset-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Remove uploaded image button */
.imgaipress-img2img-remove {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: color 0.18s;
}
.imgaipress-img2img-upload-box.has-image .imgaipress-img2img-remove {
    display: flex !important;
}
.imgaipress-img2img-remove:hover {
    color: #d32f2f;
}

/* ==========================================================================
   IMAGE CREDIT BOX
   ========================================================================== */
.imgaipress-image-credit-box {
    position: absolute;
    right: 40px;
    background: #f0f7ff;
    color: #2271b1;
    border: 1px solid #b6d4fa;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1.08rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(34,113,177,0.07);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 30;
}
.imgaipress-image-credit-box span#imgaipress-image-credit-value {
    font-size: 1.12em;
}
/* ==========================================================================  
   FEATURE USAGE GUIDE ICON  
   ========================================================================== */
#imgaipress-instructions-icon-link {
    position: absolute;
    top: -18px;
    left: 18px;
    z-index: 100;
    display: flex;
    align-items: center;
}
#imgaipress-instructions-icon {
    width: 40px;
    height: auto;
    cursor: pointer;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.18s;
}
#imgaipress-instructions-icon-link:hover #imgaipress-instructions-icon {
    transform: scale(1.15);
}
#imgaipress-instructions-icon-link:hover #imgaipress-instructions-icon {
    box-shadow: 0 4px 16px rgba(34,113,177,0.18);
}
/* ==========================================================================
   GENERAL IMPROVEMENTS
   ========================================================================== */
.imgaipress-ai-images-form,
.imgaipress-ai-images-header,
.imgaipress-ai-images-grid {
    box-sizing: border-box;
}
.imgaipress-ai-images-form {
    min-width: 0;
}
.imgaipress-ai-images-grid {
    width: 100%;
    padding: 0;
}
.imgaipress-ai-image-box img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
/* ========================= TABLET ========================= */
@media (max-width: 900px) {
    .imgaipress-ai-images-header {
        flex-direction: column;
        gap: 10px;
        margin: 30px 0 25px 0;
    }
    .imgaipress-ai-images-form {
        width: 100%;
        max-width: 100vw;
        padding: 12px 2vw;
        min-width: unset;
    }
    .imgaipress-ai-images-form-controls-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .imgaipress-ai-images-controls-group {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .imgaipress-ai-images-form-controls-left {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    #imgaipress-ai-images-generate {
        margin-left: 0;
        width: 100%;
        min-width: 120px;
    }
    .imgaipress-ai-images-grid {
        column-count: 2;
        column-gap: 10px;
    }
    .imgaipress-image-credit-box {
        position: static;
        margin: 10px 0 0 0;
        right: unset;
        top: unset;
    }
    #imgaipress-instructions-icon-link {
        left: 10px;
        top: 25px;
    }
    #imgaipress-instructions-icon {
        width: 32px;
        height: auto;
    }
    
    .imgaipress-img2img-upload-box {
        width: 140px;
        height: 140px;
    }
    .imgaipress-img2img-strength-box {
        width: 100%;
        min-width: 120px;
    }
    .imgaipress-ai-images-controls-group > #imgaipress-ai-images-upload-trigger {
        margin-top: -50px;
        margin-bottom: 20px;
    }
    #wpcontent {
        padding-left: 10px !important;
        padding: 10px;
    }
}

/* ========================= MOBILE ========================= */
@media (max-width: 600px) {
    .imgaipress-ai-images-header h1 {
        font-size: 1.2rem;
        text-align: center;
    }
    .imgaipress-ai-images-form {
        padding: 8px 2vw;
        border-radius: 8px;
        gap: 8px;
        min-width: unset;
    }
    .imgaipress-ai-images-form-controls-row,
    .imgaipress-ai-images-controls-group,
    .imgaipress-ai-images-form-controls-left {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        width: 100%;
    }
    #imgaipress-ai-images-generate {
        width: 100%;
        min-width: 100px;
        font-size: 1rem;
        height: 40px;
        padding: 0 10px;
    }
    .imgaipress-ai-images-grid {
        column-count: 1;
        column-gap: 0;
        width: 100%;
        padding: 0;
    }
    .imgaipress-ai-image-box {
        min-height: 120px;
        aspect-ratio: 1/1;
    }
    .imgaipress-image-credit-box {
        font-size: 0.98rem;
        padding: 6px 10px;
        border-radius: 6px;
        margin: 8px 0 0 0;
    }
    #imgaipress-instructions-icon-link {
        left: 14px;
        top: 86px;
    }
    #imgaipress-instructions-icon {
        width: 25px;
        height: auto;
    }
    .imgaipress-img2img-upload-box {
        width: 90vw;
        max-width: 180px;
        height: 90vw;
        max-height: 180px;
    }
    .imgaipress-img2img-strength-box {
        width: 100%;
        min-width: 90px;
    }
    .imgaipress-img2img-flex {
        flex-direction: column-reverse;
        gap: 10px;
        padding: 20px;
    }
    .imgaipress-img2img-col-left {
        width: 100%;
        justify-content: center;
    }
    .imgaipress-img2img-strength-controls {
        flex-direction: row;
        gap: 6px;
    }
    .imgaipress-img2img-close {
        font-size: 22px;
        margin-left: 0;
        align-self: flex-end;
    }
    .imgaipress-ai-image-popup {
        flex-direction: column;
        max-width: 98vw;
        width: 100vw;
        min-width: unset;
        max-height: 98vh;
    }
    .imgaipress-ai-image-popup-left,
    .imgaipress-ai-image-popup-right {
        padding: 10px;
    }
    .imgaipress-ai-image-popup-info {
        font-size: 0.98rem;
        margin-bottom: 18px;
    }
    .imgaipress-ai-image-popup-actions .button {
        font-size: 0.98rem;
        padding: 6px 10px;
    }
    .imgaipress-ai-image-popup-close {
        font-size: 24px;
        top: 6px;
        right: 8px;
    }
    .imgaipress-ai-images-controls-group > #imgaipress-ai-images-upload-trigger {
        margin-top: -50px;
        margin-bottom: 20px;
    }
    .imgaipress-ai-images-model-dropdown .model-selected,
    .imgaipress-ai-images-style-dropdown .style-selected,
    .imgaipress-ai-images-ratio-dropdown .ratio-selected {
        border-left: none;
        padding: 0;
    }
    #wpcontent {
        padding-left: 10px !important;
        padding: 10px;
    }
}