/* Language select-like dropdown (Bootstrap dropdown component) */
.language {
	position: relative;
	margin-left: 10px;
	z-index: 1051;
}

.language-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.language-toggle::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 6px;
	border-right: 2px solid #d11b37;
	border-bottom: 2px solid #d11b37;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.language-toggle img {
	width: 24px;
	height: 18px;
	border-radius: 5px;
	object-fit: cover;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.language.show .language-toggle,
.language-toggle:focus,
.language-toggle:hover {
	border-color: rgba(0, 0, 0, 0.16);
	box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.language.show .language-toggle::after {
	transform: rotate(225deg);
}

.language-menu.dropdown-menu {
	z-index: 1051;
	min-width: 0;
	width: max-content;
	padding: 8px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.language-item.dropdown-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 28px;
	padding: 4px;
	border-radius: 8px;
}

.language-item + .language-item {
	margin-top: 4px;
}

.language-item img {
	width: 100%;
	height: 100%;
	border-radius: 5px;
	object-fit: cover;
}

.language-item:hover,
.language-item:focus {
	background: rgba(0, 0, 0, 0.06);
}

.language-item.active {
	background: rgba(209, 27, 55, 0.12);
	outline: 2px solid rgba(209, 27, 55, 0.4);
}

@media (max-width: 768px) {
	.language {
		margin-left: 8px;
	}

	.language-toggle {
		width: 42px;
		height: 30px;
	}

	.language-toggle img {
		width: 20px;
		height: 15px;
	}
}

