/* Blusense language selector
   Desktop: last item on the right side of the navigation bar.
   Mobile: remains compact beside the hamburger button. */
.language-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: 18px;
  z-index: 1002;
}

/* Globe icon is decorative; the select keeps its own accessible aria-label. */
.language-selector::before {
  content: "🌐";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.language-select {
  box-sizing: border-box;
  min-width: 104px;
  height: 42px;
  padding: 0 34px 0 42px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  cursor: pointer;
  outline: none;
  appearance: auto;
  -webkit-appearance: menulist;
  flex: 0 0 auto;
}

.language-select:hover,
.language-select:focus-visible {
  border-color: rgba(255, 255, 255, .72);
  background-color: rgba(255, 255, 255, .14);
}

.language-select option {
  color: #071b30;
  background: #fff;
}

/* Force the selector to be the last visible element on desktop even if the
   original header stylesheet assigns flex order to the navigation items. */
@media (min-width: 981px) {
  .nav-shell .brand { order: 1; }
  .nav-shell .main-nav { order: 2; }
  .nav-shell .nav-cta { order: 3; }
  .nav-shell .language-selector { order: 4; }
  .nav-shell .menu-toggle { order: 5; }
}

/* Keep Google's automatic interface hidden; the site uses its own selector. */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-gadget,
.goog-logo-link,
.goog-te-spinner-pos {
  display: none !important;
}

body { top: 0 !important; }
.skiptranslate iframe { visibility: hidden !important; }

@media (max-width: 980px) {
  .nav-shell .brand { order: 1; }
  .nav-shell .language-selector {
    order: 2;
    margin-left: auto;
    margin-right: 10px;
  }
  .nav-shell .menu-toggle { order: 3; }
  .nav-shell .main-nav { order: 4; }

  .language-select {
    min-width: 88px;
    height: 38px;
    padding-left: 38px;
    padding-right: 28px;
  }

  .language-selector::before {
    left: 12px;
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .language-selector { margin-right: 7px; }
  .language-select {
    width: 78px;
    min-width: 78px;
    height: 36px;
    padding: 0 22px 0 33px;
    font-size: 12px;
  }
  .language-selector::before {
    left: 10px;
    font-size: 14px;
  }
}
