/* V1.5.39 — Android visual viewport consent containment and compact locale control. */
@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/fonts/noto-sans-sc-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
html[lang="zh-Hans"] {
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --serif: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}
html[lang="zh-Hans"] body,
html[lang="zh-Hans"] button,
html[lang="zh-Hans"] input,
html[lang="zh-Hans"] select { font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; }

:root {
  --visual-viewport-height: 100dvh;
  --visual-viewport-offset-top: 0px;
}

.mobile-page .language-switcher {
  flex: 0 0 auto;
  margin-left: auto;
}
.mobile-page .language-switcher select {
  min-width: 66px;
  min-height: 40px;
  padding: 0 25px 0 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  background: rgba(255,255,255,.075);
  color: #fff;
  font: 800 12px/1 system-ui, sans-serif;
  color-scheme: dark;
  cursor: pointer;
}
.mobile-page .language-switcher select:focus-visible {
  outline: 3px solid #ffd766;
  outline-offset: 2px;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Do not trust layout viewport units on Android Chrome: the JS companion updates
   these custom properties from window.visualViewport on resize and scroll. */
body.mobile-page[data-page="home"] .privacy-consent {
  top: var(--visual-viewport-offset-top, 0px);
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: var(--visual-viewport-height, 100dvh);
  min-height: 0;
  box-sizing: border-box;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  padding-right: max(9px, env(safe-area-inset-right, 0px));
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  padding-left: max(9px, env(safe-area-inset-left, 0px));
}
body.mobile-page[data-page="home"] .privacy-consent__panel--compact {
  max-height: calc(var(--visual-viewport-height, 100dvh) - 20px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px));
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

@media (max-width: 430px) {
  .mobile-page .nav { gap: 8px; }
  .mobile-page .brand.historic-brand { width: min(130px, 34vw); }
  .mobile-page .language-switcher select { min-width: 62px; padding-left: 7px; }
}
@media (max-width: 350px) {
  .mobile-page .menu-button,
  .mobile-page .header-cart { width: 42px; min-width: 42px; height: 42px; }
  .mobile-page .nav { gap: 7px; }
  .mobile-page .language-switcher select { width: 57px; min-width: 57px; padding-left: 5px; font-size: 11px; }
  body.mobile-page[data-page="home"] .privacy-consent__actions { grid-template-columns: 1fr; }
}
@media (max-height: 430px) {
  body.mobile-page[data-page="home"] .privacy-consent__panel--compact { padding: 12px; }
  body.mobile-page[data-page="home"] .privacy-consent__actions { margin-top: 8px; }
}
