.custom-lang-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.custom-lang-menu {
  position: relative;
  font-size: 0.7rem;
  color: #1f2933;
    width: 50px;
  z-index: 2000;
  pointer-events: auto;
}

.custom-lang-menu__title {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 80px;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: #525252;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%;
}

.custom-lang-menu__title::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.custom-lang-menu.is-open .custom-lang-menu__title,
.custom-lang-menu__title:focus-visible,
.custom-lang-menu__title:hover {
  border-color: #9aa0ad;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.custom-lang-menu.is-open .custom-lang-menu__title::after {
  transform: rotate(225deg);
}

.custom-lang-menu__title-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.custom-lang-menu__list {
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  position: absolute;
  top: 0;
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #d4d6dc;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 100;
  overflow: hidden;
  pointer-events: auto;
}

.custom-lang-menu.is-open .custom-lang-menu__list {
  display: block;
}

.custom-lang-menu__item a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease, padding-left 0.12s ease;
}

.custom-lang-menu__item a:hover,
.custom-lang-menu__item a:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  padding-left: 1rem;
}

.custom-lang-menu__code {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85em;
}
