.mce-seoaic-button button {
    background-color: #000;
}

#seoaic_improve_content_popup .mce-btn {
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 5px;
    border: 1px solid #f1ebf7;
    transition: .3s;
}

#seoaic_improve_content_popup #seoaic_improve_content_popup-body .mce-btn:hover {
    border-color: #3858e9;
}

#seoaic_improve_content_popup #seoaic_improve_content_popup-body .mce-btn:hover button {
    color: #3858e9;
}

#seoaic_improve_prompt_modal_close,
#seoaic_improve_prompt_modal_ok,
#seoaic_improve_language_popup_close,
#seoaic_improve_language_popup_ok {
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 5px;
    overflow: hidden;
}

#seoaic_improve_modal_close-button,
#seoaic_improve_prompt_modal_close-button,
#seoaic_improve_language_popup_close-button {
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
    background-color: #100717;
}

#seoaic_improve_content_popup .mce-close .mce-i-remove:before,
#seoaic_custom_mce_prompt_popup .mce-close .mce-i-remove:before {
    color: #100717;
}

#seoaic_improve_prompt_modal_ok-button,
#seoaic_improve_language_popup_ok-button {
    background: linear-gradient(230deg, #5d78f7, #a551f6);
}

.seoaic-mce-loading #wpcontent #wp-content-wrap {
    opacity: 0.5;
    filter: blur(2px);
}

.seoaic-mce-loading .lds-dual-ring {
    pointer-events: none;
    display: inline-block;
    width: 80px;
    height: 80px;
    position: fixed;
    left: 50%;
    top: 50vh;
    transform: translate(-50%, -50%);
    z-index: 9992;
    transition: opacity ease-out 300ms;
    opacity: 0;
}

.seoaic-mce-loading .lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #CCC;
    border-color: #CCC transparent #CCC transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

.seoaic-mce-loading .lds-dual-ring {
    opacity: 1;
}

.seoaic-mce-loading .lds-dual-ring ~ * {
    opacity: .5;
    transition: all ease-out 300ms;
}

.seoaic-mce-loading .wp-block-freeform .wp-block-freeform {
    opacity: 0.3;
}

#seoaic-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.seoaic-image-generation-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    z-index: 9999;
    background: linear-gradient(#f0eaf5, #f0eaf5) padding-box, linear-gradient(90deg, #9851e9, #6375eb) border-box;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 20px 50px 25px;
    min-height: 230px;
}

.seoaic-block-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    color: #000;
}

.seoaic-image-generation-wrap .seoaic-prompt textarea {
    width: 100%;
    display: block;
    line-height: 20px;
    padding: 9px 11px;
    border-radius: 2px;
    font-size: 13px;
    height: 120px;
    border: 1px solid #333;
    outline: none;
}

.seoaic-image-generation-wrap .description {
    font-size: 14px;
    margin-bottom: 10px;
}

.seoaic-image-generation-wrap .button-wrap {
    padding: 30px 0 0;
    display: flex;
    justify-content: flex-end;
}

.seoaic-image-generation-wrap .button-wrap button {
    display: flex;
    align-items: center;
    background: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #9851e9, #6079ea) border-box;
    border: 2px solid transparent;
    border-radius: 3px;
    color: #6079ea;
    font-size: 14px;
    transition: all .2s linear;
    padding: 6px 12px;
    font-weight: 400;
    cursor: pointer;
    margin: 0 4px;
    height: 36px;
}

.seoaic-image-generation-wrap .button-wrap button:hover {
    background: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #9851e9, #6375eb) border-box;
}

