.fhwp-switcher {
	--fhwp-gap: 10px;
	--fhwp-color: inherit;
	font-size: inherit;
}

.fhwp-switcher__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fhwp-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fhwp-switcher--list .fhwp-switcher__list {
	flex-direction: column;
}

.fhwp-switcher__item {
	margin: 0;
}

.fhwp-switcher__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: var(--fhwp-color);
	line-height: 1.4;
}

.fhwp-switcher__link:hover,
.fhwp-switcher__link:focus {
	text-decoration: underline;
}

.fhwp-switcher__item--current .fhwp-switcher__link {
	font-weight: 600;
}

.fhwp-switcher__flag {
	display: inline-block;
	vertical-align: middle;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	border-radius: 2px;
}

.fhwp-switcher__select {
	max-width: 100%;
	padding: 4px 6px;
}

/* Collapsed style: a compact toggle that opens on hover or keyboard focus.
   Pure CSS on purpose, so cache plugins that delay JavaScript cannot break it. */
.fhwp-switcher--collapse {
	position: relative;
}

.fhwp-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 4px;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
	white-space: nowrap;
}

.fhwp-switcher__caret {
	font-size: 10px;
	opacity: 0.7;
}

.fhwp-switcher--collapse .fhwp-switcher__list {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 100000;
	flex-direction: column;
	gap: 0;
	min-width: 190px;
	max-height: 60vh;
	overflow-y: auto;
	/* No gap between the toggle and the list: a margin would break the hover
	   state while the pointer travels from the button into the list. The space
	   is padding instead, which belongs to the element and keeps hover alive. */
	margin: 0;
	padding: 10px 6px 6px;
	background: #fff;
	color: #1d2327;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.fhwp-switcher--collapse:hover .fhwp-switcher__list,
.fhwp-switcher--collapse:focus-within .fhwp-switcher__list {
	display: flex;
}

.fhwp-switcher--collapse .fhwp-switcher__link {
	width: 100%;
	padding: 5px 8px;
	border-radius: 4px;
}

.fhwp-switcher--collapse .fhwp-switcher__link:hover {
	background: rgba(0, 0, 0, 0.06);
	text-decoration: none;
}

.fhwp-float {
	overflow: visible;
}

.fhwp-float {
	position: fixed;
	z-index: 9999;
	padding: 8px 10px;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.fhwp-float--light {
	background: #fff;
	color: #1d2327;
}

.fhwp-float--dark {
	background: #1d2327;
	color: #fff;
}

.fhwp-float--bottom-right {
	right: 16px;
	bottom: 16px;
}

.fhwp-float--bottom-left {
	left: 16px;
	bottom: 16px;
}

.fhwp-float--top-right {
	right: 16px;
	top: 16px;
}

.fhwp-float--top-left {
	left: 16px;
	top: 16px;
}
