/* Match the installed Weglot dropdown and its fixed bottom-right placement. */
.pgr-local-language-switcher-widget {
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 9999;
	width: auto;
	max-width: calc(100vw - 24px);
	color: #000;
	font-family: Arial, Helvetica, sans-serif;
}

.pgr-local-language-switcher,
.pgr-local-language-switcher > summary,
.pgr-local-language-switcher__options,
.pgr-local-language-switcher__options > li {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.pgr-local-language-switcher {
	position: relative;
	display: block;
	width: max-content;
	max-width: 100%;
	text-align: left;
}

.pgr-local-language-switcher > summary {
	position: relative;
	display: flex;
	align-items: center;
	width: max-content;
	max-width: 100%;
	height: 39px;
	min-height: 39px;
	padding: 0 60px 0 10px;
	border: 1px solid #e0e0e0;
	border-bottom: 0;
	border-radius: 0;
	background: #fff;
	color: #000;
	font: 400 13px/36px Arial, Helvetica, sans-serif;
	letter-spacing: normal;
	text-align: left;
	white-space: nowrap;
	list-style: none;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.pgr-local-language-switcher > summary::-webkit-details-marker {
	display: none;
}

.pgr-local-language-switcher > summary:focus-visible,
.pgr-local-language-switcher__choice:focus-visible {
	outline: 2px solid #b2564d;
	outline-offset: -2px;
}

.pgr-local-language-switcher__flag {
	display: inline-block;
	flex: 0 0 30px;
	width: 30px;
	height: 20px;
	margin: 0 10px 0 0;
	border-radius: 0;
	background-repeat: no-repeat;
	background-size: auto 20px;
	vertical-align: middle;
	overflow: hidden;
}

.pgr-local-language-switcher__flag--fr { background-position: -2520px 0; }
.pgr-local-language-switcher__flag--en { background-position: -1920px 0; }
.pgr-local-language-switcher__flag--de { background-position: -2490px 0; }
.pgr-local-language-switcher__flag--es { background-position: -480px 0; }
.pgr-local-language-switcher__flag--it { background-position: -2310px 0; }
.pgr-local-language-switcher__flag--nl { background-position: -2100px 0; }

.pgr-local-language-switcher__current-name {
	display: inline-block;
	font: inherit;
	line-height: 36px;
}

.pgr-local-language-switcher__arrow {
	position: absolute;
	top: 17px;
	right: 8px;
	width: 13px;
	height: 7px;
	background: url("../plugins/weglot/dist/images/wgarrowdown.png") no-repeat;
	transform: rotate(-90deg);
	transition: transform 200ms ease;
}

.pgr-local-language-switcher[open] .pgr-local-language-switcher__arrow {
	transform: rotate(-180deg);
}

.pgr-local-language-switcher__options {
	position: absolute;
	right: 0;
	bottom: 38px;
	z-index: 1010;
	display: none;
	width: max-content;
	min-width: 100%;
	max-width: min(250px, calc(100vw - 24px));
	max-height: min(70vh, 420px);
	border: 1px solid #ebeef0;
	background: #fff;
	list-style: none;
	overflow-x: hidden;
	overflow-y: auto;
}

.pgr-local-language-switcher[open] > .pgr-local-language-switcher__options {
	display: block;
}

.pgr-local-language-switcher__options > li {
	width: 100%;
	list-style: none;
}

.pgr-local-language-switcher__choice {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	height: 37px;
	min-height: 37px;
	padding: 0 10px;
	border: 0;
	background: #fff;
	color: #000;
	font: 400 13px/36px Arial, Helvetica, sans-serif;
	text-align: left;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

a.pgr-local-language-switcher__choice:hover,
a.pgr-local-language-switcher__choice:focus-visible {
	background: #f5f5f5;
	color: #000;
	text-decoration: none;
}

.pgr-local-language-switcher__option.is-active > .pgr-local-language-switcher__choice {
	font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
	.pgr-local-language-switcher__arrow { transition: none; }
}
