.lang-switcher ul {
  list-style: none;
}

.lang-switcher a {
  color: var(--color-black);
  text-decoration: none;
}

.lang-switcher a:hover,
.lang-switcher a:focus {
  color: var(--color-primary-light);
}

.current-lang a {
  font-weight: 700;
}

.current-lang a:hover,
.current-lang a:focus {
  color: var(--color-black);
}

/* Inline */ 

.lang-switcher--inline ul,
.lang-switcher--inline li {
  display: flex;
}

.lang-switcher--inline li + li::before {
  content: '';
  background-color: var(--color-black);
  height: 100%;
  margin: 0 1.2rem;
  width: 0.2rem;
}

.lang-switcher--inline a {
  font-size: calc(1.3rem + 0.1vw);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

/* Dropdown */

.lang-switcher button {
  appearance: none;
  background-color: transparent;
  border: 0;
  color: var(--color-black);
  display: flex;
  font-size: calc(1.3rem + 0.1vw);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.lang-switcher button:hover {
  cursor: pointer;
}

.lang-switcher button:hover,
.lang-switcher button:focus,
.lang-switcher button[aria-expanded=true] {
  color: var(--color-primary-light);
}

.lang-switcher--dropdown ul {
  background-color: var(--color-white);
  display: none;
  right: 0;
  padding-bottom: 5rem;
  position: absolute;
  top: 100%;
}

.lang-switcher--dropdown button[aria-expanded=true] + ul {
  animation: langSwitcherFade 0.3s ease 0s 1 forwards;
  display: block;
  opacity: 0;
  transform: translateY(-1rem);
}

@keyframes langSwitcherFade {
  from { opacity: 0; transform: translateY(-1rem); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-switcher--dropdown ul::before {
  content: '';
  background-color: var(--color-white);
  box-shadow: 0 0.5rem 0.4rem rgba(0, 0, 0, 0.15);
  height: 100%;
  left: -100vw;
  position: absolute;
  top: 0;
  width: 200vw;
}

.lang-switcher--dropdown li {
  position: relative;
}

.lang-switcher--dropdown li:not(:last-child) {
  margin-bottom: var(--space-sm);
}

@media (min-width: 992px) {
  .menu + .lang-switcher--dropdown ul {
    left: 0;
    right: auto;
  }
}

@media (max-width: 991px) {
  .lang-switcher button {
    padding: var(--space-xs);
  }

  .lang-switcher--dropdown ul {
    padding-bottom: 3rem;
    text-align: right;
    width: max-content;
  }
}