.chrome-ai-translator {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

button#tpa-auto-btn:disabled {
    color: #555555;
}

span.proonly-button a {
    color: #fff;
    text-decoration: none;
}

span.proonly-button.alsofree {
    background: green;
}

span.proonly-button.alsofree img {
    filter: brightness(10);
    -webkit-filter: brightness(10);
}

.tpa_custom_model {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}

.tpa_custom_model .translator-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tpa_custom_model #ytWidget {
    margin: 20px 20px 10px 0px;
}

.tpa_custom_model #chrome_ai_translator_element {
    margin: 20px 20px 10px 0px;
}

.tpa_custom_model .modal-content {
    position: relative;
    background-color: #fefefe;
    width: 80%;
    margin: 32px auto 0;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.tpa_custom_model .modal-header {
    padding: 2px 16px;
    background: linear-gradient(to right, #e55860, #28aef6);
    color: white;
    height: 86px;
    max-height: 86px;
    overflow: hidden;
    position: relative;
}

.tpa_custom_model .modal-header h2 {
    display: inline-block;
    font-size: 18px;
    color: white;
    padding: 0;
    margin: 18px 5px 5px 0px;
    width: calc(100% - 160px);
}

/* The Close Button */
.tpa_custom_model .modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    /* top: 20px; */
}

.tpa_custom_model.tpa-rtl .modal-header .close  {
    left: 10px !important;
    right: auto !important;
}

.tpa_custom_model .modal-header .close:hover,
.tpa_custom_model .modal-header .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.tpa_custom_model .save_btn_cont {
    margin: 8px;
    top: 10px;
    right: 40px;
}

.tpa_custom_model.tpa-rtl .save_btn_cont {
    left: 40px !important;
    right: auto !important;
}

.tpa_custom_model .tpa-stats {
    padding: 0;
    margin: 5px 5px 5px 0;
    width: calc(100% - 160px);
    font-size: 12px;
}

.tpa_custom_model .tpa-stats a {
    color: #fff936;
}

.tpa_custom_model .modal-footer .tpa-stats {
    margin: 25px 5px 5px 0;
}

.tpa_custom_model .modal-body {
    padding: 2px 16px;
    position: relative;
}

.tpa_custom_model .notice-dismiss {
    padding: 0;
}

.tpa_custom_model h3 {
    display: inline-block;
    font-size: 22px;
    padding: 0;
    margin: 20px 0 10px;
    color: var(--wp-admin-theme-color, #2271b1);
}

#translate_element {
    margin-bottom: 25px;
}

.tpa_custom_model .string_container {
    overflow-y: scroll;
    overflow-x: hidden;
    height: calc(100vh - 450px);
    width: 100%;
    position: relative;
}

.tpa_custom_model table {
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    padding: 0;
    margin: 0;
}

.tpa_custom_model table td:first-child,
.tpa_custom_model table th:first-child {
    width: 60px;
    text-align: center;
}

.tpa_custom_model table td,
.tpa_custom_model table th {
    border: 1px solid #ddd;
    padding: 4px;
    height: 26px;
    text-align: left;
    white-space: nowrap;
    font-size: 12px;
    line-height: 14px;
    overflow: hidden;
    vertical-align: middle;
}

/* progress-bar */
.progress-container {
    background-color: #f3f3f3;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
  }
  
  .progress-bar {
    width: 0%; 
    height: 20px;
    background-color: var(--wp-admin-theme-color, #2271b1);
    text-align: center;
    color: #fff;
    transition: width 0.4s ease;
    position: relative;
    border-radius: 999px;
    background-image: none;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.02), 0 8px 16px rgba(15,23,42,0.18);
  }
  
  .progress-bar span {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    color: #fff; 
    font-weight: 600;
  }
  
  .progress-wrapper {
    width: 100%;
  }
  
  .progress-percentage {
    margin-top: 10px;
  }
  

.tpa_custom_model .my_translate_progress,
.chrome-ai-translator-modal .my_translate_progress {
    position: absolute;
    display: none;
    inset: 0;
    z-index: 9;
    box-sizing: border-box;
    padding: 32px 32px 40px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
    text-align: center;
}

.tpa_custom_model .my_translate_progress .my_translate_progress_content,
.chrome-ai-translator-modal .my_translate_progress .my_translate_progress_content{
    width: 70%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-te-combo option:first-child {
    display: none;
}

#yt-widget .yt-listbox__input:not(:checked)~.yt-listbox__text {
    display: none !important;
}

#loco-hint .loco-api.loco-api-loco_auto {
    display: none;
}

