#tab-account {
    .ai-top-panels {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        align-items: stretch;
        margin-bottom: 10px;

        > settinglist.ai-api-key-setting {
            flex: 1 1 auto;
            width: auto;
            min-width: 0;
            margin-bottom: 0;
        }

        > .ai-credit-panel {
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex: 0 0 210px;
            min-width: 190px;
            margin-bottom: 0;
            padding: 18px 16px;
            background: $blue_default;
            border-radius: 6px;
            box-sizing: border-box;
            color: #fff;
            font-family: Roboto, sans-serif;
            font-weight: 700;
            line-height: 1.2;

            span {
                font-size: 11px;
                font-weight: inherit;
                text-transform: uppercase;
            }

            strong {
                margin-top: 3px;
                font-size: 18px;
                color: #fff;
                font-weight: inherit;
                white-space: nowrap;
            }
        }

        @include breakpoint(0, $wordpress-mobile) {
            flex-direction: column;

            > settinglist.ai-api-key-setting,
            > .ai-credit-panel {
                width: 100%;
                min-width: 0;
                flex-basis: auto;
            }
        }
    }
}

#tab-ai {
    .ai_general_context {
        height: 100px;
        width: 80%;
    }

    // Fix for google analytics plugin that likes to hide input fields on switch
    .switch input {
        opacity: 1;
    }

    .generate_ai_items textarea {
        width: 80%;
        height: 50px;
        margin: 6px 0;
    }

    hr {
        background-color: $blue_light;
        height: 1px;
        margin: 6px 0;
    }

    .ai_filename_setting switch,
    .ai_filename_setting content.ai_gen_filename {
        filter: blur(1px);
    }

    .ai_gen_filename {
        opacity: 1 !important;
    }
} // tab-ai

#tab-preview {
    .preview_wrapper {
        border: 0;
        border-radius: 18px;
        background: $blue_background;
        display: block;
        padding: 12px;

        .ai_preview {
            gridbox.width_half > span:first-child {
                display: flex;
                justify-content: center;
                align-items: center;
                align-self: stretch;
                height: 100%;
                min-height: 0;
                min-width: 0;
                overflow: hidden;
            }

            gridbox.width_half > span:last-child {
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .image_preview {
                display: block;
                width: auto;
                max-width: 100%;
                height: auto;
                max-height: 240px;
                min-width: 0;
                border-radius: 13px;
                object-fit: contain;
            }

            button i {
                filter: $filter_white;
            }
        }

        .result_wrapper {
            .result_info {
                padding: 10px;

                label {
                    font-weight: 700;
                }

                span {
                    display: block;
                }

                h3 {
                    font-size: 14px;
                    font-weight: 700;
                }
            }

            .current {
                background: $color-brokenwhite;
                border-radius: 6px;
            }

            .result {
                background: #1ABDCA;
                color: #fff;
                padding: 6px;
                border-radius: 6px;

                h3,
                label,
                span {
                    color: #fff;
                }
            }

            .icon {
                display: flex;
                justify-content: center;
                align-items: center;

                i {
                    width: 35px;
                    height: 20px;
                }
            }
        }
    }
}
