.huwei-language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font: 800 .72rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
}

.huwei-language-toggle button {
  width: 38px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  position: relative;
  transition: background .18s ease;
}

.huwei-language-toggle button::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.24);
  transition: transform .18s ease;
}

.huwei-language-toggle[data-lang="en"] button {
  background: rgba(255,255,255,.34);
}

.huwei-language-toggle[data-lang="en"] button::after {
  transform: translateX(16px);
}

.huwei-language-toggle .huwei-lang-label {
  min-width: 28px;
  text-align: center;
  opacity: .72;
  transition: opacity .18s ease, color .18s ease;
}

.huwei-language-toggle .huwei-lang-label.active {
  opacity: 1;
  color: #fff;
}

.huwei-language-toggle.is-light {
  border-color: rgba(31,92,65,.18);
  background: rgba(255,255,255,.78);
  color: #1f5c41;
  box-shadow: 0 1px 8px rgba(31,92,65,.08);
}

.huwei-language-toggle.is-light button {
  background: rgba(31,92,65,.18);
}

.huwei-language-toggle.is-light[data-lang="en"] button {
  background: rgba(31,92,65,.28);
}

.huwei-language-toggle.is-light .huwei-lang-label.active {
  color: #1f5c41;
}

@media (max-width: 520px) {
  .huwei-language-toggle {
    font-size: .68rem;
    gap: 5px;
  }
}