.tpa-user-message {
    font-size: 14px;
    font-weight: 600;
    color: #f33636;
    padding-bottom: 5px;
}

.ui-button.ui-dialog-titlebar-close {
    background: 0 0;
    border: none;
    box-shadow: none;
    color: #666;
    cursor: pointer;
    display: block;
    padding: 0;
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 36px;
    text-align: center;
    border-radius: 0;
    visibility: hidden;
}

.ui-dialog-titlebar-close:before {
    font: normal 20px/1 dashicons;
    vertical-align: top;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.8;
    width: 36px;
    height: 36px;
    content: "\f158";
    color: black;
    visibility: visible !important;
}

.ui-dialog-buttonpane {
    background: #fcfcfc;
    border-top: 1px solid #dfdfdf;
    padding: 16px;
}

.ui-helper-clearfix {
    min-height: 0;
    background: #f8f9fa !important;
    border-bottom: 1px solid #dfdfdf;
    height: 25px;
    font-size: 18px;
    font-weight: 600;
    line-height: 2;
}

.ui-dialog-titlebar-close .ui-button-text {
    display: none;
}

.ui-button {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2;
    height: 28px;
    margin: 0;
    padding: 0 10px 1px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    color: #555;
    border-color: #ccc;
    background: #f7f7f7;
    box-shadow: 0 1px 0 #ccc;
    vertical-align: top;
}

div#tpa-dialog {
    background-color: #f8f9fa !important;
}

.ui-dialog-buttonpane .ui-dialog-buttonset {
    float: right;
}

ul li:not(.nested-list li) {
    list-style: none;
}

strong.tpa-heading {
    display: inline-block;
    color: #000000;
    font-size: 15px;
    line-height: 1.4em;
}

button.tpa-error-reload-btn{
    background: #0073aa;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 4px 9px;
    cursor: pointer;
  }
  
  button.tpa-error-reload-btn:hover{
    background: #005682;
  }


.chrome_ai_translator_btn {
    padding: .4rem;
    border: 1px solid #2271b1;
    background: #2271b1;
    color: white;
    font-size: .9rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all .3s ease;
}

.chrome_ai_translator_btn:disabled {
    background: #f3f3f3;
    border-color: #d7d7d7;
    color: #a3a3a3;
    cursor: not-allowed;
}

.chrome_ai_translator_btn:hover:not(:disabled) {
    color: white;
    box-shadow: 0 0 0 1px #fff,0 0 0 3px #2271b1;
    background-color: #135e96;
}

#tpa-dialog .tpa-translator-icon{
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-bottom: 10px;
}

#tpa-dialog .tpa-translator-icon img{
    width: 18px;
    height: 18px;
}

#tpa-dialog .inputGroup img {
    margin: 19px 0px;
    height: 21px !important;
    width: auto !important;
}

#tpa-dialog .pro-features-img{
    margin-bottom: 10px;
}
div.ui-dialog[aria-describedby="tpa-dialog"]{
    width: fit-content !important;
    left: 0 !important;
    right: 0 !important;
    /* top: 0 !important; */
    margin: auto;
    transform: translate(0%, 50%) !important;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    /* border: solid 0.5px black; */
}
div.ui-dialog.tpa-rtl[aria-describedby="tpa-dialog"] .ui-button.ui-dialog-titlebar-close{
    right: 440px;
    color: #f8f9fa;
}
div.ui-dialog[aria-describedby="tpa-dialog"] .ui-dialog-titlebar{
    height: unset;
    padding: 8px 36px 8px 25px;
}
div.ui-dialog[aria-describedby="tpa-dialog"] span.ui-dialog-title{
    /* font-size: 20px; */
    font-weight: 700;
}

