Files
Jacek Pyziak cd264483f8 Add PSR HTTP Message Interfaces and Dependencies
- Implemented StreamInterface, UploadedFileInterface, and UriInterface as per PSR standards.
- Added getallheaders function to retrieve HTTP headers in a compatible manner.
- Included LICENSE files for ralouphie/getallheaders and symfony/deprecation-contracts.
- Introduced function for triggering deprecation notices in Symfony.
2025-12-28 12:44:00 +01:00

1875 lines
40 KiB
CSS

:is(#atfp-modal-open-warning-wrapper, #atfp-setting-modal, #atfp_strings_model) .modal-container {
display: none;
position: fixed;
z-index: 99999;
top: 0;
width: 100%;
height: 100vh;
overflow: hidden;
background-color: rgba(0, 0, 0, 0.75);
justify-content: center;
align-items: center;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
:is(#atfp-modal-open-warning-wrapper, #atfp-setting-modal) .modal-content {
position: relative;
background-color: #fefefe;
width: clamp(200px, 400px, 80%);
height: auto;
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: animatetopsetting;
-webkit-animation-duration: 0.6s;
-webkit-animation-fill-mode: forwards;
animation-name: animatetopsetting;
animation-duration: 0.6s;
animation-fill-mode: forwards;
padding-block: 16px;
color: black;
border-radius: 8px;
}
#atfp-modal-open-warning-wrapper .modal-content {
padding: 16px;
text-align: center;
}
#atfp-modal-open-warning-wrapper .modal-content p {
font-size: 19.2px;
font-weight: 500;
}
#atfp-modal-open-warning-wrapper .modal-content div[data-value] {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 13px;
line-height: 1.3;
min-height: 30px;
margin: 0;
cursor: pointer;
border-width: 1px;
border-style: solid;
-webkit-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;
}
#atfp-modal-open-warning-wrapper .modal-content div[data-value="yes"] {
padding: 2px 11px;
white-space: nowrap;
background: #3db63d;
border-color: #33a133;
color: #fff;
}
#atfp-modal-open-warning-wrapper .modal-content div[data-value="yes"]:hover{
background: #37a737;
border-color: #238b23;
}
#atfp-modal-open-warning-wrapper .modal-content div[data-value="no"] {
background: #ee4237;
border-color: #dd362b;
color: #fff;
padding: 2px 11px;
display: inline-flex;
align-items: center;
}
#atfp-modal-open-warning-wrapper .modal-content div[data-value="no"]:hover{
background: #dd382e;
border-color: #c72a20;
}
/* Setting Modal CSS Start */
#atfp-setting-modal .atfp-error-modal-box-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.75);
display: flex;
justify-content: center;
align-items: center;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
z-index: 99999;
}
#atfp-setting-modal .atfp-error-modal-box {
background-color: #fefefe;
width: clamp(200px, 500px, 80%);
height: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border-radius: 8px;
}
#atfp-setting-modal .atfp-error-modal-box-header {
position: relative;
}
#atfp-setting-modal .atfp-error-modal-box-header h3 {
height: unset;
padding: 8px 36px 8px 25px;
border: none;
background: 0 0;
border-bottom: 1px solid #dcdcde;
font-size: 18px;
font-weight: 600;
line-height: 2;
margin: 0;
color: black;
}
#atfp-setting-modal .atfp-error-modal-box-header .atfp-error-modal-box-close {
right: 15px;
top: 13px;
border-radius: 0 !important;
height: 30px !important;
width: 20px !important;
position: absolute;
font-size: 32px;
font-weight: bold;
color: #646970;
cursor: pointer;
}
#atfp-setting-modal .atfp-error-modal-box-body h4 {
margin: 0;
margin-top: 0;
margin-bottom: 24px;
display: block;
font-weight: 600;
padding: 0;
box-sizing: border-box;
}
#atfp-setting-modal .atfp-error-modal-box-body ol {
margin-top: 0;
margin-bottom: 24px;
list-style-type: decimal;
margin-left: 32px;
box-sizing: border-box;
padding: 0;
}
#atfp-setting-modal .atfp-error-modal-box-body ol li {
margin-bottom: 6px;
list-style: decimal;
}
#atfp-setting-modal .atfp-error-modal-box-body p {
margin: 0;
padding: 0;
}
#atfp-setting-modal .atfp-error-modal-box-body p * {
color: red !important;
font-size: 16px;
box-shadow: unset;
outline: unset;
border: unset;
line-height: 1.5;
}
#atfp-setting-modal .atfp-error-modal-box-body p a {
color: #2271b1 !important;
text-decoration: underline;
}
button.atfpp-error-reload-btn{
background: #0073aa;
color: #fff !important;
border: none;
border-radius: 4px;
padding: 4px 9px;
cursor: pointer;
}
button.atfpp-error-reload-btn:hover{
background: #005682;
}
#atfp-setting-modal .atfp-error-modal-box-body {
min-height: 0px;
max-height: 65vh;
height: auto;
padding: 22px;
overflow: auto;
}
#atfp-setting-modal .atfp-error-modal-box-footer {
background: 0 0;
border: none;
border-top: 1px solid #dcdcde;
margin-top: 0;
padding: 16px 22.4px;
text-align: end;
}
#atfp-setting-modal .atfp-error-modal-box-footer .atfp-error-modal-box-close {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1rem;
line-height: 1.3;
min-height: 30px;
margin: 0;
padding: .1rem .4rem;
white-space: nowrap;
border-radius: 3px;
cursor: pointer;
opacity: .7;
background: #f6f7f7;
border: 1px solid #c3c4c7;
color: #50575e;
padding: 5px;
border-radius: 3px;
}
#atfp-setting-modal .atfp-error-modal-box-footer .atfp-error-modal-box-close:hover {
background-color: #e1e1e1;
border-color: #c9c9c9;
}
#atfp-setting-modal .modal-content {
width: clamp(200px,520px,100vw);
padding: 0px;
}
#atfp-setting-modal .atfp-error-message {
margin: 0!important;
padding: 0 0 10px;
font-weight: 500;
font-size: 13px;
line-height: 1.2;
color: red;
text-align: start;
}
#atfp-setting-modal .atfp-provider-error {
background: #ee4237;
border-color: #dd362b;
color: #fff;
padding: 2px 11px;
display: inline-flex;
align-items: center;
}
#atfp-setting-modal .atfp-provider-error:hover{
background: #dd382e;
border-color: #c72a20;
}
#atfp-setting-modal .atfp-provider-error img {
display: inline-flex;
margin-bottom: 0px !important;
margin-top: 0px !important;
filter: invert(1) brightness(2);
height: 22px !important;
margin-right: 3px;
}
#atfp-setting-modal .modal-header h2 {
height: unset;
padding: 8px 36px 8px 25px;
border: none;
background: 0 0;
border-bottom: 1px solid #dcdcde;
font-size: 18px;
font-weight: 600;
line-height: 2;
margin: 0;
}
#atfp-setting-modal .modal-header span.close {
right: 15px;
top: 13px;
border-radius: 0 !important;
height: 30px !important;
width: 20px !important;
position: absolute;
font-size: 32px;
font-weight: bold;
color: #646970;
cursor: pointer;
}
.atfp-setting-modal-body{
max-width: 100vw;
overflow-x: auto;
}
.atfp-setting-modal-body table{
width: 100%;
border-collapse: collapse;
}
.atfp-setting-modal-body thead{
background: #f3f3f3;
}
.atfp-setting-modal-body thead th{
text-align: left;
font-weight: 500;
font-size: 14px;
color: #555;
padding-block: 1rem;
}
.atfp-setting-modal-body thead th:nth-child(1){
padding-left: 28px;
}
.atfp-setting-modal-body thead th:nth-child(2){
padding-left: 90px;
}
.atfp-setting-modal-body thead th:nth-child(3){
padding-right: 25px;
text-align: center;
}
.atfp-setting-modal-body tbody tr{
border-top: 1px solid #eee;
height: 64px;
}
.atfp-setting-modal-body tbody td.atfp-provider-name{
display: flex;
align-items: center;
font-size: 16px;
font-weight: 600;
margin-block: .5rem;
}
.atfp-setting-modal-body tbody td img{
width: 45px;
margin-right: 15px;
}
.atfp-setting-modal-body tbody td:nth-child(1){
padding-left: 25px;
}
.atfp-setting-modal-body tbody td:nth-child(2){
padding-left: 90px;
padding-right: 20px;
}
.atfp-setting-modal-body tbody td:nth-child(3){
padding-right: 25px;
text-align: center;
}
.atfp-setting-modal-body tbody .button{
width: 123px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 13px;
line-height: 1.3;
min-height: 30px;
margin: 0;
cursor: pointer;
border-width: 1px;
border-style: solid;
-webkit-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;
}
.atfp-setting-modal-body tbody .button.atfp-service-btn{
padding: 2px 11px;
white-space: nowrap;
background: #3db63d;
border-color: #33a133;
color: #fff;
}
.atfp-setting-modal-body tbody .button.atfp-service-btn:hover{
background: #37a737;
border-color: #238b23;
}
.atfp-setting-modal-body tbody .button.atfp-provider-error{
background: #ee4237;
border-color: #dd362b;
color: #fff;
padding: 2px 11px;
display: inline-flex;
align-items: center;
}
.atfp-setting-modal-body tbody .button.atfp-provider-error img{
display: inline-flex;
margin-bottom: 0px;
margin-top: 0px;
filter: invert(1) brightness(2);
height: 22px;
margin-right: 3px;
width: unset !important;
}
.atfp-setting-modal-body tbody .button.atfp-provider-error:hover{
background: #dd382e;
border-color: #c72a20;
}
.atfp-setting-modal-body tbody .atfp-doc-icon {
display: inline-flex;
width: 20px;
height: 26px;
}
.atfp-setting-modal-body tbody .atfp-doc-icon:focus{
outline: none;
box-shadow: unset;
}
.atfp-setting-modal-body tbody .atfp-doc-icon svg{
width: 20px;
height: 28px;
}
#atfp-setting-modal .atfp-translator-row .atfp-translator-footer .atfp-localai-disabled-message:hover {
background: red;
}
#atfp-setting-modal .modal-footer {
background: 0 0;
border: none;
border-top: 1px solid #dcdcde;
margin-top: 0;
padding: 16px 22.4px;
text-align: end;
}
#atfp-setting-modal .modal-footer .atfp-setting-close {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1rem;
line-height: 1.3;
min-height: 30px;
margin: 0;
padding: .1rem .4rem;
white-space: nowrap;
border-radius: 3px;
cursor: pointer;
opacity: .7;
background: #f6f7f7;
border: 1px solid #c3c4c7;
color: #50575e;
padding: 5px;
border-radius: 3px;
}
#atfp-setting-modal .modal-footer .atfp-setting-close:hover {
background-color: #e1e1e1;
border-color: #c9c9c9;
}
/* Setting Modal CSS End */
#atfp_strings_model .atfp-notice {
box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
border: 1px solid #c3c4c7;
border-left-width: 4px;
padding: 4.8px;
margin-top: 8px;
}
#atfp_strings_model .atfp-notice p {
padding: 0;
margin: 0;
font-size: 14px;
color: #3c3c3c;
}
#atfp_strings_model .atfp-notice-info {
border-left-color: #72aee6;
}
#atfp_strings_model .atfp-notice-warning {
border-left-color: #f0ad4e;
}
#atfp_strings_model .atfp-notice-error {
border-left-color: #d9534f;
}
#atfp_strings_model .atfp-notice-success {
border-left-color: #5cb85c;
}
#atfp_strings_model .modal-content {
position: relative;
background-color: #fefefe;
width: 80%;
max-height: calc(100% - 40px);
min-height: 70vh;
overflow: hidden;
border-radius: 5px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);
-webkit-animation-name: animatetop;
-webkit-animation-duration: .6s;
animation-name: animatetop;
animation-duration: .6s;
animation-fill-mode: forwards;
}
@-webkit-keyframes animatetopsetting {
from {
opacity: 0
}
to {
opacity: 1
}
}
@keyframes animatetopsetting {
from {
opacity: 0
}
to {
opacity: 1
}
}
@-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
}
}
#atfp_strings_model .modal-header {
padding: 2px 16px;
background-color: #5cb85c;
color: white;
height: 86px;
max-height: 86px;
overflow: hidden;
position: relative;
}
#atfp_strings_model .modal-header h2 {
display: inline-block;
font-size: 18px;
color: white;
padding: 0;
margin: 18px 159px 5px 0px;
width: calc(100% - 160px);
}
/* The Close Button */
button.atfp-setting-close {
background: #f6f7f7;
border: 1px solid #c3c4c7;
color: #50575e;
}
button.atfp-setting-close:hover {
background-color: #e1e1e1;
border-color: #c9c9c9;
}
#atfp_strings_model .modal-header .close {
color: white;
font-size: 28px;
font-weight: bold;
position: absolute;
right: 10px;
top: 18px;
line-height: 24px;
}
#atfp_strings_model .modal-header .close:hover,
#atfp_strings_model .modal-header .close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
#atfp_strings_model .save_btn_cont {
margin: 8px;
position: absolute;
top: 10px;
right: 40px;
}
#atfp_strings_model .save_btn_cont button:not([disabled]):before {
font-family: dashicons;
content: "\f345";
display: inline-block;
font-size: 24px;
line-height: 26px;
vertical-align: middle;
left: -20px;
position: absolute;
color: #fff;
animation: moveit 5s infinite;
-webkit-animation: moveit 1s infinite;
}
#atfp_strings_model .save_btn_cont button .updating-text {
display: flex;
align-items: center;
justify-content: center;
}
#atfp_strings_model .save_btn_cont button .updating-text .dot {
width: 4px;
height: 4px;
border-radius: 999px;
background: #ffffff;
margin-left: 1px;
margin-top: 6px;
opacity: 0.25;
animation: atfp-savingBlink 1.05s infinite ease-in-out;
animation-delay: calc(var(--i) * 0.18s - 1.05s);
will-change: opacity, transform;
}
@keyframes atfp-savingBlink {
0%,
20% {
opacity: 0.25;
transform: translateY(0);
}
40% {
opacity: 1;
transform: translateY(-1px);
}
60% {
opacity: 0.9;
transform: translateY(0);
}
100% {
opacity: 0.25;
transform: translateY(0);
}
}
:where(.local_ai_translator_btn, #atfp-ai-translate-btn).button-primary {
background: #2271b1;
border-color: #2271b1;
color: #fff;
text-shadow: none;
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
font-size: 13px;
line-height: 1.3;
min-height: 30px;
margin: 0;
padding: 0 10px;
cursor: pointer;
border-width: 1px;
border-style: solid;
-webkit-appearance: none;
border-radius: 3px;
white-space: nowrap;
box-sizing: border-box;
font-family: inherit;
}
:where(.local_ai_translator_btn, #atfp-ai-translate-btn).button-primary[disabled] {
color: #a7aaad !important;
background: #f6f7f7 !important;
border-color: #dcdcde !important;
text-decoration: none;
text-shadow: none;
border: none;
min-height: 30px;
margin: 0;
padding: 0 10px;
white-space: nowrap;
border-radius: 2px;
cursor: default;
}
@keyframes moveit {
from {
left: -22px;
}
to {
left: -10px;
}
}
#atfp_strings_model .ytstats {
padding: 0;
margin: 5px 160px 5px 0;
width: calc(100% - 160px);
}
#atfp_strings_model .ytstats a {
color: #fff936;
}
#atfp_strings_model .modal-body {
padding: 2px 16px;
}
#atfp_strings_model .notice-dismiss {
padding: 0;
}
#atfp_strings_model h3 {
width: 100%;
display: inline-block;
font-size: 22px;
padding: 0;
color: #5cb85c;
margin: 0px !important;
}
#translate_element {
margin-bottom: 25px;
}
#atfp_strings_model .atfp_string_container {
overflow-y: auto;
overflow-x: hidden;
max-height: calc(100vh - 300px - var(--atfp-notice-wrapper-height,0px));
width: 100%;
position: relative;
color: #3c3c3c;
margin-bottom: 76px;
}
#atfp_strings_model .atfp_string_container.atfp_empty_string {
max-height: calc(100vh - 196px - var(--atfp-notice-wrapper-height, 0px));
display: flex;
align-items: center;
}
#atfp_strings_model .atfp_string_container.atfp_empty_string p {
text-align: center;
font-size: 32px;
font-weight: bolder;
color: #5cb85c;
background: whitesmoke;
padding: 16px;
}
#atfp_strings_model .modal-footer {
display: flex;
align-items: center;
}
#atfp_strings_model .modal-footer .notice.atfp_string_count {
display: block;
max-width: calc(100% - 165px)!important;
}
#atfp_strings_model .modal-footer .notice.atfp_string_count a{
white-space: nowrap;
}
#atfp_strings_model .notice.atfp_string_count {
top: unset;
left: unset;
font-size: 16px;
background: transparent;
border-width: 0px;
margin-left: 0px;
padding-left: 0px;
padding-right: 0px;
}
#atfp_strings_model .modal-footer .notice.atfp_string_count p {
margin: 0px !important;
padding: 0px !important;
font-size: 16px;
}
#atfp_strings_model table {
border-spacing: 0;
border-collapse: collapse;
width: 100%;
max-width: 100%;
table-layout: fixed;
padding: 0;
margin: 0;
}
#atfp_strings_model table td:first-child,
#atfp_strings_model table th:first-child {
width: 60px;
text-align: center;
}
#atfp_strings_model table td,
#atfp_strings_model table th {
border: 1px solid #ddd;
padding: 4px;
height: 26px;
text-align: left;
white-space: pre-wrap;
font-size: 12px;
line-height: 14px;
overflow: hidden;
vertical-align: middle;
}
#atfp_strings_model table td.atfp-empty-translation-cell {
text-align: center;
vertical-align: middle;
}
#atfp_strings_model table td.atfp-empty-translation-cell:hover{
background-color: #f0f0f0;
}
#atfp_strings_model table td.atfp-empty-translation-cell .atfp-add-translation-icon {
max-width: 16px; /* Adjust as needed */
max-height: 16px; /* Adjust as needed */
opacity: 0.5; /* Optional: make it less prominent */
}
#atfp_strings_model .atfp_translate_progress {
position: absolute;
display: none;
top: 92px;
left: 10px;
color: #fff;
background: rgba(0,0,0,.5);
width: calc(100% - 22px);
border-radius: 3px;
height: 100%;
z-index: 9;
box-sizing: border-box;
font-size: 16px;
line-height: 20px;
font-weight: 700;
text-align: center;
padding-top: 30px;
height: calc(100% - 164px);
}
#atfp_strings_model .atfp_translate_element_wrapper {
display: flex;
justify-content: start;
align-items: start;
column-gap: 8px;
margin-block: 1rem;
}
#atfp_strings_model .atfp_translate_element_wrapper>button {
height: 34px;
pointer-events: none;
}
#atfp_strings_model .atfp_translate_element_wrapper :where(#atfp_openai_ai_translate_element, #atfp_google_ai_translate_element, #atfp_openrouter_ai_translate_element){
display: flex;
gap: 10px;
}
#atfp_strings_model .atfp_translate_element_wrapper #atfp_ai_translate_options {
width: auto;
}
#atfp_strings_model .atfp_translate_element_wrapper #atfp-ai-translate-btn {
white-space: nowrap;
}
#atfp_strings_model .modal-footer {
padding: 2px 16px;
background-color: #5cb85c;
color: white;
position: absolute;
/* width: calc(100% - 32px); */
width: 100%;
bottom: 0;
height: 66px;
max-height: 66px;
box-sizing: border-box;
}
#yt-widget .yt-listbox__input:not(:checked)~.yt-listbox__text {
display: none !important;
}
/* Strings modal skeleton loader start */
.atfp-skeleton-loader-wrapper .atfp-skeleton-loader-mini {
height: 19px;
padding: 9px;
box-sizing: border-box;
width: 100%;
border-radius: 3px;
background: linear-gradient(
90deg,
#e0e0e0 25%,
#f5f5f5 50%,
#e0e0e0 75%
);
background-size: 200% 100%;
animation: atfp-shimmer 1.2s infinite linear;
}
.atfp-skeleton-loader-wrapper .translate-widget{
display: grid;
grid-template-columns: 2fr 1fr;
gap: 10px;
height: 88px;
align-items: center;
}
.atfp-skeleton-loader-wrapper .translate-widget .atfp-skeleton-loader-mini{
height: 30px;
max-width: 180px;
margin-left: auto;
}
.atfp-skeleton-loader-wrapper .translate-widget .atfp-skeleton-loader-mini:nth-child(1){
max-width: 280px;
margin-left: 0px;
margin-right: auto;
}
.atfp-skeleton-loader-wrapper table .atfp-skeleton-loader-mini{
max-width: 80%;
margin: .3rem auto;
}
/* Strings modal skeleton loader end */
/* error message css start */
#atfp_strings_model.atfp_fetch_error .atfp_string_container {
display: flex;
justify-content: center;
align-items: center;
}
#atfp_strings_model.atfp_fetch_error :where(.save_btn_cont, table#stringTemplate) {
display: none;
}
#atfp_strings_model.atfp_fetch_error span.atfp_string_error_msg {
color: red;
font-size: 24px;
padding: 32px;
}
body>div.skiptranslate iframe.skiptranslate[frameborder][src][style="visibility:visible"] {
visibility: hidden !important;
}
/* meta box review notice style start */
.atfp-review-meta-box {
text-align: center;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1882352941);
padding: 10px 0px !important;
border-radius: 5px !important;
}
.atfp-review-meta-box p {
margin: 0px;
}
.atfp-review-meta-box p a {
margin-top: 8px;
}
.atfp-review-meta-box p a span {
color: #ffb900 !important;
margin-left: 5px;
}
/* Skeleton Shimmer Animation */
.atfp-loader-skeleton {
position: absolute;
height: 100%;
width: 100%;
overflow: hidden;
background-color: #e0e0e0;
/* Light gray background */
border-radius: 4px;
/* Rounded corners */
top: 0;
left: 0;
opacity: 0.9;
}
.atfp-loader-skeleton::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
#e0e0e0 25%,
#f5f5f5 50%,
#e0e0e0 75%
);
background-size: 200% 100%;
animation: atfp-shimmer 1.5s infinite linear;
}
@keyframes atfp-shimmer {
0% {
background-position: 100%;
}
100% {
background-position: -100%;
}
}
:where(#atfp-localAiTranslator-strings-modal, #atfp-openai_ai-strings-modal, #atfp-google_ai-strings-modal, #atfp-openrouter_ai-strings-modal, #atfp-yandex-strings-modal, #atfp-google-strings-modal, #atfp-deepl_ai-strings-modal) .translator-widget {
justify-content: space-between;
align-items: center;
}
#atfp_strings_model :where(#atfp-localAiTranslator-strings-modal, #atfp-openai_ai-strings-modal, #atfp-google_ai-strings-modal, #atfp-deepl_ai-strings-modal) h3 {
margin: 20px 0px;
}
#atfp_google_translate_element select{
width: 100%;
}
#atfp_strings_model .atfp_string_container {
max-height: calc(100vh - 270px - var(--atfp-notice-wrapper-height, 0px));
box-shadow: 0 -1px 4px #0000005e inset;
}
#atfp_strings_model :where(#atfp-google-strings-modal, #atfp-yandex-strings-modal) .atfp_string_container {
max-height: calc(100vh - 300px - var(--atfp-notice-wrapper-height, 0px));
}
#atfp_strings_model .react-loading-skeleton-atfp {
height: calc(100vh - 235px - var(--atfp-notice-wrapper-height, 0px)) !important;
margin-block: 16px;
}
#atfp-pro-notice-wrapper {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
display: flex;
height: 100%;
justify-content: center;
align-items: center;
background-color: rgba(34, 34, 34, 0.7);
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
z-index: 9999;
opacity: 0;
transition: opacity 0.5s ease;
padding: 16px;
color: black;
}
#atfp-pro-notice-wrapper.atfp-active {
opacity: 1;
}
#atfp-pro-notice-wrapper .atfp-pro-notice {
position: relative;
top: 0;
left: 0;
width: 400px;
background: #fff;
border-radius: 10px;
overflow: hidden;
}
#atfp-pro-notice-wrapper .atfp-pro-notice .atfp-notice-header {
background-color: #f3f3f3;
color: black;
display: flex;
justify-content: space-between;
align-items: center;
padding: 14.4px 10px;
border-bottom: 1px solid black;
}
#atfp-pro-notice-wrapper .atfp-pro-notice .atfp-notice-header h2 {
margin: 0px !important;
padding: 0px !important;
}
#atfp-pro-notice-wrapper .atfp-pro-notice .atfp-notice-header .atfp-close-button {
cursor: pointer;
font-size: 19px;
font-weight: 700;
background: transparent;
box-shadow: unset;
border: 0px;
color: black;
display: inline-flex;
line-height: 1;
}
#atfp-pro-notice-wrapper .atfp-pro-notice .atfp-notice-content {
margin: 10px;
font-size: 16px;
color: #3c3c3c;
line-height: 18px;
}
#atfp-pro-notice-wrapper .atfp-pro-notice .atfp-notice-content p {
font-size: 16px;
line-height: 18px;
margin: 0px !important;
padding: 0px !important;
}
#atfp-pro-notice-wrapper .atfp-pro-notice .atfp-notice-footer {
background-color: #f3f3f3;
padding: 10px;
border-top: 1px solid black;
}
#atfp-pro-notice-wrapper .atfp-pro-notice .atfp-notice-footer .atfp-upgrade-button {
background-color: #F0ABFC;
color: black;
text-decoration: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
display: inline-block;
}
#atfp-pro-notice-wrapper .atfp-pro-notice .atfp-notice-footer .atfp-upgrade-button:hover {
background-color: #f09dff;
/* Darker shade on hover */
}
/* Ai Error Message start*/
.atfp-pending-request-message-container {
position: absolute;
top: 0;
left: 10px;
width: calc(100% - 22px);
height: calc(100vh - 40px - 70px);
z-index: 999;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-sizing: border-box;
border-radius: 8px;
background: rgba(0, 0, 0, 0.75);
color: #fff;
padding: 20px;
font-size: 16px;
line-height: 1.6;
font-weight: 400;
text-align: center;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(4px);
}
.atfp-pending-request-message {
max-width: 600px;
margin-bottom: 20px;
}
.atfp-pending-request-message p.atfp-pending-request-message-heading {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 10px;
color: #ffce3d;
color: #6ce568;
}
.atfp-pending-request-message p {
margin: 10px 0;
font-size: 1rem;
}
.atfp-pending-request-message-buttons {
display: flex;
gap: 12px;
}
.atfp-pending-request-message-buttons button{
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
font-size: 13px;
line-height: 1.3;
min-height: 30px;
margin: 0;
padding: 0 10px;
cursor: pointer;
border-width: 1px;
border-style: solid;
-webkit-appearance: none;
border-radius: 3px;
white-space: nowrap;
box-sizing: border-box;
}
.atfp-pending-request-message-buttons button:nth-child(1) {
background: #30b230 !important;
color: #fff !important;
border-color: #239d23 !important;
transition: all .3s ease-in-out;
}
.atfp-pending-request-message-buttons button:nth-child(1):hover {
background: #2da52d !important;
border-color: #209120 !important;
}
.atfp-pending-request-message-buttons button:nth-child(2) {
background: #0073aa !important;
color: #fff !important;
border-color: #2271b1 !important;
transition: all .3s ease-in-out;
}
.atfp-pending-request-message-buttons button:nth-child(2):hover {
background: #006594 !important;
border-color: #1e649e !important;
}
/* Ai Error Message end */
/* Tooltip element */
#atfp-setting-modal .atfp-tooltip-element {
position: relative;
overflow: visible;
cursor: pointer;
white-space: nowrap;
}
#atfp-setting-modal .atfp-tooltip-element .atfp-tooltip {
display: block;
font-size: 12.8px;
position: absolute;
background: #5cb85c;
color: #fff !important;
padding: 3.2px 8px;
border-radius: 4px;
top: 0;
left: 20px;
right: 20px;
margin: auto;
opacity: 0;
width: 121px;
white-space: nowrap;
}
#atfp-setting-modal .atfp-tooltip-element .atfp-tooltip.atfp-tooltip-active {
-webkit-animation: atfp-slide-up 0.15s cubic-bezier(0.51, 0.92, 0.265, 1.55) both;
animation: atfp-slide-up 0.15s cubic-bezier(0.51, 0.92, 0.265, 1.55) both;
}
#atfp-setting-modal .atfp-tooltip-element .atfp-tooltip:after {
content: "";
position: absolute;
top: 98%;
left: 50%;
margin-left: -8px;
width: 0;
height: 0;
border-top: 8px solid #5cb85c;
border-right: 8px solid transparent;
border-left: 8px solid transparent;
}
/* rtl css start */
body.rtl #atfp-setting-modal .modal-header h2 {
padding: 8px 25px 8px 36px;
}
body.rtl #atfp_strings_model .modal-header .close {
left: 10px;
right: unset;
}
body.rtl #atfp_strings_model .modal-header h2 {
margin: 18px 0px 5px 159px;
}
body.rtl #atfp-setting-modal .modal-header span.close {
left: 15px;
right: unset;
}
body.rtl #atfp_strings_model .save_btn_cont {
left: 40px;
right: unset;
}
/* rtl css end */
@-webkit-keyframes atfp-slide-up {
0% {
transform: translateY(0) scale(0.8);
opacity: 0;
}
100% {
transform: translateY(-35px) scale(1);
opacity: 1;
}
}
@keyframes atfp-slide-up {
0% {
transform: translateY(0) scale(0.8);
opacity: 0;
}
100% {
transform: translateY(-35px) scale(1);
opacity: 1;
}
}
@media screen and (max-width: 767px) and (min-width: 567px) {
#atfp-setting-modal .atfp-translator-row .atfp-translator-column {
width: 100% !important;
}
#atfp-setting-modal .atfp-translator-row:has(> :nth-child(2)) .atfp-translator-column {
width: calc(50% - (21.3px / 2)) !important;
}
}
@media screen and (max-width: 567px) {
#atfp-setting-modal .atfp-translator-row .atfp-translator-column {
width: 100% !important;
}
}
/* includes/automatic-translate/src/component/AtfpRightPopup.css */
.atfp-right-popup {
position: fixed;
top: 0;
right: -400px;
width: 350px;
height: 100%;
background: #222;
color: #fff;
box-shadow: -2px 0 8px rgba(0,0,0,0.2);
z-index: 9999;
transition: right 0.3s cubic-bezier(.4,0,.2,1);
display: flex;
flex-direction: column;
pointer-events: none;
}
.atfp-right-popup--open {
right: 0;
pointer-events: auto;
}
.atfp-right-popup__overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.2);
z-index: 9998;
display: none;
}
.atfp-right-popup--open .atfp-right-popup__overlay {
display: block;
}
.atfp-right-popup__content {
padding: 24px 16px 16px 16px;
height: 100%;
overflow-y: auto;
position: relative;
}
.atfp-right-popup__close {
position: absolute;
top: 12px;
right: 12px;
background: none;
border: none;
color: #fff;
font-size: 2rem;
cursor: pointer;
}
/* Inline popover for right of textarea */
.atfp-inline-popup {
position: absolute;
top: 0;
left: 100%;
margin-left: 12px;
min-width: 220px;
max-width: 320px;
background: #222;
color: #fff;
border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.18);
z-index: 1000;
padding: 16px 16px 16px 24px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.atfp-inline-popup__close {
position: absolute;
top: 8px;
right: 8px;
background: none;
border: none;
color: #fff;
font-size: 1.3rem;
cursor: pointer;
}
.atfp-inline-popup__content {
margin-top: 24px;
width: 100%;
}
/* InfoPopup styles */
.atfp-info-popup {
position: absolute;
background: #5cb85c;
border-radius: 4px;
z-index: 99999;
padding: 8px 3px;
min-width: 48px;
min-height: 48px;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
border: 1px solid #fff;
transition: left 0.25s cubic-bezier(.4,0,.2,1), top 0.25s cubic-bezier(.4,0,.2,1);
max-width: 320px;
box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.atfp-info-popup__close {
background: #fff;
color: #222;
border: none;
border-radius: 50%;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 18px;
margin-bottom: 12px;
cursor: pointer;
}
.atfp-info-popup__glossary,
.atfp-info-popup__copy,
.atfp-info-popup__add-glossary {
background: none;
border: none;
color: #fff;
margin: 5px 0;
font-size: 22px;
cursor: pointer;
}
.atfp-info-popup__close img {
width: 16px;
height: 16px;
object-fit: contain;
display: block;
}
/* GlossaryPopup styles */
.atfp-glossary-popup {
position: absolute;
background: #5cb85c;
color: #fff;
border-radius: 16px;
padding: 10px;
z-index: 100000;
min-width: 400px;
max-width: 90vw;
box-shadow: 0 2px 16px rgba(0,0,0,0.3);
transition: left 0.2s, top 0.2s, width 0.2s;
}
/* Responsive: On small screens, make it full width and centered */
@media (max-width: 600px) {
.atfp-glossary-popup {
left: 50% !important;
top: 10vh !important;
min-width: 0;
width: 95vw !important;
max-width: 98vw;
transform: translateX(-50%);
padding: 12px;
border-radius: 10px;
}
.atfp-glossary-popup__header {
font-size: 1rem;
}
.atfp-glossary-popup table {
font-size: 0.95em;
}
}
.atfp-glossary-popup h3 {
margin-top: 0;
}
.atfp-glossary-popup table {
width: 100%;
margin-top: 16px;
border-collapse: collapse;
}
.atfp-glossary-popup th {
border: 1px solid #fff;
padding: 6px 8px;
text-align: left;
}
.atfp-glossary-insert {
background: none;
border: 1px solid #2196f3;
color: #2196f3;
border-radius: 3px;
padding: 2px 12px;
cursor: pointer;
font-size: 14px;
}
/* GlossaryPopup header with icon and badge */
.atfp-glossary-popup__header {
display: flex;
align-items: center;
gap: 8px;
font-size: 1.1rem;
}
.atfp-glossary-popup__icon {
font-size: 1.2em;
margin-right: 4px;
}
.atfp-glossary-popup__badge {
background: #ff9800;
color: #fff;
border-radius: 50%;
font-size: 0.85em;
padding: 4px 8px;
margin-left: 6px;
font-weight: bold;
display: inline-block;
line-height: 1;
}
.atfp-glossary-popup table {
margin-top: 0;
}
.atfp-glossary-popup thead tr {
border: none;
border-bottom: 2px solid #444;
background: transparent;
}
.atfp-glossary-popup tbody tr {
border: none;
border-bottom: 1px solid #7a7a7a;
background: transparent;
}
.atfp-glossary-popup th {
border: none;
color: #fff;
font-weight: 600;
font-size: 1em;
background: transparent;
}
.atfp-glossary-popup td {
padding: 6px 8px;
text-align: left;
color: #fff;
font-size: 0.98em;
}
.atfp-glossary-insert {
background: none;
border: 1px solid #2196f3;
color: #2196f3;
border-radius: 3px;
padding: 2px 12px;
cursor: pointer;
font-size: 14px;
transition: background 0.2s, color 0.2s;
}
.atfp-glossary-insert {
background: #2196f3;
color: #fff;
}
/* Bookmark icon styling for popups */
.atfp-bookmark-icon {
width: 25px;
height: 30px;
display: inline-block;
vertical-align: middle;
object-fit: contain;
margin-right: 4px;
border-radius: 4px;
padding: 8px 5px 5px 5px;
}
.atfp-bookmark-icon:hover {
background: #fff;
}
.atfp-bookmark-icon--active {
background: #fff;
}
/* Copy icon styling for popups */
.atfp-copy-icon,
.atfp-add-icon {
width: 24px;
height: 24px;
display: inline-block;
vertical-align: middle;
object-fit: contain;
margin-right: 4px;
border-radius: 4px;
padding: 5px;
}
.atfp-copy-icon:hover,
.atfp-add-icon:hover,
.atfp-add-icon--active {
background: #fff;
}
.atfp-info-popup__add-glossary.atfp-active {
border-radius: 4px;
}
/* Wrapper for icon and badge */
.atfp-bookmark-icon-wrapper {
position: relative;
display: inline-block;
}
/* Badge styling and placement */
.atfp-bookmark-badge {
position: absolute;
top: -6px;
right: -6px;
background: #ff9800;
color: #fff;
border-radius: 50%;
font-size: 13px;
font-weight: bold;
padding: 2px 6px;
min-width: 11px;
min-height: 18px;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
pointer-events: none;
}
.atfp-info-popup__save {
background: none;
border: none;
color: #fff;
margin: 5px 0;
font-size: 22px;
cursor: pointer;
}
.atfp-save-icon {
width: 26px;
height: 26px;
display: inline-block;
vertical-align: middle;
object-fit: contain;
margin-right: 4px;
border-radius: 4px;
padding: 5px;
}
.atfp-save-icon:hover {
background: #fff;
}
.atfp-translation-textarea {
resize: vertical !important;
width: 100%;
min-height: 40px;
}
/* Add Glossary Popup Styles */
.atfp-add-glossary-popup {
top: 50%;
transform: translateY(-50%);
min-width: 380px;
max-width: 400px;
color: #fff;
border-radius: 16px;
box-shadow: 0 2px 16px rgba(0,0,0,0.3);
z-index: 100001; /* Higher than glossary popup */
position: fixed; /* Ensure it's in its own stacking context */
}
.atfp-add-glossary-popup .atfp-glossary-popup__header {
display: flex;
align-items: center;
gap: 8px;
font-size: 1.1rem;
padding: 12px 16px;
border-bottom: 2px solid #444;
}
.atfp-add-glossary-form {
padding: 16px;
}
.atfp-form-group {
margin-bottom: 16px;
}
.atfp-form-group label {
display: block;
margin-bottom: 6px;
font-weight: 500;
color: #333;
}
.atfp-form-group input,
.atfp-form-group select,
.atfp-form-group textarea {
width: 100%;
padding: 8px;
border: 1px solid #444;
border-radius: 4px;
font-size: 14px;
}
.atfp-form-group #atfp-term-select {
padding: 0px 0px 0px 8px !important
}
.atfp-form-group textarea {
resize: vertical;
min-height: 80px;
}
.atfp-form-group label {
color: #fff;
margin-bottom: 4px;
display: block;
}
.atfp-error-message {
color: #ff6b6b;
margin-bottom: 16px;
font-size: 14px;
padding: 8px;
background: rgb(255 255 255 / 51%);
border-radius: 4px;
}
.atfp-success-message {
color: #000000;
margin-bottom: 16px;
font-size: 14px;
padding: 8px;
background: rgb(255 255 255 / 44%);
border-radius: 4px;
text-align: center;
font-weight: 500;
}
.atfp-form-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 20px;
border-top: 1px solid #444;
padding-top: 16px;
}
.atfp-btn-primary,
.atfp-btn-secondary {
padding: 8px 16px;
border-radius: 4px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
border: 1px solid transparent;
}
.atfp-btn-primary {
background: #5cb85c;
color: #fff;
border-color: #4cae4c;
}
.atfp-btn-primary:hover {
background: #4cae4c;
}
.atfp-btn-primary:disabled {
background: #3a723a;
cursor: not-allowed;
color: #aaa;
}
.atfp-btn-secondary {
background: #333;
color: #fff;
border-color: #444;
}
.atfp-btn-secondary:hover {
background: #444;
}