/*
 * Language switcher (templates/language-switcher.php) as prototype v3.2 shows it (.chip-btn and .menu): a globe with the
 * current language's code, the languages in a menu under it. Used in the site header and in the dashboard header.
 */
.wds-lang {
	position: relative;
}

.wds-lang > summary {
	list-style: none;
}

.wds-lang > summary::-webkit-details-marker {
	display: none;
}

.wds-lang-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #e1e8e9;
	border-radius: 999px;
	background-color: #fff;
	color: #102a33;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	cursor: pointer;
	user-select: none;
}

.wds-lang-button:hover,
.wds-lang[open] > .wds-lang-button {
	border-color: #007885;
}

.wds-lang-button:focus-visible {
	outline: 2px solid #007885;
	outline-offset: 2px;
}

.wds-lang-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 110;
	min-width: 220px;
	padding: 6px;
	border: 1px solid #e1e8e9;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: 0 18px 48px rgba(5, 45, 61, 0.18);
	text-align: left;
}

.wds-lang-menu a {
	display: flex;
	padding: 9px 12px;
	border-radius: 8px;
	color: #102a33;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
}

.wds-lang-menu a:hover {
	background-color: #eef2f2;
}

.wds-lang-menu a.is-on {
	color: #005a64;
	font-weight: 700;
}

/*
 * Site header (theme header.php). From 768px the switcher stands in the buttons column, before Log in and Get started,
 * so the menu keeps its place. Below 768px that column is hidden and the menu slides in from the side, so a second copy
 * stands next to the menu button.
 */
.wds-lang--site-mobile {
	display: none;
}

@media (min-width: 768px) {
	.site-header .site-btn-menu-column {
		display: flex;
		align-items: center;
		gap: 1.1rem;
	}
}

@media (min-width: 768px) and (max-width: 1060px) {
	.site-header .site-btn-menu-column {
		gap: 0.5rem;
	}
}

@media (max-width: 767px) {
	.site-header .wds-lang--site-mobile {
		display: block;
		margin-left: auto;
	}
}
