/* Header Button */
#cool-auto-translate-btn:before {
  padding-right: 5px !important;
}

#cool-auto-translate-btn:after {
  content: "LocoAI";
  display: block;
  font-size: 10px;
  font-weight: bold;
  font-family: monospace;
  position: absolute;
  bottom: -6px;
  left: -1px;
  background: #129412;
  width: calc(100% + 2px);
  height: 12px;
  line-height: 12px;
  color: #fff;
  text-align: center;
  border-radius: 0 0 4px 4px;
}

#atlt-dialog .atlt-heading {
  margin-bottom: 10px;
  display: inline-block;
  color: #000000;
  font-size: 15px;
  line-height: 1.4em;
}

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

#atlt-dialog .atlt-translater-icon img{
  width: 18px;
  height: 18px;
}

.inputGroup img {
  margin-top: 5px;
  height: 21px !important;
  width: auto !important;
}

.pro-features-img{
  /* width: 50%; */
  margin-bottom: 10px;
}
#atlt-dialog .atlt-settings .inputGroup a:focus,
#atlt-dialog .atlt-translater-icon a:focus{
  outline: none;
  box-shadow: none;
}
span.proonly-button {
  background: #555;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  font-family: monospace;
  padding: 3px;
  border-radius: 3px;
  display: inline-block;
  margin: 2px 10px;
}

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);
}

div.ui-dialog[aria-describedby="atlt-dialog"]{
  width: fit-content !important;
  left: 0 !important;
  right: 0 !important;
  /* top: 0 !important; */
  margin: auto;
  transform: translate(0%, 50%) !important;
}
div.ui-dialog[aria-describedby="atlt-dialog"] .ui-dialog-titlebar,
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog-titlebar{
  height: unset !important;
  padding: 8px 36px 8px 25px !important;
}
div.ui-dialog[aria-describedby="atlt-dialog"] span.ui-dialog-title,
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] span.ui-dialog-title{
  font-size: 18px;
  font-weight: 600 !important;
  color: black;
}
div.ui-dialog.atlt-rtl[aria-describedby="atlt-dialog"] .ui-dialog-title{
  width: 100% !important;
}
div.ui-dialog[aria-describedby="atlt-dialog"] .ui-button.ui-dialog-titlebar-close,
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-button.ui-dialog-titlebar-close{
  right: 15px;
  top: 7px !important;
  border-radius: 0 !important;
  height: 30px !important;
  width: 20px !important;
}

body.rtl div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-button.ui-dialog-titlebar-close{
  right: auto;
  left: 24px;
  width: 36px !important;
  top: 27px !important;
  display: flex;
  flex-direction: column-reverse;
}

div.ui-dialog[aria-describedby="atlt-dialog"] span.ui-button-icon.ui-icon.ui-icon-closethick,
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] span.ui-button-icon.ui-icon.ui-icon-closethick {
  display: none;
}

div.ui-dialog.atlt-rtl[aria-describedby="atlt-dialog"] .ui-button.ui-dialog-titlebar-close{
  right: 464px;
  top: 12px;
  display: flex;
  flex-direction: row-reverse;
}

div.ui-dialog.atlt-rtl[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog-titlebar-close{
  top: 12px;
  display: flex;
  flex-direction: row-reverse;
}

body.rtl .ui-dialog[aria-describedby="atlt-dialog"].atlt-rtl,
body.rtl .ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"].atlt-rtl {  
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

div.ui-dialog[aria-describedby="atlt-dialog"],
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] {
  padding: 0 !important;
  font-family: inherit !important;
  border: none !important;
}

body.rtl div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"]{
  left: 50% !important;
  top: 50%;
  right: auto;
  transform: translateX(-50%);
}

div.ui-dialog[aria-describedby="atlt-dialog"] .ui-widget-header,
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-widget-header {
  border: none !important; 
  background: none !important;
  border-bottom: 1px solid #dcdcde !important;
}