.wp-core-ui .button-primary {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
}

.wp-core-ui .button,
.wp-core-ui .button-primary,
.wp-core-ui .button-secondary {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}

span.proonly-button {
    background: #555;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: monospace;
    padding: 4px;
    border-radius: 3px;
    display: inline-block;
    margin: 2px 10px;
}

.ui-dialog-titlebar.ui-widget-header.ui-corner-all.ui-helper-clearfix.ui-draggable-handle {
    background: #fcfcfc;
    border-bottom: 1px solid #dfdfdf;
    height: 36px;
    font-size: 18px;
    font-weight: 600;
    line-height: 2;
    padding: 0 36px 0 16px;
}

.ui-dialog {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100102;
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .3);
    overflow: hidden;
}

.ui-dialog-titlebar {
    background: #f8f9fa !important;
    border-bottom: 1px solid #dfdfdf;
    height: 36px;
    font-size: 18px;
    font-weight: 600;
    line-height: 2;
    padding: 0 36px 0 16px;
}

.ui-dialog-content {
    padding: 16px;
}

.wp-core-ui .notice.is-dismissible {
    padding-right: 38px;
    position: relative;
}

.notice-info {
    border-left-color: #00a0d2;
}

.notice,
div.error,
div.updated {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-left-width: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    margin: 5px 15px 2px;
    padding: 1px 12px;
}

.notice {
    background: #fff;
    border: 1px solid #3477b9;
    border-left-width: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    margin: 5px 15px 2px;
    padding: 1px 12px;
}

.tpa_custom_model .notice.inline.notice-info.is-dismissible {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.notice,
div.error,
div.updated {
    border-left-width: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    margin: 5px 15px 2px;
    padding: 1px 12px;
    font-size: small;
}

.notice-dismiss:before,
.tagchecklist .ntdelbutton .remove-tag-icon:before,
.welcome-panel .welcome-panel-close:before {
    background: 0 0;
    color: #72777c;
    content: "\f153";
    display: block;
    font: normal 16px/20px dashicons;
    height: 20px;
    text-align: center;
    width: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.notice-dismiss {
    top: 0;
    right: 1px;
    border: none;
    margin: 0;
    padding: 9px;
    background: 0 0;
    color: #72777c;
    cursor: pointer;
}

ul.tpa-feature {
    margin-left: -41px !important;
    color: #444;
    font-size: 13px;
    line-height: 1.4em;
    min-width: 600px;
}

.about-deepl {
    color: #444;
    font-size: 13px;
    line-height: 1.4em;
}

#yt-widget .yt-button_type_right>.yt-button__text {
    text-transform: capitalize !important;
}

button.notranslate.save_it.button.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    min-height: 40px !important;
    padding: 0 24px;
    font-weight: 700;
    font-size: 13px;
    border-width: 1px;
    border-style: solid;
    white-space: nowrap;
}
button.notranslate.save_it.button.button-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

