.slj-language-switcher-source {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 10px;
}

.slj-language-switcher-source[hidden] {
  display: none !important;
}

.slj-language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 3px;
  overflow: hidden;
  color: #036eb8;
  background: #fff;
  border: 1px solid #036eb8;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(3, 110, 184, 0.12);
  line-height: 1;
  white-space: nowrap;
}

.slj-language-switcher__button,
button.slj-language-switcher__button {
  min-width: 32px;
  min-height: 24px;
  margin: 0;
  padding: 5px 7px;
  color: #036eb8;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.slj-language-switcher__button:hover,
.slj-language-switcher__button:focus-visible,
button.slj-language-switcher__button:hover,
button.slj-language-switcher__button:focus-visible {
  color: #036eb8;
  background: #eaf5fc;
}

.slj-language-switcher__button.is-active,
button.slj-language-switcher__button.is-active {
  color: #fff;
  background: #036eb8;
  cursor: default;
}

.slj-language-switcher__separator {
  color: #8aa8bd;
  font-size: 10px;
  font-weight: 700;
  user-select: none;
}

.slj-language-switcher-source--mobile {
  margin-left: 6px;
}

/* Keep the complete Astra desktop header on a single, readable row. */
@media (min-width: 922px) {
  #ast-desktop-header .ast-container {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  #ast-desktop-header .site-header-primary-section-left {
    flex: 0 0 auto;
  }

  #ast-desktop-header .site-header-primary-section-right {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }

  #ast-desktop-header .ast-builder-menu-1 {
    flex: 1 1 auto;
    min-width: 0;
  }

  #ast-desktop-header .ast-main-header-bar-alignment,
  #ast-desktop-header .main-header-bar-navigation,
  #ast-desktop-header .site-navigation,
  #ast-desktop-header .main-navigation {
    width: 100%;
    min-width: 0;
  }

  #ast-desktop-header .main-header-menu {
    flex-wrap: nowrap !important;
    justify-content: flex-end;
  }

  #ast-desktop-header .main-header-menu > .menu-item {
    flex: 0 0 auto;
  }

  #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    padding-right: clamp(7px, 0.65vw, 13px) !important;
    padding-left: clamp(7px, 0.65vw, 13px) !important;
    font-size: clamp(11px, 0.72vw, 14px);
    white-space: nowrap;
  }

  #ast-desktop-header .ast-header-button-1,
  #ast-desktop-header .slj-language-switcher-source--desktop {
    flex: 0 0 auto;
  }

  #ast-desktop-header .ast-header-button-1 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    margin-left: 4px;
    white-space: nowrap;
  }

  #ast-desktop-header .ast-header-button-1 .ast-custom-button {
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  #ast-desktop-header .slj-language-switcher-source--desktop {
    margin-left: 8px;
  }
}

@media (min-width: 922px) and (max-width: 1500px) {
  #ast-desktop-header .ast-container {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    padding-right: 5px !important;
    padding-left: 5px !important;
    font-size: 11px;
  }

  #ast-desktop-header .ast-header-button-1 .ast-custom-button {
    padding: 10px 12px;
    font-size: 12px;
  }

  #ast-desktop-header .slj-language-switcher-source--desktop {
    margin-left: 5px;
  }

  #ast-desktop-header .slj-language-switcher-source--desktop .slj-language-switcher__button {
    min-width: 27px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 10px;
  }
}

.slj-language-switcher-source--mobile .slj-language-switcher {
  min-height: 29px;
}

.slj-language-switcher-source--mobile .slj-language-switcher__button {
  min-width: 28px;
  min-height: 21px;
  padding: 4px 5px;
  font-size: 10px;
}

.slj-language-switcher-source--fallback {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99998;
}

.admin-bar .slj-language-switcher-source--fallback {
  top: 48px;
}

.slj-google-translate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos,
iframe.goog-te-banner-frame {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body {
  top: 0 !important;
}

.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 544px) {
  .slj-language-switcher-source--mobile {
    margin-left: 4px;
  }

  .slj-language-switcher-source--mobile .slj-language-switcher__button {
    min-width: 25px;
    padding-right: 4px;
    padding-left: 4px;
  }
}

@media (max-width: 390px) {
  #ast-mobile-header .ast-header-button-1 + .slj-language-switcher-source--mobile,
  #ast-mobile-header .slj-language-switcher-source--mobile {
    margin-left: 2px;
  }

  .slj-language-switcher-source--mobile .slj-language-switcher {
    padding: 2px;
  }

  .slj-language-switcher-source--mobile .slj-language-switcher__button {
    min-width: 23px;
    font-size: 9px;
  }
}
