/* Google Translate — hide default widget & top bar */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-te-gadget,
.skiptranslate iframe {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0 !important;
  position: static !important;
}

#google_translate_element {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom flag language switcher */
.header__top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}

.lang-switcher {
  position: relative;
  flex-shrink: 0;
  z-index: 120;
}

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--header-br, rgba(255, 255, 255, 0.28));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-switcher__toggle:hover,
.lang-switcher.is-open .lang-switcher__toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.header-2 .lang-switcher__toggle {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-dark, #151515);
}

.header-2 .lang-switcher__toggle:hover,
.header-2 .lang-switcher.is-open .lang-switcher__toggle {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.22);
}

.lang-switcher__current {
  letter-spacing: 0.04em;
}

.lang-switcher__chev {
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-switcher__chev {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #151515;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-switcher__option:hover,
.lang-switcher__option.is-active {
  background: rgba(0, 0, 0, 0.05);
}

.lang-switcher__option.is-active {
  font-weight: 600;
}

/* Mobile drawer copy */
.mobile-nav__lang {
  padding: 0 0 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav__lang .lang-switcher {
  width: 100%;
}

.mobile-nav__lang .lang-switcher__toggle {
  width: 100%;
  justify-content: space-between;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mobile-nav__lang .lang-switcher__menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  display: none;
  margin-top: 8px;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.mobile-nav__lang .lang-switcher.is-open .lang-switcher__menu {
  display: block;
}

.mobile-nav__lang .lang-switcher__option {
  color: #fff;
}

.mobile-nav__lang .lang-switcher__option:hover,
.mobile-nav__lang .lang-switcher__option.is-active {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .header__top .lang-switcher:not(.lang-switcher--mobile) {
    display: none;
  }
}

@media (min-width: 1101px) {
  .header__row .lang-switcher--mobile {
    display: none;
  }
}

@media (max-width: 1100px) {
  .header__row .lang-switcher--mobile {
    display: block;
    margin-right: 4px;
  }

  .header__row .lang-switcher--mobile .lang-switcher__toggle {
    padding: 6px 10px;
    font-size: 12px;
  }
}
