.elm-hm-switcher {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	line-height: 1.4;
	font-family: inherit;
}

.elm-hm-switcher--placement-weglot {
	position: fixed;
	right: 40px;
	bottom: 0;
	z-index: 99999;
}

.elm-hm-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid #d6dbe1;
	border-radius: 4px 4px 0 0;
	background: #fff;
	color: #243447;
	cursor: pointer;
	font: inherit;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.elm-hm-switcher__menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	min-width: 180px;
	padding: 6px 0;
	margin: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #d6dbe1;
	border-radius: 4px;
	box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
	z-index: 9999;
}

.elm-hm-switcher--inline .elm-hm-switcher__menu {
	position: static;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.elm-hm-switcher__menu[hidden] {
	display: none;
}

.elm-hm-switcher__link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	padding: 9px 14px;
	color: #243447;
	text-decoration: none;
	white-space: nowrap;
	background: #fff;
}

.elm-hm-switcher__link:hover,
.elm-hm-switcher__link:focus {
	background: #f5f7fa;
	color: #0b7f8c;
}

.elm-hm-switcher__link.is-current {
	color: #0b7f8c;
	font-weight: 600;
}

.elm-hm-switcher--inline .elm-hm-switcher__link {
	padding: 6px 10px;
	border: 1px solid #d6dbe1;
	border-radius: 999px;
	background: #fff;
}

.elm-hm-switcher__flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	min-height: 16px;
	flex: 0 0 22px;
}

.elm-hm-switcher__flag > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 16px;
	font-size: 0;
	line-height: 0;
}

.elm-hm-switcher__flag.weglot-flags > span::before {
	display: inline-block;
	height: 16px;
	background-size: contain;
	background-repeat: no-repeat;
	content: '';
}

@media (max-width: 767px) {
	.elm-hm-switcher--placement-weglot {
		right: 16px;
		bottom: 12px;
	}

	.elm-hm-switcher__toggle {
		padding: 9px 12px;
	}

	.elm-hm-switcher__menu {
		min-width: 160px;
	}
}
