.noxx-lang-switcher {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	gap: 0.5em;
}

.noxx-lang-switcher__item {
	text-decoration: none;
}

.noxx-lang-switcher__item.is-current {
	font-weight: 700;
}

.noxx-lang-switcher__sep {
	opacity: 0.5;
}

.noxx-lang-switcher--other .noxx-lang-switcher__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--noxx-lang-switcher-color, inherit);
}

.noxx-lang-switcher--other .noxx-lang-switcher__item:hover,
.noxx-lang-switcher--other .noxx-lang-switcher__item:focus-visible {
	color: var(--noxx-lang-switcher-hover-color, var(--noxx-lang-switcher-color, inherit));
}

/* As a menu item (Settings → Menus → Language switcher in menus) the link is the theme's own
   menu link and takes its colours; only the gap between globe and code is ours. */
.noxx-lang-switcher-menu-item .noxx-lang-switcher__icon {
	margin-right: 0.4em;
}

/* "Hide the menu item on phones and tablets": the switcher sits next to the menu toggle there. */
@media (max-width: 921px) {
	.noxx-lang-switcher-menu-item--desktop {
		display: none;
	}
}

/* The globe takes the size Astra gives the header account icon: 24px, 18px on tablets and
   phones. A site overrides it with --noxx-lang-switcher-icon-size and -icon-size-mobile. */
.noxx-lang-switcher__icon {
	flex: none;
	width: var(--noxx-lang-switcher-icon-size, 24px);
	height: var(--noxx-lang-switcher-icon-size, 24px);
}

@media (max-width: 921px) {
	.noxx-lang-switcher__icon {
		width: var(--noxx-lang-switcher-icon-size-mobile, 18px);
		height: var(--noxx-lang-switcher-icon-size-mobile, 18px);
	}
}