.ui-widget-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  min-height: 360px !important;
  background: #000 !important;
  opacity: .7 !important;
  z-index: 100101 !important;
}

div.ui-dialog[aria-describedby="atlt-dialog"] button,
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] button{
  font-family: inherit !important;
  font-size: 0.8em !important;
}

 div.ui-dialog[aria-describedby="atlt-dialog"] .ui-dialog .ui-dialog-buttonpane,
 div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog .ui-dialog-buttonpane{
  border-width: 0px !important;
  background:none !important; 
  margin-top: 0px !important; 
  padding: 0px !important; 
}


div.ui-dialog[aria-describedby="atlt-dialog"] .ui-dialog-buttonset .ui-button,
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog-buttonset .ui-button{
    display: inline-block;
    text-decoration: none;
    font-size: inherit !important;
    line-height: 2;
    height: 28px;
    margin: 4px 0px;
    padding: 0 10px 1px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    color: #50575e;
    border-color: #c3c4c7;
    background: #f6f7f7;
    box-shadow: 0 1px 0 #c3c4c7;
    vertical-align: top;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .ui-dialog-buttonpane,
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog-buttonpane {
  background: none !important;
  border: none !important;
  border-top: 1px solid #dcdcde !important;
  margin-top: 0px !important;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .ui-dialog-buttonpane {
  border-radius: 0 !important;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .ui-dialog-buttonpane button {
  font-size: inherit !important;
}

div.ui-dialog[aria-describedby="atlt-dialog"] button,
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] button{
  font-family: inherit !important;
  font-size: 0.8em !important;
}

div.ui-dialog[aria-describedby="loco-apis-batch"] .ui-widget-header {
  border: none !important; 
  background: none !important;
  border-bottom: 1px solid #dcdcde !important;
  border-radius: 0 !important;
  font-weight: 500 !important;
  padding: 6px 10px;
  height: auto;
  line-height: normal;
}

div.ui-dialog[aria-describedby="loco-apis-batch"] span.ui-button-icon.ui-icon.ui-icon-closethick {
  display: none;
}

div.ui-dialog[aria-describedby="loco-apis-batch"]{
  font-family: inherit !important;
  border-radius: 0 !important;
}

div.ui-dialog[aria-describedby="loco-apis-batch"] .ui-button.ui-dialog-titlebar-close{
  right: 15px;
  top: 12px !important;
  border-radius: 0 !important;
  height: 30px !important;
  width: 20px !important;
  margin: -10px 0 0 0;
}

body.rtl .ui-dialog[aria-describedby="loco-apis-batch"] .ui-widget-header {  
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}
body.rtl div.ui-dialog[aria-describedby="loco-apis-batch"] .ui-button.ui-dialog-titlebar-close{
  left: 15px; /* Positions the button 15px from the left */
  right: auto; /* Removes the right positioning */
  margin: -10px 0 0 0;
  display: flex;
  flex-direction: row-reverse;
}

#atlt-dialog{
  /* width: min-content !important; */
  /* padding: 22px; */
  border-radius: 8px;
}

/* Modal Styles */
.atlt_custom_model {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.75);
}

.atlt_custom_model .modal-content {
  position: relative;
  background-color: #fefefe;
  width: 80%;
  height: calc(100% - 40px);
  margin: 32px auto 0;
  overflow-x: hidden;
  overflow-y: auto;
  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);
  animation-name: animatetop;
  animation-duration: 0.4s;
}

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

  to {
    top: 0;
    opacity: 1;
  }
}

/* Header Styles */
.atlt_custom_model .modal-header {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
  height: 86px;
  max-height: 86px;
  overflow: hidden;
  position: relative;
}

.atlt_custom_model .modal-header h2 {
  display: inline-block;
  font-size: 1.2rem;
  color: #fff;
  padding: 0;
  line-height: 22px;
}

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

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

/* Action Buttons */
.atlt_custom_model .atlt_actions {
  margin: 8px;
  position: absolute;
  top: 10px;
  right: 40px;
}

