/*
 * Language switcher — fixed tab stack on the right edge, near the top.
 * Applies at every screen size (not a mobile-only override).
 */
.lang-switcher {
	position: absolute;
	top: 170px;
	right: 0;
	z-index: 1050;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.lang-switcher a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 52px;
	border-radius: 8px 0 0 8px;
	/* ใช้ Prompt เหมือนทั้งเว็บ (Prompt มีน้ำหนักสูงสุด 600 จึงตั้ง 600 แทน 700 ที่ไม่มีจริง
	   ถ้าปล่อย 700 เบราว์เซอร์จะสังเคราะห์ตัวหนาเองซึ่งรูปทรงจะเพี้ยนกว่าน้ำหนักจริง) */
	font-family: 'Prompt', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-decoration: none;
	box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.2);
	transition: width 0.2s ease;
}

.lang-switcher a:hover,
.lang-switcher a:focus {
	width: 68px;
	text-decoration: none;
}

.lang-switcher a.active {
	background-color: #369F30;
	color: #ffffff;
}

.lang-switcher a:not(.active) {
	background-color: #ffffff;
	color: #369F30;
	border: 1px solid #369F30;
	border-right: 0;
}

@media (max-width: 767px) {
	.lang-switcher {
		top: 120px;
	}
	.lang-switcher a {
		width: 48px;
		height: 44px;
		font-size: 14px;
	}
	.lang-switcher a:hover,
	.lang-switcher a:focus {
		width: 48px;
	}
}
