.site-language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(30px, 1fr));
  align-items: center;
  width: 70px;
  min-width: 70px;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(206, 216, 234, .92);
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 8px 22px rgba(31, 52, 92, .07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-language-switcher > button {
  width: 100%;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #72819a;
  font: 700 11px/1 "Inter", "SF Pro Display", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.site-language-switcher > button:hover,
.site-language-switcher > button:focus-visible {
  color: #4f63e9;
  outline: none;
}

.site-language-switcher > button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #5a70ff, #8a72ff);
  box-shadow: 0 5px 12px rgba(83, 101, 237, .22);
}

.site-language-switcher.is-mobile {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  padding: 5px;
  border-radius: 14px;
}

.site-language-switcher.is-mobile > button {
  height: 32px;
  font-size: 12px;
}

body > .site-language-switcher:not(.is-mobile) {
  position: fixed;
  z-index: 2147482000;
  top: 18px;
  right: 18px;
}

.nav-actions > .site-language-switcher,
.storefront-nav-actions > .site-language-switcher,
[data-site-nav-actions] > .site-language-switcher,
.zhy-site-nav__actions > .site-language-switcher {
  flex: 0 0 auto;
}

@media (min-width: 1081px) {
  html[data-site-language="en"] .storefront-nav-shell {
    gap: 10px;
  }

  html[data-site-language="en"] .storefront-brand {
    gap: 7px;
    padding-right: 0;
  }

  html[data-site-language="en"] .storefront-brand img {
    width: 38px;
    height: 38px;
  }

  html[data-site-language="en"] .storefront-brand strong {
    min-width: 0;
    font-size: 13px;
  }

  html[data-site-language="en"] .storefront-main-nav {
    gap: 0;
  }

  html[data-site-language="en"] .storefront-main-nav > a,
  html[data-site-language="en"] .storefront-tools-toggle {
    min-height: 38px;
    padding: 0 8px;
    font-size: 12px;
  }

  html[data-site-language="en"] .storefront-nav-actions {
    gap: 6px;
  }

  html[data-site-language="en"] .storefront-auth-link,
  html[data-site-language="en"] .storefront-create-link,
  html[data-site-language="en"] .storefront-user-button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .nav-actions > .site-language-switcher,
  .storefront-nav-actions > .site-language-switcher,
  [data-site-nav-actions] > .site-language-switcher,
  .zhy-site-nav__actions > .site-language-switcher {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-language-switcher > button { transition: none; }
}