.yandex-widget-container .atlt_actions button:not([disabled]):before,
.google-widget-container .atlt_actions button:not([disabled]):before,
.deepl-widget-container .atlt_actions 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;
}

/* Keyframes for Action Button */
@keyframes moveit {
  from {
    left: -22px;
  }

  to {
    left: -10px;
  }
}

/* Statistics Styles */
.atlt_custom_model .atlt_stats {
  padding: 0;
  margin: 5px 160px 5px 0;
  width: calc(100% - 160px);
}

.atlt_custom_model .modal-footer .atlt_stats {
  margin: 22px 160px 5px 0;
}

.atlt_custom_model .atlt_stats a {
  color: #fff936;
}

/* Modal Body Styles */
.atlt_custom_model .modal-body {
  padding: 2px 16px;
  position: relative;
}

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

.atlt_custom_model h3 {
  width: 100%;
  display: inline-block;
  font-size: 22px;
  padding: 0;
  margin: 20px 0 10px;
  color: #5cb85c;
}

.ChromeAiTranslator .atlt_chrome_ai{
  display: inline-flex;
}

/* Google Translate Element Styles */
#google_translate_element {
  margin: 20px 20px 10px 0px;
}

/* Yandex Translate Element Styles */
#ytWidget {
  margin: 20px 20px 10px 0px;
}

/* geminiAI & OpenAI Translate Element Styles */
#openAI_translate_element,#geminiAI_translate_element,#chrome_ai_translator_element {
  margin-top: 12px;
  margin-right: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* #openAI_translate_element,#geminiAI_translate_element {
  margin: 5px;
} */

.translator-widget:not(.chatGPT):not(.deepl) {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.openAI h3 {
  font-size: 22px;
  padding: 0;
  margin: 1.5rem 0;
  color: #5cb85c;
}

.geminiAI h3 {
  font-size: 22px;
  padding: 0;
  margin: 1.5rem 0;
  color: #5cb85c;
}


/* String Container Styles */
.atlt_custom_model .atlt_string_container {
  overflow-y: scroll;
  overflow-x: hidden;
  height: calc(100vh - 365px);
  width: 100%;
  position: relative;
}

/*table style for chatGPT popup*/
.chatGPT_table {
  overflow-y: scroll;
  overflow-x: hidden;
  height: calc(100vh - 300px);
  width: 100%;
  position: relative;
  /* max-height: 200px; */
  margin-top: 20px;
}

/* Table Styles */
.atlt_custom_model table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  padding: 0;
  margin: 0;
}

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

.atlt_custom_model table td,
.atlt_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;
}

/* Translate Progress Styles */
.atlt_custom_model .atlt_translate_progress {
  position: absolute;
  display: none;
  top: 0;
  left: 10px;
  color: #fff;
  background: rgba(0, 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: bold;
  text-align: center;
  padding-top: 30px;
}

.atlt_custom_model .atlt_translate_warning-massage {
  position: absolute;
  display:none;
  top: 0;
  left: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: calc(100% - 22px);
  border-radius: 3px;
  height: 100%;
  z-index: 9;
  box-sizing: border-box;
  font-size: 16px;
}

.atlt_custom_model .atlt_translate_warning-massage .warning-massage-wrapper {
  z-index: 10;
  width: 60%;
  max-height: 80vh;
  padding: 15px;
  background-color: white;
  position: absolute;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-y: auto;
}

.atlt_custom_model .atlt_translate_warning-massage .warning-massage-wrapper h2 {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.4;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.atlt_custom_model .atlt_translate_warning-massage .warning-massage-wrapper .close-button {
  position: absolute;
  top: -7px;
  right: 0px;
  font-weight: 700;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: black;
  z-index: 11;
}

.atlt_custom_model .atlt_translate_warning-massage .warning-massage-wrapper .close-button:hover {
  color: red;
}

/* progress-bar */
.progress-container {
  width: 60%;
  margin: 20px auto;
  background-color: #f3f3f3;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  width: 0%; 
  height: 20px;
  background-color: #4caf50;
  text-align: center;
  color: white;
  transition: width 1s;
  position: relative;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
  animation: progress-stripes 1s linear infinite; /* Add animation */
}

@keyframes progress-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

.progress-bar span {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  color: white; 
  font-weight: 600;
}

.progress-wrapper {
  text-align: center;
  margin: 20px auto;
  display: none;
}

.progress-percentage {
  margin-top: 10px;
}



/* Deepl Table Styles */
.atlt_custom_model table.deepl_steps td:first-child {
  width: auto;
}

.atlt_custom_model table.deepl_steps td {
  text-align: center;
  white-space: unset;
}

/* ChatGPT Table Styles */
.atlt_custom_model table.chatGPT_steps td:first-child {
  width: auto;
}

.atlt_custom_model table.chatGPT_steps td {
  text-align: center;
  white-space: unset;
}

/* Additional Styles */
.deepl-widget-body .atlt_string_container {
  max-height: 200px;
  margin-top: 20px;
  opacity: 0.4;
}

.atlt_custom_model .modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
  position: absolute;
  width: calc(100% - 32px);
  bottom: 0;
  height: 66px;
  z-index: 19;
}

body>div.skiptranslate>iframe#\:1\.container{
  display: none;
}

