.vesta-i18n-shell .i18n-shell-menu {
  align-items: center;
}

.vesta-i18n-shell .i18n-shell-wp-menu {
  align-items: center;
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vesta-i18n-shell .i18n-shell-wp-menu .sub-menu {
  display: none;
}

.vesta-i18n-shell .i18n-shell-fallback {
  opacity: 0.86;
}

.vesta-i18n-shell .i18n-shell-fallback small {
  font-size: 0.72em;
  font-weight: 600;
  text-transform: none;
}

.vesta-language-switcher {
  flex: 0 0 auto;
  position: relative;
}

.vesta-language-switcher summary {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}

.vesta-language-switcher summary::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 7px;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
  width: 7px;
}

.vesta-language-switcher[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.vesta-language-switcher summary::-webkit-details-marker {
  display: none;
}

.vesta-language-current-code {
  display: none;
}

.vesta-language-switcher-menu {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(10, 28, 43, 0.22);
  display: grid;
  gap: 2px;
  min-width: 160px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1000;
}

.vesta-language-switcher-menu a,
.vesta-language-switcher-menu span {
  border-radius: 6px;
  color: #163247;
  display: block;
  font-size: 14px;
  line-height: 1.35;
  padding: 10px 12px;
  text-decoration: none;
}

.vesta-language-switcher-menu span[aria-current="page"] {
  background: #e8f1f6;
  font-weight: 700;
}

html[dir="rtl"] .vesta-i18n-shell,
html[dir="rtl"] .vesta-language-switcher-menu {
  direction: rtl;
}

html[dir="rtl"] .vesta-language-switcher-menu {
  left: 0;
  right: auto;
  text-align: right;
}

@media (max-width: 1024px) {
  .vesta-i18n-shell .i18n-shell-menu {
    align-items: stretch;
  }

  .vesta-i18n-shell .i18n-shell-wp-menu {
    align-items: stretch;
    display: grid;
    gap: 0;
  }

  .nav-inner > .vesta-language-switcher summary {
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
  }

  .vesta-language-current-name {
    display: none;
  }

  .vesta-language-current-code {
    display: inline;
  }
}

@media (max-width: 600px) {
  .vesta-has-language-switcher .nav-inner {
    gap: 12px;
  }

  .vesta-has-language-switcher .mobile-menu > span:last-child {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .nav-inner > .vesta-language-switcher summary {
    min-height: 38px;
    padding: 0 10px;
  }
}
