.language-switcher {
	position: relative;
	display: inline-block;
	margin-left: 1rem;
	z-index: 100;
}

.language-switcher__toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: white;
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background-color 0.2s ease;
	position: relative;
	z-index: 101;
}

.language-switcher__toggle:hover {
	background-color: #f9fafb;
}

.language-switcher__flag {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.language-switcher__arrow {
	width: 12px;
	height: 12px;
	display: block;
}

.language-switcher__dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	width: 160px;
	background: white;
	border-radius: 0.5rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	border: 1px solid #e5e7eb;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 50;
	display: none;
	max-height: 0;
	overflow: hidden;
}

.language-switcher__dropdown:not(.language-switcher__dropdown--hidden) {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	display: block;
	max-height: 500px;
}

.language-switcher__list {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
}

.language-switcher__item {
	margin: 0;
}

.language-switcher__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 1rem;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.language-switcher__link:hover {
	background-color: #f9fafb;
}

.language-switcher__link:hover .language-switcher__flag {
	transform: scale(1.15);
}

.language-switcher__link--current {
	background-color: #f9fafb;
}