/* Hide Google Translate Banner */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

/* Hide the First Option in Google Translate Combo */
.goog-te-combo option:first-child {
  display: none;
}

#yt-widget .yt-listbox__text {
  line-height: 14px !important;
}

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

/* Loco Hint Styles */
#loco-hint .loco-api.loco-api-loco_auto {
  display: none;
}

/* Merge Translations Loading Overlay */
html.merge-translations:before {
  content: "Merging Translations.....";
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999990;
  color: #fff;
  font-size: 28px;
  text-align: center;
  padding-top: 50px;
}

/* Loco Modal Styles */
.ui-dialog.loco-modal.addtranslations {
  border: 6px solid #5cb85c;
}

/* style of buttons in chatGPT model-footer */
.btn-disabled {
  pointer-events: none;
  color: #a7aaad !important;
  background: #f6f7f7 !important;
  border-color: #dcdcde !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: default;
}

.chatGPT-widget-container .modal-footer .atlt_actions .button-primary:disabled {
  display: none;
}

/*Style of borders in ChatGPT steps*/
.chatGPT_steps-border {
  border: 3px solid #5cb85c !important;
}

/*Style of progressbar in ChatGPT Popup*/
.chatGPT_progress {
  width: 100%;
  height: 15px;
  background-color: #f1f1f1;
  border-radius: 20px;
}

#chatGPT_progressbar {
  height: 100%;
  background-color: #5cb85c;
  border-radius: 20px;
  width: 0;
  transition: width 0.5s ease;
}

.modal-footer.chatGPT-widget-footer .atlt_actions:not(.chatGPT_disable)::before,
.modal-footer.chatGPT-widget-footer .atlt_actions:not(.chatGPT_disable)::after {
  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;
}

.chatGptError {
  width: calc(100% - 381px);
  background: #fff;
  border: 1px solid #c3c4c7;
  border-left-width: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  border-left-color: #d63638;
  padding: 1px 12px;
  color: #000;
  margin: 22px 160px 5px 0;
}

.atlt_custom_model .modal-scrollbar {
  overflow-y: scroll;
  height: calc(100% - 160px)
}

.clear-button {
  position: absolute;
  top: 5px;
  right: 19px;
}

.preview-button {
  position: absolute;
  top: 240px;
  right: 19px;
}

/* Chrome AI Translator Styles */

#ChromeAiTranslator-widget-model .atlt_string_container{
  height: calc(100vh - 360px);
}

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

.ChromeAiTranslator h3 {
  font-size: 22px;
  padding: 0;
  margin: 1.5rem 0;
  color: #5cb85c;
}

