.gbt-lang-switcher {
  position: relative;
  z-index: 30;
}

.gbt-lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.gbt-lang-switcher__trigger:hover,
.gbt-lang-switcher__trigger:focus-visible,
.gbt-lang-switcher.is-open .gbt-lang-switcher__trigger {
  color: var(--surron-yellow);
  border-color: var(--surron-yellow);
  outline: none;
}

.gbt-lang-switcher__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.gbt-lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: #111;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
}

.gbt-lang-switcher__menu[hidden] {
  display: none !important;
}

.gbt-lang-switcher__option {
  display: grid;
  grid-template-columns: 24px 1fr auto 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.gbt-lang-switcher__option:hover,
.gbt-lang-switcher__option:focus-visible {
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.gbt-lang-switcher__option.is-active {
  color: var(--surron-yellow);
}

.gbt-lang-switcher__flag {
  display: block;
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 1px;
}

.gbt-lang-switcher__flag--empty {
  display: block;
  width: 20px;
  height: 14px;
  background: rgba(255, 255, 255, .12);
}

.gbt-lang-switcher__label {
  min-width: 0;
}

.gbt-lang-switcher__code {
  color: rgba(255, 255, 255, .45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.gbt-lang-switcher__option.is-active .gbt-lang-switcher__code {
  color: rgba(255, 240, 10, .72);
}

.gbt-lang-switcher__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  opacity: 0;
}

.gbt-lang-switcher__check svg {
  display: block;
  width: 14px;
  height: 14px;
}

.gbt-lang-switcher__option.is-active .gbt-lang-switcher__check {
  opacity: 1;
}

.header-actions .gbt-lang-switcher {
  flex-shrink: 0;
}

.mobile-header-actions .gbt-lang-switcher {
  flex-shrink: 0;
}

.gbt-lang-switcher--mobile {
  width: 100%;
}

.gbt-lang-switcher--mobile .gbt-lang-switcher__trigger {
  width: 100%;
  justify-content: center;
}

.gbt-lang-switcher--mobile .gbt-lang-switcher__menu {
  left: 0;
  right: 0;
  min-width: 0;
}

.language-switcher:empty {
  display: none;
}

.site-footer .language-switcher .gbt-lang-switcher__trigger {
  border-color: rgba(255, 255, 255, .14);
}

.site-footer .gbt-lang-switcher__menu {
  bottom: calc(100% + 8px);
  top: auto;
}

@media (max-width: 1199.98px) {
  .mobile-header-actions {
    flex-wrap: wrap;
  }

  .mobile-header-actions .gbt-lang-switcher--mobile {
    width: 100%;
    order: -1;
    margin-bottom: 4px;
  }
}
