/**
 * [bsc_language_switcher] — click-to-open dropdown, anchored to the globe
 * icon inside .custom-header-icons. Designed to scale past the current 2
 * languages (EN/NL) up to the ~11 planned later without a redesign: the list
 * scrolls past a fixed height instead of growing indefinitely, and items are
 * language-code text (no flags) to match the monochrome .bsc-icon siblings.
 */

.bsc-lang-switcher {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.bsc-lang-switcher__toggle {
	display: inline-flex;
}

.bsc-lang-switcher__list {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 100;
	margin: 0.6rem 0 0;
	padding: 0.4rem 0;
	list-style: none;
	min-width: 90px;
	max-height: 260px;
	overflow-y: auto;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.bsc-lang-switcher.is-open .bsc-lang-switcher__list {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.bsc-lang-switcher__item {
	display: block;
	padding: 0.45rem 1.1rem;
	font-size: 13px;
	letter-spacing: 0.03em;
	color: var(--color-custom-1);
	text-decoration: none;
	white-space: nowrap;
}

.bsc-lang-switcher__item:hover,
.bsc-lang-switcher__item:focus {
	color: var(--color-custom-3);
	background: rgba(0, 0, 0, 0.04);
}

.bsc-lang-switcher__item.is-current {
	font-weight: 700;
	color: var(--color-custom-3);
}

/* Mobile menu: the icon row is centered (.custom-header-icons-mobile), so a
   right-aligned dropdown would sit off to one side oddly - center it under
   the globe icon instead. */
.custom-header-icons-mobile .bsc-lang-switcher__list {
	left: 50%;
	right: auto;
	transform: translate(-50%, -6px);
	min-width: 140px;
	text-align: center;
}

.custom-header-icons-mobile .bsc-lang-switcher.is-open .bsc-lang-switcher__list {
	transform: translate(-50%, 0);
}