#ChromeAiTranslator_settings_btn ~ a{
  margin-top: .5rem;
  text-decoration: none;
  font-size: 1.1rem;
  display: inline-flex;
  color: black;
  font-weight: 600;
  align-items: center;
}


div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-widget-header {
  padding: 8px 36px 10px 16px;
}

div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog-content ol li {
  line-height: 1.7;
  margin-bottom: 10px;
}

div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog-content .atlt-tooltip-element {
  position: relative;
  overflow: visible;
  cursor: pointer;
}

div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog-content .atlt-tooltip {
  display: block;
  font-size: 80%;
  position: absolute;
  background: #5cb85c;
  color: #fff !important;
  padding: 0.2rem .5rem;
  border-radius: 4px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: auto;
  opacity: 0;
  width: auto;
  min-width: 80px;
  white-space: nowrap;
  z-index: 100000;
}

div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog-content .atlt-tooltip-element .atlt-tooltip.atlt-tooltip-active {
  -webkit-animation: slide-up 0.15s cubic-bezier(0.51, 0.92, 0.265, 1.55) both;
  animation: slide-up 0.15s cubic-bezier(0.51, 0.92, 0.265, 1.55) both;
}


div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog-content .atlt-tooltip-element .atlt-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 support for tooltips */
div.ui-dialog[aria-describedby="atlt-chromeai-disabled-message-content"] .ui-dialog-content .atlt-rtl .atlt-tooltip-element .atlt-tooltip {
  direction: rtl;
}

/* Tooltip animation keyframes */
@keyframes slide-up {
  0% {
      transform: translate(-50%, 0) scale(0.8);
      opacity: 0;
  }
  100% {
      transform: translate(-50%, -35px) scale(1);
      opacity: 1;
  }
}

@-webkit-keyframes slide-up {
  0% {
      transform: translate(-50%, 0) scale(0.8);
      opacity: 0;
  }
  100% {
      transform: translate(-50%, -35px) scale(1);
      opacity: 1;
  }
}

/* #ChromeAiTranslator_settings_btn ~ a img{
  width: 28px;
  margin: 0 2px;
} */

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

button.atlt-error-reload-btn:hover{
  background: #005682;
}

@media screen and (max-width: 769px) {

  .clear-button,
  .preview-button,
  .chatGPT_table_close,
  .chatGPT_save_cont,
  .chatGPT_save_close,
  .download_deepl,
  .prev_btn {
    padding: 0px 10px !important;
    line-height: 25px !important;
    min-height: 20px !important;
  }

  .atlt_custom_model .atlt_string_container {
    height: calc(100vh - 570px);
  }

  .atlt_custom_model .modal-header h2 {
    margin-bottom: 0px;
  }

  .preview-button {
    margin-top: 24px !important;
  }

  #deepl_upload_strings_btn,
  #deepl-open-file {
    font-size: 13px !important;
  }
  .chatGptError {
    width: calc(50% - 48px);
    margin: 4px 160px 6px 0px !important;
  }

  .atlt_custom_model .atlt_save_strings {
    line-height: 20px;
    min-height: 30px !important;
  }

  .yandex-widget-container .atlt_actions button:not([disabled]):before,
  .google-widget-container .atlt_actions button:not([disabled]):before,
  .deepl-widget-container .atlt_actions button:not([disabled]):before {
    line-height: 21px;
  }
}

@media screen and (max-width: 1024px) {
  .ui-dialog-titlebar {
    font-size: 15px;
    line-height: 2.5;
  }

  .copy-button {
    padding: 3px 5px !important;
    min-height: 20px !important;
    line-height: 1.5 !important;
  }

  .modal-footer.chatGPT-widget-footer .atlt_stats {
    width: calc(50% - 23px);
    margin: 5px 160px 5px 0px;
  }


  .chatGptError {
    margin: 13px 160px 6px 0px;
    /* width: calc(100% - 305px); */
  }

  .deepl-widget-body .atlt_string_container {
    max-height: 150px;
  }
}

