.language-switcher {
  position: relative;
  z-index: 80;
  flex: 0 0 auto;
  font-family: "Be Vietnam Pro", sans-serif;
}

.language-switcher__trigger {
  min-width: 88px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e7e7eb;
  border-radius: 999px;
  background: #fff;
  color: #1d1d24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgb(21 27 38 / 6%);
}

.language-switcher__trigger:hover,
.language-switcher__trigger:focus-visible,
.language-switcher.is-open .language-switcher__trigger {
  border-color: #e0002a;
  outline: none;
}

.language-switcher__flag { font-size: 17px; line-height: 1; }
.language-switcher__chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.language-switcher.is-open .language-switcher__chevron { transform: rotate(225deg) translate(-1px, -1px); }

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(310px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 110px));
  overflow: auto;
  padding: 8px;
  border: 1px solid #ececf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 55px rgb(20 25 36 / 18%);
}

[dir="rtl"] .language-switcher__menu { right: auto; left: 0; }

.language-switcher__heading {
  margin: 2px 4px 8px;
  padding: 8px 9px 10px;
  border-bottom: 1px solid #f0f0f2;
  color: #747784;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.language-switcher__option {
  width: 100%;
  min-height: 45px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #22242a;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.language-switcher__option:hover { background: #f7f7f9; }
.language-switcher__option.is-active { background: #fff0f3; color: #c90027; }
.language-switcher__option strong { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.language-switcher__option small { font-size: 11px; font-weight: 700; text-transform: uppercase; opacity: .58; }

.i18n-pending { visibility: hidden; }

@media (max-width: 1360px) and (min-width: 1041px) {
  .header__actions .language-switcher__trigger { min-width: 76px; height: 40px; padding-inline: 9px; }
  .header__actions .language-switcher__trigger strong { font-size: 11px; }
}

@media (max-width: 900px) {
  .language-switcher__trigger { min-width: 72px; height: 38px; padding: 0 9px; }
  .language-switcher__trigger strong { font-size: 12px; }
  .news-header__inner > .language-switcher,
  .content-header__inner > .language-switcher,
  .shop-header__inner > .language-switcher,
  .plus-header__inner > .language-switcher { margin-left: auto; }
}

@media (max-width: 520px) {
  .language-switcher__trigger { min-width: 62px; }
  .language-switcher__trigger strong { display: none; }
}
