.jt-lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  font-family: Inter, "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.jt-menu .jt-lang-switcher {
  width: 100%;
  margin-top: 18px;
}

.jt-lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(74, 0, 114, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #4a0072;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1;
  opacity: 0.62;
  box-shadow: none;
  transition: opacity 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.jt-lang-button:hover,
.jt-lang-button:focus-visible,
.jt-lang-switcher.is-open .jt-lang-button {
  opacity: 1;
  border-color: rgba(74, 0, 114, 0.34);
  background: #ffffff;
  transform: translateY(-1px);
}

.jt-lang-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.jt-lang-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 10002;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(74, 0, 114, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(74, 0, 114, 0.13);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
}

.jt-lang-switcher.is-open .jt-lang-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.jt-lang-option {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 !important;
  padding: 9px 10px !important;
  border-radius: 8px;
  color: #1a202c !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  opacity: 0.86;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.jt-lang-option:hover,
.jt-lang-option:focus-visible {
  background: #f3e5f5;
  color: #4a0072 !important;
  opacity: 1;
}

.jt-lang-option[aria-current="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7b1fa2;
}

.jt-lang-floating {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 9000;
  margin: 0;
}

.jt-lang-floating .jt-lang-popover {
  bottom: calc(100% + 8px);
}

@media (max-width: 680px) {
  .jt-menu .jt-lang-switcher {
    margin-top: 12px;
    padding-bottom: 8px;
  }

  .jt-lang-button {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .jt-lang-popover {
    right: 50%;
    bottom: calc(100% + 7px);
    transform: translate(50%, 6px) scale(0.98);
  }

  .jt-lang-switcher.is-open .jt-lang-popover {
    transform: translate(50%, 0) scale(1);
  }
}
