/* CN Lang Suggest — lớp phủ cố định, không đẩy nội dung (không gây CLS). */
.cn-lang-suggest {
	position: fixed; z-index: 70;
	right: 16px; bottom: 16px; left: auto;
	max-width: min(440px, calc(100vw - 32px));
	display: flex; align-items: center; gap: .5rem;
	padding: .375rem .375rem .375rem 1rem;
	background: #0B0B0C; color: #FAF7F1;
	border: 1px solid rgba(228, 180, 72, .55); border-radius: 10px;
	box-shadow: 0 8px 24px rgba(11, 11, 12, .28);
	font-size: .9375rem; line-height: 1.4;
	box-sizing: border-box;
	animation: cn-lang-suggest-in .2s ease-out;
}
.cn-lang-suggest__text { margin: 0; flex: 1 1 auto; min-width: 0; }
.cn-lang-suggest__text a {
	color: #E4B448; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
	white-space: nowrap;
}
.cn-lang-suggest__text a:hover { color: #F0C76A; }
.cn-lang-suggest__close {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin: 0; padding: 0;
	background: transparent; color: #FAF7F1; border: 0; border-radius: 6px; cursor: pointer;
}
.cn-lang-suggest__close:hover { color: #F0C76A; background: rgba(228, 180, 72, .12); }
.cn-lang-suggest a:focus-visible,
.cn-lang-suggest__close:focus-visible { outline: 2px solid #F0C76A; outline-offset: 2px; }

/* Điện thoại/tablet: nằm trên thanh điều hướng dưới (56px) của theme Classical. */
@media (max-width: 781px) {
	.cn-lang-suggest {
		left: 8px; right: 8px; max-width: none;
		/* --cn-ls-nav: chiều cao thật của .cn-bottom-nav (JS đo); mặc định 65px + vùng an toàn. */
		bottom: calc(var(--cn-ls-nav, calc(65px + env(safe-area-inset-bottom, 0px))) + 8px);
		font-size: .875rem;
	}
	/* Trang sản phẩm: thêm chỗ cho thanh "Thêm vào giỏ / Mua ngay" dính đáy. */
	body.single-product:has(.cn-buybar:not([hidden]):not(.is-hidden)) .cn-lang-suggest {
		bottom: calc(56px + 64px + 8px + env(safe-area-inset-bottom, 0px));
	}
}
/* Không che menu điện thoại đang mở. */
body:has(.wp-block-navigation__responsive-container.is-menu-open) .cn-lang-suggest { display: none; }

@keyframes cn-lang-suggest-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cn-lang-suggest { animation: none; } }
