#wpwrap,
#elementor-editor-wrapper,
#rank-math-rm-app-root {
    button.rank-math-content-ai {
        font-size: 12px;
        line-height: 1;

        position: absolute;
        top: 15px;
        right: 42px;

        display: flex;

        min-height: 22px;
        padding: 0 10px;

        i {
            font-size: 10px;
            font-weight: bold;
            line-height: 14px;

            margin-right: 5px;

            background: linear-gradient(-135deg, #ff4492, #434e8f);
            background-clip: text;

            -webkit-text-fill-color: transparent;
        }
    }
}

div.rank-math-content-ai-wrapper {
    &.is-opened {
        padding: 0;
        background: #fff;
    }

    .components-panel__body {
        padding: 20px 16px 16px;

        border-top: 0;
    }

    // No Credits.
    .rank-math-ca-warning {
        padding: 25px 16px;

        text-align: center;

        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        background-color: #fff8e5;

        h3 {
            font-size: 18px;

            margin-bottom: 8px;
        }

        p {
            font-size: 15px;

            margin-bottom: 10px;

            color: #606060;
        }

        a {
            font-size: 14px;

            height: 32px;
        }
    }

    // Content AI Output.
    .rank-math-content-ai-data {
        // Loading.
        .loader-text {
            position: absolute;
            z-index: -1;
            top: 50px;
            left: 0;
            right: 0;

            width: 100%;
            box-sizing: border-box;
            background-color: #fff;
            padding: 25px;

            text-align: center;
            font-size: 18px;
            line-height: 1.3;
            opacity: 0;

            transition: opacity 0.5s 10s;
        }

        &.loading {
            position: relative;

            min-height: 200px;

            &:before,
            &:after {
                position: absolute;

                content: '';
            }

            &:before {
                z-index: 10;
                top: 50px;
                left: 50%;

                width: 38px;
                height: 38px;
                margin-left: -19px;

                background-image: url( '../img/loader.svg' );
                background-repeat: no-repeat;
                background-position: center;
            }

            &:after {
                z-index: 1;
                top: 0;
                right: 0;
                bottom: 0;
                left: 0;

                background-color: rgba( 255, 255, 255, .85 );
            }

            .loader-text {
                opacity: 1;
                z-index: 99;

            }
        }

        h3.rank-math-ca-section-title {
            font-size: 15px;
            font-weight: 500;

            margin-bottom: 0;
            padding: 18px 16px;

            border-bottom: 1px solid #ddd;

            span {
                font-size: 12px;
                line-height: 18px;

                display: inline-block;

                margin: 0 2px 0 5px;
                padding: 0 5px;

                vertical-align: 2px;
                text-transform: uppercase;

                color: #e91e63;
                border-radius: 3px;
                background: rgba( #e91e63, .1 );
            }
        }

        h3.no-data {
            font-size: 15px;
            line-height: 1.5;

            margin-top: 20px;
            padding: 12px;

            background-color: transparent;
        }
    }

    .rank-math-contentai-tabs {
        .components-tab-panel__tabs {
            padding: 0 16px;

            border-bottom: 1px solid #ddd;

            justify-content: space-between;
        }

        .rank-math-section-heading {
            display: flex;

            margin-bottom: 15px;

            align-items: center;
            justify-content: space-between;

            h2 {
                font-size: 15px;
                font-weight: 600;

                margin: 0;
                padding: 0;
            }
        }

        button:not(:disabled) {
            font-size: 14px;

            margin-bottom: -1px;
            padding: 0 10px;

            line-height: 1;

            box-shadow: none;

            &.is-active {
                &:before {
                    border-bottom-color: $primary;
                }
            }

            &:focus {
                color: $primary;
                box-shadow: none;
            }

            i {
                vertical-align: -5px;
            }
        }
    }

    .rank-math-help-icon {
        @include tooltipicon;
    }
}