.itg-lang-switcher {
  position: relative;
  display: inline-block;
}

.itg-lang-switcher__trigger {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0 14px 0 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.itg-lang-switcher__trigger:hover,
.itg-lang-switcher__trigger:focus-visible {
  font-weight: inherit;
}

.itg-lang-switcher__trigger:focus,
.itg-lang-switcher__trigger:active {
  border: none;
  outline: none;
  box-shadow: none;
}

.itg-lang-switcher__trigger::after {
  content: "\25BE";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7em;
  font-weight: inherit;
  color: inherit;
  pointer-events: none;
}

.itg-lang-switcher__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 68px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d8dee4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 9999;
}

.itg-lang-switcher__menu[hidden] {
  display: none;
}

.itg-lang-switcher__option {
  display: block;
  width: 100%;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.itg-lang-switcher__option:hover,
.itg-lang-switcher__option:focus-visible {
  background: #f2f6f9;
  font-weight: 400;
}

.itg-lang-switcher__option.is-active {
  background: #f2f6f9;
  font-weight: 700;
}

.itg-lang-switcher--footer .itg-lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 140px;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 10px 34px 10px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.itg-lang-switcher--footer .itg-lang-switcher__trigger:hover,
.itg-lang-switcher--footer .itg-lang-switcher__trigger:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
}

.itg-lang-switcher--footer .itg-lang-switcher__trigger::after {
  right: 14px;
  color: #fff;
  font-size: 10px;
}

.itg-lang-switcher--footer .itg-lang-switcher__menu {
  top: auto;
  bottom: calc(100% + 8px);
  right: auto;
  left: 0;
  min-width: 170px;
  background: #fff;
  color: #1f4f70;
  border-color: rgba(31, 79, 112, 0.2);
}

.itg-lang-switcher--footer .itg-lang-switcher__option {
  color: #1f4f70;
  background: transparent;
}

.itg-lang-switcher--footer .itg-lang-switcher__option:hover,
.itg-lang-switcher--footer .itg-lang-switcher__option:focus-visible {
  background: #f2f6f9;
  color: #1f4f70;
}

.itg-lang-switcher--footer .itg-lang-switcher__option.is-active {
  background: #eef4f8;
  color: #1f4f70;
}

.itg-mobile-lang-wrap {
  display: none;
}

@media (max-width: 600px) {
  .itg-lang-switcher--desktop {
    display: none !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .itg-mobile-lang-wrap {
    display: flex;
    justify-content: flex-start;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #8080801d;
  }

  .wp-block-navigation__responsive-container.is-menu-open .itg-mobile-lang-wrap .itg-lang-switcher__trigger {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
}
