.ad-lang-switcher {
	--ad-lang-open-duration: 250ms;
	--ad-lang-close-duration: 150ms;
	position: fixed;
	top: 0;
	right: 107px;
	bottom: auto;
	left: auto;
	z-index: 9999999;
	width: 40px;
	height: var(--ad-lang-length);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	direction: ltr;
	pointer-events: none;
	/* Clip the translated strip at the screen edge without changing page overflow */
	overflow: hidden;
}

.ad-lang-switcher .ad-lang-switcher__strip {
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	width: 40px;
	height: var(--ad-lang-length);
	margin: 0;
	padding: 4px;
	border: 0;
	border-radius: 0 0 20px 20px;
	background: #c4bbaf;
	pointer-events: auto;
}

.ad-lang-switcher .ad-lang-switcher__options {
	display: contents;
}

.ad-lang-switcher .ad-lang-switcher__flag {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	box-sizing: border-box;
	position: relative;
	width: 32px;
	min-width: 0;
	max-width: none;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 2px;
	border: 2px solid transparent;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #252525;
	line-height: 1;
	text-decoration: none;
	transform: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.ad-lang-switcher .ad-lang-switcher__flag:hover,
.ad-lang-switcher .ad-lang-switcher__flag:active,
.ad-lang-switcher .ad-lang-switcher__flag:focus {
	background: transparent;
	box-shadow: none;
	text-decoration: none;
}

.ad-lang-switcher a.ad-lang-switcher__flag:hover {
	border-color: var(--e-global-color-primary, #5f584f);
}

.ad-lang-switcher .ad-lang-switcher__toggle,
.ad-lang-switcher .ad-lang-switcher__toggle:hover,
.ad-lang-switcher .ad-lang-switcher__toggle:active,
.ad-lang-switcher .ad-lang-switcher__toggle:focus {
	border-color: transparent !important;
	cursor: default !important;
}

.ad-lang-switcher .ad-lang-switcher__flag::before,
.ad-lang-switcher .ad-lang-switcher__flag::after {
	content: none;
}

.ad-lang-switcher .ad-lang-switcher__flag:focus-visible {
	outline: 2px solid #252525;
	outline-offset: 0;
}

.ad-lang-switcher .ad-lang-switcher__flag img {
	display: block;
	flex: 0 0 24px;
	box-sizing: border-box;
	width: 24px;
	max-width: none;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	object-fit: contain;
	box-shadow: none;
}

/* Start closed before JavaScript initializes */
.ad-lang-switcher .ad-lang-switcher__strip {
	transform: translateY(calc(40px - var(--ad-lang-length)));
}

body.admin-bar .ad-lang-switcher {
	top: 32px;
}

.ad-lang-switcher.is-animated .ad-lang-switcher__strip {
	transition: transform var(--ad-lang-close-duration) ease-in-out;
}

.ad-lang-switcher.is-enhanced:not(.is-open) .ad-lang-switcher__options {
	visibility: hidden;
	transition: visibility 0s linear var(--ad-lang-close-duration);
}

.ad-lang-switcher.is-enhanced.is-open .ad-lang-switcher__strip {
	transform: translateY(0);
	transition-duration: var(--ad-lang-open-duration);
}

@media (max-width: 767px) {
	.ad-lang-switcher {
		top: 137px;
		right: auto;
		left: 0;
		width: var(--ad-lang-length);
		height: 40px;
	}

	body.admin-bar .ad-lang-switcher {
		top: 137px;
	}

	.ad-lang-switcher .ad-lang-switcher__strip {
		flex-direction: row;
		width: var(--ad-lang-length);
		height: 40px;
		border-radius: 0 20px 20px 0;
	}

	.ad-lang-switcher .ad-lang-switcher__strip {
		transform: translateX(calc(40px - var(--ad-lang-length)));
	}

	.ad-lang-switcher.is-enhanced.is-open .ad-lang-switcher__strip {
		transform: translateX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ad-lang-switcher {
		--ad-lang-open-duration: 0ms;
		--ad-lang-close-duration: 0ms;
	}
}