button.notranslate.save_it.button.button-primary:not([disabled]) {
    border-color: var(--wp-admin-theme-color, #2271b1);
    color: #fff;
    background-color: var(--wp-admin-theme-color, #2271b1);
    cursor: pointer;
}

button.notranslate.save_it.button.button-primary:not([disabled]):hover {
    border-color: var(--wp-admin-theme-color-darker-10, #135e96);
    color: #fff;
    background-color: var(--wp-admin-theme-color-darker-10, #135e96);
    cursor: pointer;
}

#yt-widget .yt-wrapper_align_right {
    text-align: center;
    margin-top: 3px;
    margin-left: 53px !important;
}

#yt-widget .yt-listbox__text {
    cursor: pointer;
    padding: 9px 11px !important;
    line-height: 14px !important;
    font-size: 21px !important;
}

.is-disable {
    background-color: #dddddd;
    border-color: #dddddd;
    color: #fff;
    padding: 8px;
    margin: 6px 0px;
}

.is-enable {
    border-color: #007cba;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    padding: 8px;
    margin: 6px 0px;
    background-color: #007cba;
    cursor: pointer;
}

.is-enable:hover {
    border-color: #015783;
    background-color: #015783;
}

.tpa-steps {
    font-size: 18px;
    color: #1e1e1e;
    padding: 0;
    font-weight: 600;
}

span.select2-selection.select2-selection--single {
    margin-top: 5px;
}



/**
 * placeholder-loading v0.4.0
 * Author: Zalog (https://www.zalog.ro/)
 * License: MIT
 **/
.ph-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 15px 0px 0px;
    overflow: hidden;
    direction: ltr;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 2px
}

.ph-item,
.ph-item *,
.ph-item :after,
.ph-item :before {
    box-sizing: border-box
}

.ph-item:before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    z-index: 1;
    width: 500%;
    margin-left: -250%;
    background: linear-gradient(90deg, hsla(0, 0%, 100%, 0) 46%, hsla(0, 0%, 100%, .35) 50%, hsla(0, 0%, 100%, 0) 54%) 50% 50%;
    -webkit-animation: phAnimation .8s linear infinite;
    animation: phAnimation .8s linear infinite;
    content: " ";
    pointer-events: none
}

.ph-item>* {
    display: flex;
    flex: 1 1 auto;
    flex-flow: column;
    margin-bottom: 15px;
    padding-right: 15px;
    padding-left: 15px
}

.ph-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: -7.5px
}

.ph-row div {
    height: 10px;
    margin-top: 7.5px;
    background-color: #ced4da
}

.ph-row .big,
.ph-row.big div {
    height: 20px
}

.ph-row .empty {
    background-color: hsla(0, 0%, 100%, 0)
}

.ph-col-2 {
    flex: 0 0 16.66667%
}

.ph-col-4 {
    flex: 0 0 33.33333%
}

.ph-col-6 {
    flex: 0 0 50%
}

.ph-col-8 {
    flex: 0 0 66.66667%
}

.ph-col-10 {
    flex: 0 0 83.33333%
}

.ph-col-12 {
    flex: 0 0 100%
}

[class*=ph-col] {
    direction: ltr
}

[class*=ph-col]>*+.ph-row {
    margin-top: 0
}

[class*=ph-col]>*+* {
    margin-top: 7.5px
}

.ph-avatar {
    position: relative;
    width: 100%;
    min-width: 60px;
    overflow: hidden;
    background-color: #ced4da;
    border-radius: 50%
}

.ph-avatar:before {
    display: block;
    padding-top: 100%;
    content: " "
}

.ph-picture {
    width: 100%;
    height: 120px;
    background-color: #ced4da
}

/* For RTL dailog */
div.ui-dialog[aria-describedby="tpa-dialog"].tpa-rtl{
    transform: translate(-50%, -50%);
    right: auto;
}
  
  
.tpa_custom_model.tpa-rtl .tpa_actions{
    right: auto;
    left: 40px;
}
    
.tpa_custom_model.tpa-rtl .modal-header .close{
    right: auto;
    left: 10px;
} 

    
@-webkit-keyframes phAnimation {
    0% {
        transform: translate3d(-30%, 0, 0)
    }

    to {
        transform: translate3d(30%, 0, 0)
    }
}

@keyframes phAnimation {
    0% {
        transform: translate3d(-30%, 0, 0)
    }

    to {
        transform: translate3d(30%, 0, 0)
    }
}


/* Translation Provider Table Styles - Updated to .tpa- prefix */

