.autolingo-language-switcher {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.autolingo-language-switcher ul {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.autolingo-language-switcher__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 24px;
	min-height: 24px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	line-height: 1;
	text-decoration: none;
	opacity: 0.7;
	filter: grayscale(18%) saturate(0.9);
	transition: filter 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.autolingo-language-switcher__link:hover,
.autolingo-language-switcher__link:focus {
	opacity: 0.92;
	filter: grayscale(0) saturate(1.05);
	outline: none;
}

.autolingo-language-switcher__flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 22px;
	line-height: 1;
}

.autolingo-language-switcher__name {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.autolingo-language-switcher__fallback-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: transparent;
	color: currentColor;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
}

.autolingo-language-switcher__item.is-current .autolingo-language-switcher__link {
	opacity: 1;
	filter: grayscale(0) saturate(1.25) drop-shadow(0 0 5px rgba(255, 255, 255, 0.55));
	transform: translateY(-1px);
}

.autolingo-language-switcher__item.is-disabled .autolingo-language-switcher__link {
	cursor: not-allowed;
	opacity: 0.38;
	filter: grayscale(88%) saturate(0.7);
}

.autolingo-language-switcher--compact .autolingo-language-switcher__link {
	min-width: 22px;
	min-height: 22px;
	padding: 0;
}

.autolingo-language-switcher--compact .autolingo-language-switcher__flag {
	width: 22px;
	height: 22px;
	font-size: 20px;
}

.autolingo-language-switcher--flags-only .autolingo-language-switcher__link {
	justify-content: center;
}

.autolingo-language-switcher__dropdown {
	position: relative;
	display: inline-block;
}

.autolingo-language-switcher__current {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 30px;
	padding: 2px 4px;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 1;
	list-style: none;
}

.autolingo-language-switcher__current::-webkit-details-marker {
	display: none;
}

.autolingo-language-switcher__current .autolingo-language-switcher__name {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.autolingo-language-switcher__chevron {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: 0.72;
}

.autolingo-language-switcher__dropdown[open] .autolingo-language-switcher__chevron {
	transform: rotate(225deg) translateY(-1px);
}

.autolingo-language-switcher__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 9999;
	display: grid !important;
	grid-template-columns: 1fr;
	align-items: stretch;
	width: max-content;
	min-width: 190px;
	max-width: min(280px, calc(100vw - 32px));
	max-height: min(420px, calc(100vh - 120px));
	overflow-y: auto;
	gap: 2px !important;
	margin: 0 !important;
	padding: 6px !important;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	color: #1d2327;
	list-style: none;
}

.autolingo-language-switcher__menu .autolingo-language-switcher__item {
	display: block;
	margin: 0;
}

.autolingo-language-switcher__menu .autolingo-language-switcher__link {
	justify-content: flex-start;
	width: 100%;
	min-height: 34px;
	padding: 5px 8px;
	border-radius: 6px;
	color: #1d2327;
	opacity: 0.88;
	filter: none;
}

.autolingo-language-switcher__menu .autolingo-language-switcher__link:hover,
.autolingo-language-switcher__menu .autolingo-language-switcher__link:focus {
	background: #f0f0f1;
	opacity: 1;
}

.autolingo-language-switcher__menu .autolingo-language-switcher__item.is-current .autolingo-language-switcher__link {
	background: #eef6f1;
	color: #0f5132;
	filter: none;
	transform: none;
}

.autolingo-language-switcher__menu .autolingo-language-switcher__item.is-disabled .autolingo-language-switcher__link {
	background: transparent;
	color: #646970;
	opacity: 0.48;
}

.autolingo-language-switcher__menu .autolingo-language-switcher__name {
	overflow: hidden;
	text-overflow: ellipsis;
}

body.autolingo-hide-title header.entry-header,
body.autolingo-hide-title .entry-header .entry-title,
body.autolingo-hide-title .page-header .page-title,
body.autolingo-hide-title .ast-single-entry-banner,
body.autolingo-hide-title .nv-page-title-wrap,
body.autolingo-hide-title .generate-page-header,
body.autolingo-hide-title .hentry > .entry-title {
	display: none !important;
}
