/* Language switcher + hide Google Translate chrome */

.lang-switcher {
  position: relative;
  z-index: 40;
}

.hero__header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(6px);
}

.lang-switcher-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}

.lang-switcher-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lang-switcher-caret {
  width: 10px;
  height: 7px;
  opacity: 0.85;
}

.lang-switcher-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 88px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.lang-switcher-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #222;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: left;
}

.lang-switcher-option:last-child {
  border-bottom: 0;
}

.lang-switcher-option:hover,
.lang-switcher-option.active {
  background: #f5f5f5;
}

.lang-switcher-option img {
  width: 18px;
  height: 12px;
  object-fit: cover;
}

#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-gadget,
.goog-logo-link,
.skiptranslate iframe.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-te-spinner-pos,
.goog-te-menu-frame {
  display: none !important;
}

@media (max-width: 720px) {
  .hero__header-right {
    align-items: flex-start;
  }
}