.seoaic-image-generation-wrap .button-wrap button:hover span {
    background: linear-gradient(90deg, #9851e9, #6375eb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seoaic-image-generation-wrap .button-wrap button:last-of-type {
    margin-right: 0;
}

.seoaic-image-generation-wrap .button-wrap button.is-busy {
    background-image: linear-gradient(-45deg,#fafafa 33%,#acb4e9 0,#acb4e9 70%,#fafafa 0) !important;
    background-origin: unset;
    background-clip: unset;
    border: unset;
    pointer-events: none;
}

.seoaic-image-generation-wrap .button-wrap button .dashicon {
    align-items: center;
    box-sizing: initial;
    display: inline-flex;
    justify-content: center;
    padding: 2px;
}

.seoaic-generated-image {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: calc(8px);
    justify-content: left;
    width: 100%;
}

.seoaic-generated-image .seoaic-image-template {
    border: 3px solid transparent;
    cursor: pointer;
    flex: 0 0 calc(50% - 10px);
    height: 200px;
    overflow: hidden;
}

.seoaic-generated-image .seoaic-image-template.selected {
    background: linear-gradient(90deg, #9851e9, #6375eb) border-box;
}

.seoaic-generated-image .seoaic-image-template img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}

.seoaic-image-generation-wrap .loader-ellipsis {
    pointer-events: none;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.seoaic-image-generation-wrap .loader-ellipsis:before {
    content: '';
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle fill='%23c6a0e6' stroke='%23c6a0e6' stroke-width='2' r='15' cx='40' cy='100'%3E%3Canimate attributeName='opacity' calcMode='spline' dur='2' values='1;0;1;' keySplines='.5 0 .5 1;.5 0 .5 1' repeatCount='indefinite' begin='-.4'%3E%3C/animate%3E%3C/circle%3E%3Ccircle fill='%23c6a0e6' stroke='%23c6a0e6' stroke-width='2' r='15' cx='100' cy='100'%3E%3Canimate attributeName='opacity' calcMode='spline' dur='2' values='1;0;1;' keySplines='.5 0 .5 1;.5 0 .5 1' repeatCount='indefinite' begin='-.2'%3E%3C/animate%3E%3C/circle%3E%3Ccircle fill='%23c6a0e6' stroke='%23c6a0e6' stroke-width='2' r='15' cx='160' cy='100'%3E%3Canimate attributeName='opacity' calcMode='spline' dur='2' values='1;0;1;' keySplines='.5 0 .5 1;.5 0 .5 1' repeatCount='indefinite' begin='0'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");
    position: absolute;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.seoaic-image-generation-wrap .loader-ellipsis.show {
    display: inline-block!important;
}

.seoaic-image-generation-wrap .loader-ellipsis.small {
    width: 60px;
    height: 12px;
}

.seoaic-image-generation-wrap .loading-icon {
    position: relative;
    height: 100%;
    width: 100%;
}

.seoaic-image-generation-wrap .waiting {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

.seoaic-image-generated-wrap,
.seoaic-image-generated-wrap .description {
    display: none;
}

.highlight-error {
    border-color: red!important;
}

.seoaic-logo {
    position: absolute;
    left: 13px;
    top: 13px;
    background-image: url(../../../assets/img/wpseoai-favicon-black-50x50.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 25px;
    height: 25px;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#seoaic_thumbnail_block .postbox-header h2 {
    position: relative;
    padding-left: 35px;
}

#seoaic_thumbnail_block .postbox-header h2:before {
    position: absolute;
    left: 5px;
    content: '';
    background-color: #000;
    background-position: center 5px;
    background-repeat: no-repeat;
    background-size: 60%;
    height: 25px;
    width: 25px;
    background-image:url(../img/s-logo.png)!important;
}

.seoaic-thumbnail-actions .thumbnail-prompt {
    display: flex;
    flex-direction: column;
}

.seoaic-thumbnail-actions #seoaic-generate-thumbnail-button {
    background: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #6079ea, #6079ea) border-box;
    border: 2px solid transparent;
    border-radius: 3px;
    color: #6079ea;
    font-size: 14px;
    transition: all .2s linear;
}

.seoaic-thumbnail-actions #seoaic-generate-thumbnail-button:hover {
    background: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff) padding-box, linear-gradient(to right, #9851e9, #6375eb) border-box;
}

.seoaic-thumbnail-actions #seoaic-generate-thumbnail-button:hover span {
    background: linear-gradient(to right, #9851e9, #6375eb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seoaic-thumbnail-actions #seoaic-generate-thumbnail-button.is-busy {
    background-clip: unset;
    background-image: linear-gradient(-45deg, #fafafa 33%, #acb4e9 0, #acb4e9 70%, #fafafa 0) !important;
    background-origin: unset;
    border: unset;
    pointer-events: none;
    animation: components-button__busy-animation 2.5s linear infinite;
    background-size: 100px 100%;
}

.seoaic-thumbnail-actions #seoaic-generate-thumbnail-button:focus {
    box-shadow: none;
}

.seoaic-thumbnail-actions label {
    min-width: 50px;
    display: inline-flex;
}
