/* Boduo Multilingual Frontend — Language Switcher styles.
   Scoped entirely under .bmf-language-switcher so this never bleeds
   into (or is affected by) the rest of the theme's navigation styles. */

.bmf-language-switcher {
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1.4;
}

.bmf-language-switcher-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	padding: 6px 10px;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

.bmf-language-switcher-toggle:hover {
	border-color: currentColor;
}

.bmf-language-switcher-toggle:focus-visible,
.bmf-language-switcher-link:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.bmf-language-switcher-globe {
	font-size: 15px;
	line-height: 1;
}

.bmf-language-switcher-list {
	list-style: none;
	margin: 6px 0 0;
	padding: 6px 0;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 140px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	display: none;
	z-index: 9999;
}

.bmf-language-switcher.is-open .bmf-language-switcher-list {
	display: block;
}

.bmf-language-switcher-link {
	display: block;
	padding: 8px 14px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.bmf-language-switcher-link:hover {
	background: rgba(0, 0, 0, 0.05);
}

.bmf-language-switcher-link.is-active {
	font-weight: 700;
}

/* Mobile: switcher sits full-width inside the mobile menu, list is
   always inline rather than an absolutely-positioned dropdown, so it
   never gets clipped by a scrolling mobile-menu container. */
@media (max-width: 782px) {
	.bmf-language-switcher {
		display: block;
		width: 100%;
	}
	.bmf-language-switcher-toggle {
		width: 100%;
		justify-content: space-between;
		padding: 12px 14px;
	}
	.bmf-language-switcher-list {
		position: static;
		box-shadow: none;
		border: none;
		width: 100%;
		padding: 0;
	}
	.bmf-language-switcher-link {
		padding: 12px 14px;
	}
}
