/* HiGuppy Languages preview styling — isolated; do not change the shop shell. */
.hgl-switcher {
  --hgl-ink: #244b3c;
  --hgl-line: #d9e5db;
  --hgl-paper: #fffefb;
  --hgl-focus: #b7472c;
  font: 700 13px/1.35 Nunito, "Noto Sans CJK SC", "Noto Sans CJK TC", Arial, sans-serif;
  color: var(--hgl-ink);
  flex: 0 0 auto;
  position: fixed;
  inset: auto auto 14px 16px;
  z-index: 10080;
}
.hgl-switcher.hgl-mounted {
  position: relative;
  inset: auto;
  margin: 0;
}
.hgl-switcher details { position: relative; margin: 0; }
.hgl-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  min-width: 56px;
  min-height: 42px;
  padding: 8px 10px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #c6d8ce;
  background: var(--hgl-paper);
  color: var(--hgl-ink);
  -webkit-text-fill-color: var(--hgl-ink);
  cursor: pointer;
  list-style: none;
  box-shadow: none;
}
.hgl-switcher summary::-webkit-details-marker { display: none; }
.hgl-switcher summary .hgl-chevron { font-size: 15px; }
.hgl-switcher summary:focus-visible,
.hgl-switcher .hgl-menu a:focus-visible {
  outline: 3px solid var(--hgl-focus);
  outline-offset: 2px;
}
.hgl-switcher .hgl-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10085;
  display: grid;
  gap: 4px;
  min-width: 174px;
  padding: 9px;
  border: 1px solid var(--hgl-line);
  border-radius: 15px;
  background: #fffefb;
  box-shadow: 0 16px 36px rgba(26, 64, 47, .15);
}
.hgl-switcher .hgl-menu__heading {
  margin: 0 4px 5px;
  font-size: 11px;
  line-height: 1.4;
  color: #607668;
  font-weight: 700;
}
.hgl-switcher .hgl-menu a,
html body.higuppy-site-shell .hgl-switcher .hgl-menu a {
  display: block;
  min-height: 36px;
  padding: 9px 11px;
  box-sizing: border-box;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 750;
  color: var(--hgl-ink) !important;
  -webkit-text-fill-color: var(--hgl-ink) !important;
  background: #fffefb !important;
}
.hgl-switcher .hgl-menu a[aria-current="page"],
html body.higuppy-site-shell .hgl-switcher .hgl-menu a[aria-current="page"] {
  background: #eaf3ec !important;
}
.hgl-switcher .hgl-menu a:hover,
html body.higuppy-site-shell .hgl-switcher .hgl-menu a:hover {
  background: #eaf3ec !important;
}
.hgl-preview-note {
  position: relative;
  z-index: 10081;
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  padding: 9px 16px;
  background: #f8f0e0;
  border-bottom: 1px solid #e0c99e;
  color: #523d23;
  font: 650 13px/1.55 Nunito, "Noto Sans CJK SC", "Noto Sans CJK TC", Arial, sans-serif;
  text-align: center;
}
.hgl-preview-note a,
html body .hgl-preview-note a {
  color: #285644 !important;
  -webkit-text-fill-color: #285644 !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1100px) {
  .hg-nav .hg-menu-links .hgl-switcher {
    position: relative;
    inset: auto;
    align-self: stretch;
    width: 100%;
    margin: 8px 0;
  }
  .hg-nav .hg-menu-links .hgl-switcher summary {
    width: 100%;
    justify-content: flex-start;
    padding-inline: 15px;
  }
  .hg-nav .hg-menu-links .hgl-switcher .hgl-menu {
    position: static;
    top: auto;
    right: auto;
    margin-top: 7px;
    min-width: 100%;
    box-shadow: none;
  }
  .hgl-preview-note { font-size: 12px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hgl-switcher *, .hgl-preview-note * { transition: none !important; }
}
