.language {
  min-height: 40px;
}

.language-switcher {
  position: relative;
  z-index: 80;
  flex: 0 0 auto;
  font-family: inherit;
}

.language-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(216, 233, 242, .92);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  padding: 8px 12px;
  color: #0e3f5c;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(8, 36, 58, .06);
}

.language-button:hover,
.language-switcher.is-open .language-button {
  border-color: rgba(45, 143, 205, .32);
  background: #fff;
  box-shadow: 0 16px 38px rgba(8, 36, 58, .1);
}

.language-flag {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background-color: rgba(45, 143, 205, .1);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(8, 36, 58, .08);
  font-size: 0;
  line-height: 1;
  overflow: hidden;
}

.flag-gb { background-image: url("https://flagcdn.com/w40/gb.png"); }
.flag-es { background-image: url("https://flagcdn.com/w40/es.png"); }
.flag-fr { background-image: url("https://flagcdn.com/w40/fr.png"); }
.flag-de { background-image: url("https://flagcdn.com/w40/de.png"); }
.flag-it { background-image: url("https://flagcdn.com/w40/it.png"); }
.flag-pt { background-image: url("https://flagcdn.com/w40/pt.png"); }
.flag-ae { background-image: url("https://flagcdn.com/w40/ae.png"); }
.flag-tr { background-image: url("https://flagcdn.com/w40/tr.png"); }
.flag-in { background-image: url("https://flagcdn.com/w40/in.png"); }
.flag-pk { background-image: url("https://flagcdn.com/w40/pk.png"); }
.flag-cn { background-image: url("https://flagcdn.com/w40/cn.png"); }

.language-code {
  min-width: 20px;
  text-align: left;
  text-transform: uppercase;
}

.language-name {
  color: #24465e;
  font-weight: 850;
}

.language-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .68;
}

.language-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  max-height: min(430px, calc(100vh - 120px));
  display: none;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(216, 233, 242, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 80px rgba(8, 36, 58, .18);
  overflow: auto;
  backdrop-filter: blur(18px);
}

.language-switcher.is-open .language-panel {
  display: grid;
}

.language-option {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 8px 10px;
  color: #0e3f5c;
  text-align: left;
  box-shadow: none;
}

.language-option:hover,
.language-option.is-active {
  background: #ecf7fd;
}

.language-option strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #071928;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-option span:last-child {
  color: #6a8294;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.language-translate-root,
.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

body {
  top: 0 !important;
}

body > .skiptranslate {
  display: none !important;
}

html.translated-ltr .hero-title,
html.translated-rtl .hero-title {
  font-size: clamp(44px, 3.7vw, 58px);
  line-height: 1.14;
}

html.translated-ltr .hero-title .gradient-text,
html.translated-rtl .hero-title .gradient-text {
  white-space: normal !important;
}

@media (max-width: 760px) {
  .language-button {
    min-height: 38px;
    padding: 7px 10px;
  }

  .language-name {
    display: none;
  }

  .language-panel {
    right: -72px;
    width: min(286px, calc(100vw - 28px));
  }
}
