body .lsl-google-translate,
body .skiptranslate iframe,
body .goog-te-banner-frame,
body .goog-te-gadget {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.translated-ltr,
html.translated-rtl,
body {
  top: 0 !important;
}

body .inside-header {
  position: relative !important;
  overflow: visible !important;
}

body .lsl-language-switcher {
  position: relative;
  z-index: 10050;
  flex: 0 0 auto;
  margin-left: 14px;
  font-family: inherit;
}

body .lsl-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(17, 24, 39, .18);
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
  cursor: pointer;
}

body .lsl-lang-toggle:hover,
body .lsl-language-switcher.is-open .lsl-lang-toggle {
  border-color: #f3a21a;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .18);
}

body .lsl-lang-code {
  display: none;
}

body .lsl-lang-arrow {
  font-size: 12px;
  transform: translateY(-1px);
}

body .lsl-lang-flag,
body .lsl-lang-menu button span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 16px;
  overflow: hidden;
  border-radius: 1px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .16);
  color: transparent;
  font-size: 0;
  line-height: 1;
}

body .lsl-flag-us,
body .lsl-lang-menu button[data-flag="us"] span:first-child {
  background-image: url("https://flagcdn.com/w40/us.png");
}

body .lsl-flag-cn,
body .lsl-lang-menu button[data-flag="cn"] span:first-child {
  background-image: url("https://flagcdn.com/w40/cn.png");
}

body .lsl-flag-de,
body .lsl-lang-menu button[data-flag="de"] span:first-child {
  background-image: url("https://flagcdn.com/w40/de.png");
}

body .lsl-flag-es,
body .lsl-lang-menu button[data-flag="es"] span:first-child {
  background-image: url("https://flagcdn.com/w40/es.png");
}

body .lsl-flag-fr,
body .lsl-lang-menu button[data-flag="fr"] span:first-child {
  background-image: url("https://flagcdn.com/w40/fr.png");
}

body .lsl-flag-it,
body .lsl-lang-menu button[data-flag="it"] span:first-child {
  background-image: url("https://flagcdn.com/w40/it.png");
}

body .lsl-flag-jp,
body .lsl-lang-menu button[data-flag="jp"] span:first-child {
  background-image: url("https://flagcdn.com/w40/jp.png");
}

body .lsl-flag-kr,
body .lsl-lang-menu button[data-flag="kr"] span:first-child {
  background-image: url("https://flagcdn.com/w40/kr.png");
}

body .lsl-flag-pl,
body .lsl-lang-menu button[data-flag="pl"] span:first-child {
  background-image: url("https://flagcdn.com/w40/pl.png");
}

body .lsl-flag-pt,
body .lsl-lang-menu button[data-flag="pt"] span:first-child {
  background-image: url("https://flagcdn.com/w40/pt.png");
}

body .lsl-flag-ru,
body .lsl-lang-menu button[data-flag="ru"] span:first-child {
  background-image: url("https://flagcdn.com/w40/ru.png");
}

body .lsl-flag-tr,
body .lsl-lang-menu button[data-flag="tr"] span:first-child {
  background-image: url("https://flagcdn.com/w40/tr.png");
}

body .lsl-flag-nl,
body .lsl-lang-menu button[data-flag="nl"] span:first-child {
  background-image: url("https://flagcdn.com/w40/nl.png");
}

body .lsl-flag-vn,
body .lsl-lang-menu button[data-flag="vn"] span:first-child {
  background-image: url("https://flagcdn.com/w40/vn.png");
}

body .lsl-flag-th,
body .lsl-lang-menu button[data-flag="th"] span:first-child {
  background-image: url("https://flagcdn.com/w40/th.png");
}

body .lsl-lang-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: none;
  width: 230px;
  max-height: min(410px, 72vh);
  padding: 7px 0;
  overflow-y: auto;
  border: 1px solid rgba(17, 24, 39, .18);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
}

body .lsl-language-switcher.is-open .lsl-lang-menu {
  display: block;
}

body .lsl-lang-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  padding: 9px 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

body .lsl-lang-menu button:hover,
body .lsl-lang-menu button.is-active {
  background: #fff3dd;
  color: #111827;
}

@media (min-width: 769px) {
  body #masthead .inside-header,
  body .site-header .inside-header {
    gap: 10px !important;
  }
}

@media (max-width: 768px) {
  body #masthead .inside-header,
  body .site-header .inside-header {
    padding-right: 112px !important;
  }

  body .lsl-language-switcher {
    position: fixed !important;
    top: 11px !important;
    right: 58px !important;
    margin-left: 0;
  }

  body .lsl-lang-toggle {
    min-width: 48px;
    min-height: 38px;
    padding: 0 8px;
    gap: 4px;
  }

  body .lsl-lang-name {
    display: none;
  }

  body .lsl-lang-code {
    display: inline;
    font-size: 12px;
    font-weight: 850;
  }

  body .lsl-lang-flag {
    font-size: 15px;
  }

  body .lsl-lang-menu {
    right: -48px;
    top: 48px;
    width: min(280px, calc(100vw - 20px));
    max-height: min(430px, calc(100vh - 84px));
  }
}

@media (max-width: 420px) {
  body .site-branding .main-title,
  body .site-description {
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}
