/* Language and currency switcher. Uses the theme's colour-scheme variables so it
   matches the shop, without depending on utility classes the compiled bundle may not ship. */
.lang-switcher { position: relative; }

.lang-switcher__list {
  /* teleported to <body> and positioned from the trigger, so the header's clipped row cannot cut it off */
  position: fixed;
  z-index: 2000000;
  width: 15rem;
  overflow: hidden;
  padding: 0.25rem 0;
  margin: 0;
  list-style: none;
  background-color: rgb(var(--color-scheme-card));
  color: rgb(var(--color-scheme-text));
  border: var(--general-border-width, 2px) solid rgb(var(--color-scheme-text));
  border-radius: var(--media-border-radius, 0.375rem);
  box-shadow: 0 12px 28px rgba(12, 34, 26, 0.18);
}

.lang-switcher__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switcher__item:hover,
.lang-switcher__item:focus-visible {
  background-color: rgb(var(--color-scheme-accent-1));
  color: rgb(var(--color-scheme-accent-1-contrast));
}

.lang-switcher__item[aria-current='true'] {
  background-color: rgb(var(--color-scheme-text));
  color: rgb(var(--color-scheme-text-contrast));
}

.lang-switcher__currency { font-size: 0.75rem; opacity: 0.75; white-space: nowrap; }

.lang-switcher__trigger { display: inline-flex; align-items: center; gap: 0.5rem; }
.lang-switcher__trigger .lang-switcher__globe { display: inline-block; width: 1rem; height: 1rem; flex: none; }
