.lmc-lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  vertical-align: middle;
  z-index: 120;
}

.lmc-lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 10px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #f5f5f5;
  color: #333;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lmc-lang-switch__toggle:hover,
.lmc-lang-switch.is-open .lmc-lang-switch__toggle {
  border-color: #09b9aa;
  background: #fff;
  color: #09b9aa;
  box-shadow: 0 4px 14px rgba(9, 185, 170, 0.12);
}

.lmc-lang-switch__globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #09b9aa;
}

.lmc-lang-switch__globe svg {
  display: block;
}

.lmc-lang-switch__code {
  min-width: 22px;
  letter-spacing: 0.04em;
}

.lmc-lang-switch__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.lmc-lang-switch.is-open .lmc-lang-switch__chevron {
  transform: rotate(-135deg) translateY(1px);
}

.lmc-lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.lmc-lang-switch.is-open .lmc-lang-switch__menu,
.lmc-lang-switch:focus-within .lmc-lang-switch__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lmc-lang-switch__menu-item {
  margin: 0;
}

.lmc-lang-switch__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lmc-lang-switch__option:hover {
  background: #f3fbf9;
  color: #09b9aa;
}

.lmc-lang-switch__option.is-active {
  background: rgba(9, 185, 170, 0.1);
  color: #09b9aa;
}

.lmc-lang-switch__option-code {
  min-width: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lmc-lang-switch__option-label {
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 992px) {
  .lmc-lang-switch {
    margin-right: 8px;
  }

  .lmc-lang-switch__toggle {
    height: 36px;
    padding: 0 10px 0 8px;
    font-size: 12px;
  }

  .lmc-lang-switch__menu {
    min-width: 164px;
  }
}

@media (max-width: 765px) {
  .lmc-lang-switch__globe {
    display: none;
  }

  .lmc-lang-switch__toggle {
    min-width: 64px;
    justify-content: center;
    padding: 0 10px;
  }
}
