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

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: 3px 0px 4px 4px;
}
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{
  height: unset !important;
  padding: 8px 36px 8px 25px !important;
}
div.ui-dialog[aria-describedby="atlt-dialog"] span.ui-dialog-title{
  /* font-size: 20px; */
  font-weight: 700 !important;
}

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{
  right: 15px;
  top: 14px !important;
  border-radius: 0 !important;
  height: 30px !important;
  width: 20px !important;
}
div.ui-dialog[aria-describedby="atlt-dialog"] 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: 1004px;
  top: 12px;
  display: flex;
  flex-direction: row-reverse;
}

body.rtl .ui-dialog[aria-describedby="atlt-dialog"].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"] {
  padding: 0 !important;
  font-family: inherit !important;
}

div.ui-dialog[aria-describedby="atlt-dialog"] .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{
  font-family: inherit !important;
  font-size: 1.0em !important;
}

 div.ui-dialog[aria-describedby="atlt-dialog"] .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{
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2;
    height: 28px;
    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 {
  background: none !important;
  border: none !important;
  border-top: 1px solid #dcdcde !important;
  margin-top: 0px !important;
}

div.ui-dialog[aria-describedby="atlt-dialog"] button{
  font-family: inherit !important;
  font-size: 1.0em !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;
}

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

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

/* 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;
}

/* The 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 {
  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;
}

#translate_element {
  margin-bottom: 25px;
}

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

/* 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 .modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
  position: absolute;
  width: calc(100% - 32px);
  bottom: 0;
  height: 66px;
  max-height: 66px;
}

/* 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;
}

.ui-dialog.loco-modal.addtranslations {
  border: 6px solid #5cb85c;
}

@media screen and (max-width: 769px) {
  .atlt_custom_model .atlt_string_container {
    height: calc(100vh - 570px);
  }

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

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

  .modal-header .atlt_stats{
    margin: 5px 160px 5px 0 !important;
  }

  .yandex-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;
  }
  .modal-header .atlt_stats{
    margin: -12px 160px 5px 0;
  }
}

/* For RTL dailog */
div.ui-dialog[aria-describedby="atlt-dialog"].atlt-rtl{
  /* left: 50% !important;
  top: 50%!important; */
  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;
  } 

  /* 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;
}

.yandex-widget-container .translator-widget {
  display: flex;
  justify-content: center;
  align-items: center;
}

.yandex-widget-container .translator-widget #ytWidget {
  margin: 20px 23px 10px 0px;
}

/* 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; }