div.ui-dialog[aria-describedby="tpa-dialog"] {
    border-radius: 8px !important;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-modal {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    padding: 0;
    overflow: hidden;
    font-family: inherit;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table th,
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table td {
    text-align: left;
    font-size: 17px;
    vertical-align: middle;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table tbody tr td a {
    text-decoration: none;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table tbody tr td a:focus {
    box-shadow: none;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table thead th {
    background: #f7f7f7;
    font-weight: 500;
    text-align: left;
    font-size: 14px;
    color: #555;
    padding-block: 1rem;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table thead th:nth-child(1) {
    padding-left: 28px;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table thead th:nth-child(2) {
    padding-left: 90px;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table thead th:nth-child(3) {
    padding-right: 25px;
    text-align: center;
  }
  
  div.ui-dialog.tpa-rtl[aria-describedby="tpa-dialog"] .tpa-provider-table thead th:nth-child(3) {
    padding-right: 0;
    padding-left: 25px;
    text-align: center;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table tbody td:nth-child(1) {
    padding-left: 25px;
  }
  
  div.ui-dialog.tpa-rtl[aria-describedby="tpa-dialog"] .tpa-provider-table tbody td:nth-child(1) {
    padding-right: 25px;
    padding-left: 0;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table tbody tr {
    border-top: 1px solid #eee;
    height: 64px;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table tbody td:nth-child(3) {
    padding-right: 25px;
    text-align: center;
  }
  
  div.ui-dialog.tpa-rtl[aria-describedby="tpa-dialog"] .tpa-provider-table tbody td:nth-child(3) {
    padding-right: 0;
    padding-left: 25px;
    text-align: center;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table tr:last-child td {
    border-bottom: none;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-icon {
    width: 45px;
    margin-right: 15px;
    vertical-align: middle;
  }
  
  div.ui-dialog.tpa-rtl[aria-describedby="tpa-dialog"] .tpa-provider-icon {
    margin-left: 15px;
    margin-right: 0;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-name {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    margin-block: .5rem;
    color: black;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-table tbody td:nth-child(2){
    padding-left: 90px;
    padding-right: 20px;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-btn {
    width: 123px;
    display: inline-block;
    font-size: 13px !important;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
    font-weight: inherit;
    vertical-align: top;
    text-decoration: none;
    text-shadow: none;
    text-align: center;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-btn.translate {
    background: #3db63d;
    border-color: #33a133;
    color: #fff;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-btn.translate:hover {
    background: #37a737;
    border-color: #238b23;
    color: #fff;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-btn.error {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ee4237;
    border-color: #dd362b;
    color: #fff;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-btn.error img {
    margin-bottom: 0;
    margin-top: 0;
    filter: invert(1) brightness(2);
    height: 22px !important;
    margin-right: 3px;
    width: unset !important;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-btn.error:hover {
    background: #dd382e;
    border-color: #c72a20;
    color: #fff;
  }

  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-btn.error.error-disabled {
    background: #cfd5d1;
    border-color: #cfd5d1;
    color: #7f7f7f;
    cursor: not-allowed;
    border-radius: 5px;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-btn.api-key {
    background: #3db63d;
    border-color: #33a133;
    color: #fff;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-btn.api-key:hover {
    background: #37a737;
    color: #fff;
    border-color: #238b23;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .tpa-provider-modal .modal-footer {
    padding: 12px 16px;
    background: #f7f7f7;
    text-align: right;
    border-top: 1px solid #f0f0f0;
  }
  
  div.ui-dialog[aria-describedby="tpa-dialog"] .d-none {
    display: none !important;
  }
  
button#tpa_chromeai_translator_btn:disabled {
    background-color: #dddddd;
    border-color: #dddddd;
    color: #fff;
    cursor: not-allowed;
    border-radius: 5px;
}

/* Skeleton Loading CSS */
.tpa-preloader-wrap {
    padding: 20px;
}

/* Provider selection modal (Pro-style UI) */
body.tpa-provider-modal-open {
    overflow: hidden;
}

.tpa-provider-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: #000000d4;
    backdrop-filter: blur(2px);
}

.tpa-provider-modal {
    width: auto;
    min-width: 580px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    position: relative;
}

.tpa-provider-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: #64748b;
}

.tpa-provider-overlay.tpa-rtl .tpa-provider-close {
    left: 14px;
    right: auto;
}

.tpa-provider-close:before {
    content: "×";
    display: block;
    font-size: 20px;
    line-height: 32px;
    color: #64748b;
    text-align: center;
}

.tpa-provider-header {
    padding: 26px 28px 14px;
}

.tpa-provider-step {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--wp-admin-theme-color, #2271b1);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tpa-provider-title {
    margin: 0;
}

.tpa-provider-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.tpa-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 14px 28px 18px;
}

@media (max-width: 782px) {
    .tpa-provider-grid {
        grid-template-columns: 1fr;
        padding-inline: 18px;
    }
    .tpa-provider-header {
        padding-inline: 18px;
    }
    .tpa-provider-modal {
        min-width: auto;
        width: 100%;
        max-width: 560px;
    }
}

.tpa-provider-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    outline: none;
}

.tpa-provider-card.is-disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.tpa-provider-card.is-disabled:hover {
    border-color: #e5e7eb;
    box-shadow: none;
    transform: none;
}

.tpa-provider-card.is-disabled .tpa-provider-card-check {
    border-color: #e2e8f0;
    background: #f1f5f9;
    box-shadow: none;
}

.tpa-provider-card.is-disabled.is-selected {
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.tpa-provider-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.tpa-provider-card.is-selected {
    border: 2px solid var(--wp-admin-theme-color, #2271b1);
}

.tpa-provider-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.tpa-provider-card-top .tpa-provider-card-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tpa-provider-card-icon {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.tpa-provider-card-check {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    flex: 0 0 auto;
    margin-top: 2px;
}

.tpa-provider-card.is-selected .tpa-provider-card-check {
    border-color: var(--wp-admin-theme-color, #2271b1);
    background: var(--wp-admin-theme-color, #2271b1);
    box-shadow: inset 0 0 0 3px #fff;
}

.tpa-provider-card-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.tpa-provider-card-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    min-height: 38px;
}

.tpa-provider-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.tpa-provider-card-docs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 999px;
}

.tpa-provider-card-docs:hover {
    color: #0f172a;
    text-decoration: none;
}

.tpa-provider-card-action {
    display: none;
}

.tpa-provider-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    white-space: nowrap;
}

.tpa-provider-cta-btn:hover {
    background: #f1f5f9;
}

.tpa-provider-cta-btn--warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.tpa-provider-cta-btn--warning:hover {
    background: #ffedd5 !important;
    color: #9a3412 !important;
}

.tpa-provider-cta-btn--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.tpa-provider-cta-btn--danger:hover {
    background: #fee2e2;
}

.tpa-provider-cta-btn--muted {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
    cursor: default;
}

.tpa-provider-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 16px 28px 22px;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
}

.tpa-provider-footer--single {
    justify-content: center;
}

.tpa-provider-footer-btn {
    height: 40px;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
}

.tpa-provider-footer-btn:hover {
    background: #f1f5f9;
}

.yandex-widget-body .string_container .yandex-translation-info {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    font-weight: 500;
}

.tpa-provider-footer-btn.tpa-provider-start {
    background: var(--wp-admin-theme-color, #2271b1);
    border-color: var(--wp-admin-theme-color, #2271b1);
    color: #fff;
    min-width: 170px;
}

.tpa-provider-footer-btn.tpa-provider-start:hover {
    background: var(--wp-admin-theme-color-darker-10, #135e96);
    border-color: var(--wp-admin-theme-color-darker-10, #135e96);
}

.tpa-provider-footer-btn.tpa-provider-start:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tpa-provider-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: var(--wp-admin-theme-color, #2271b1);
    border: 1px solid var(--wp-admin-theme-color, #2271b1);
    color: #fff;
}

.tpa-provider-footer-link:hover {
    background: var(--wp-admin-theme-color-darker-10, #135e96);
    border-color: var(--wp-admin-theme-color-darker-10, #135e96);
    color: #fff;
}

.tpa-provider-modal,
.tpa-provider-modal *,
.tpa_custom_model,
.tpa_custom_model * {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Modern Step 4 modal refinements (Strings modal) */
.tpa_custom_model .modal-content {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.tpa_custom_model .tpa-modern-header {
    background: #ffffff !important;
    border-bottom: 1px solid #eef2f7;
    padding: 18px 22px 14px;
    height: auto !important;
    max-height: unset !important;
}

.tpa_custom_model .tpa-modern-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tpa_custom_model .tpa-modern-step {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--wp-admin-theme-color, #2271b1);
    text-transform: uppercase;
}

.tpa_custom_model .tpa-modern-title {
    margin: 6px 0 0 !important;
    font-size: 20px !important;
    color: #0f172a !important;
    width: 100% !important;
}

.tpa_custom_model .tpa-modern-close {
    width: 36px;
    height: 36px;
    cursor: pointer;
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #64748b;
}

.tpa_custom_model .tpa-modern-close:before {
    font-family: dashicons;
    content: "\f158"; /* dashicons-no-alt */
    display: block;
    font-size: 22px;
    line-height: 36px;
    color: currentColor;
    text-align: center;
}

.tpa_custom_model .tpa-modern-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.tpa_custom_model .tpa-modern-close:focus-visible {
    outline: 2px solid var(--wp-admin-theme-color, #2271b1);
    outline-offset: 2px;
}

.tpa_custom_model .tpa-modern-alert {
    margin: 14px 22px 0;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 12px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.5;
}

.tpa_custom_model .tpa-modern-alert a {
    color: var(--wp-admin-theme-color, #2271b1);
    text-decoration: none;
    font-weight: 700;
}

.tpa_custom_model .tpa-modern-alert a:hover {
    text-decoration: underline;
}

.tpa_custom_model .tpa-modern-alert--warning {
    background: rgb(255 251 235);
    border: 1px solid rgb(254 243 199);
    color: rgb(154 52 18);
}

.tpa_custom_model .tpa-modern-alert-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.tpa_custom_model .tpa-modern-alert--info .tpa-modern-alert-icon {
    background: var(--wp-admin-theme-color, #2271b1);
    color: #fff;
}

.tpa_custom_model .tpa-modern-alert--warning .tpa-modern-alert-icon {
    background: #f97316;
    color: #fff;
}

.tpa_custom_model .tpa-modern-alert-close {
    margin-left: auto;
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
    top: 0;
    right: 0;
}

.tpa_custom_model .tpa-modern-alert-close:before {
    content: "×";
    display: block;
    font-size: 16px;
    color: #9a3412;
    text-align: center;
}

.tpa_custom_model .tpa-modern-alert-close:hover {
    color: #7c2d12;
}

.tpa_custom_model .modal-body {
    padding-top: 14px;
}

.tpa_custom_model .modal-footer {
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    padding: 14px 22px;
    position: static;
    width: auto;
    height: auto;
    max-height: none;
}

.tpa_custom_model .modal-body {
    position: relative;
}

.tpa_custom_model .tpa-modern-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tpa_custom_model .tpa-modern-footer .save_btn_cont {
    flex-shrink: 0;
    margin-left: auto;
}

.tpa_custom_model .modal-footer .tpa-modern-alert {
    margin: 0;
    flex: 1 1 auto;
}

.tpa_custom_model .modal-footer .tpa-modern-alert .tpa-modern-alert-body {
    font-size: 12px;
}

.tpa_custom_model .modal-footer .tpa-modern-alert-icon {
    margin-top: 0;
}

.tpa_custom_model .tpa-modern-primary {
    min-height: 40px;
    padding-inline: 16px;
    border-radius: 10px;
    font-weight: 700;
}