/* For RTL dailog */
div.ui-dialog[aria-describedby="atlt-dialog"].atlt-rtl{
  transform: translate(-50%, -50%);
  right: auto;
}


.atlt_custom_model.atlt-rtl .atlt_actions{
  right: auto;
  left: 40px;
  }
  
.atlt_custom_model.atlt-rtl .modal-header .close{
  right: auto;
  left: 10px;
  } 

/* Add responsive styles */
@media screen and (max-width: 768px) {
  .atlt_custom_model .atlt_translate_warning-massage .warning-massage-wrapper {
    width: 90%;
    padding: 15px;
  }
  
  .atlt_custom_model .atlt_translate_warning-massage .warning-massage-wrapper h2 {
    font-size: 14px;
  }
}

/* Translation Provider Table Styles */

.ui-dialog {
  border-radius: 8px !important;
  box-shadow: none !important;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-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="atlt-dialog"] .atlt-provider-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

div.ui-dialog[aria-describedby="atlt-dialog"].atlt-provider-table th,
div.ui-dialog[aria-describedby="atlt-dialog"].atlt-provider-table td {
  text-align: left;
  font-size: 17px;
  vertical-align: middle;
}


div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table tbody tr td a {
  text-decoration: none;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table tbody tr td a:focus {
  box-shadow: none;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table thead th {
  background: #f7f7f7;
  font-weight: 600;
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  color: #555;
  padding-block: 1rem;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table thead th:nth-child(1) {
  padding-left: 28px;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table thead th:nth-child(2) {
  padding-left: 90px;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table thead th:nth-child(3) {
  padding-right: 25px;
  text-align: center;
}

div.ui-dialog.atlt-rtl[aria-describedby="atlt-dialog"] .atlt-provider-table thead th:nth-child(3) {
  padding-right: 0;
  text-align: center;
  padding-left: 25px;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table tbody td:nth-child(1) {
  padding-left: 25px;
}

div.ui-dialog.atlt-rtl[aria-describedby="atlt-dialog"] .atlt-provider-table tbody td:nth-child(1) {
  padding-right: 25px;
  padding-left: 0;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table tbody tr {
  border-top: 1px solid #eee;
  height: 64px;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table tbody td:nth-child(3) {
  padding-right: 25px;
  text-align: center;
}

div.ui-dialog.atlt-rtl[aria-describedby="atlt-dialog"] .atlt-provider-table tbody td:nth-child(3) {
  padding-right: 0;
  padding-left: 25px;
  text-align: center;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table tr:last-child td {
  border-bottom: none;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-icon {
  width: 45px;
  margin-right: 15px;
  vertical-align: middle;
}

div.ui-dialog.atlt-rtl[aria-describedby="atlt-dialog"] .atlt-provider-icon {
  margin-left: 15px;
  margin-right: 0;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-name {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  margin-block: .5rem;
  color: black;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-table tbody td:nth-child(2){
  padding-left: 90px;
  padding-right: 20px;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-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;
  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="atlt-dialog"] .atlt-provider-btn.translate {
  background: #3db63d;
  border-color: #33a133;
  color: #fff;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-btn.translate:hover {
  background: #37a737;
  border-color: #238b23;
  color: #fff;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-btn.error {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ee4237;
  border-color:  #dd362b;
  color: #fff;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-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="atlt-dialog"] .atlt-provider-btn.error:hover {
  background: #dd382e;
  border-color: #c72a20;
  color: #fff;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-btn.api-key {
  background: #3db63d;
  border-color: #33a133;
  color: #fff;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-btn.api-key:hover {
  background: #37a737;
  color: #fff;
  border-color: #238b23;
}


div.ui-dialog[aria-describedby="atlt-dialog"] .atlt-provider-modal .modal-footer {
  padding: 12px 16px;
  background: #f7f7f7;
  text-align: right;
  border-top: 1px solid #f0f0f0;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .d-none { display: none !important; }




