/* Thông báo tính năng mới (libs/whats-new.php) — thẻ nổi góc phải dưới. Màu thương hiệu #4d332c / #bb9b62. */
.hih-wn {
	--wn-brown: #4d332c;
	--wn-gold: #bb9b62;
	--wn-text: #5a4d48;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100000;
	box-sizing: border-box;
	width: 360px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 22px 22px 18px;
	background: #fff;
	border-top: 3px solid var(--wn-gold);
	border-radius: 16px;
	box-shadow: 0 18px 48px rgba(43, 28, 24, .22), 0 2px 8px rgba(43, 28, 24, .08);
	color: var(--wn-text);
	font-size: 14px;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .25s ease, transform .25s ease;
}
.hih-wn[hidden] {
	display: none;
}
.hih-wn.is-open {
	opacity: 1;
	transform: none;
}
.hih-wn * {
	box-sizing: border-box;
}
.hih-wn__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wn-text);
	cursor: pointer;
}
.hih-wn__close:hover,
.hih-wn__close:focus-visible {
	background: #f4efe9;
	color: var(--wn-brown);
}
.hih-wn__close svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}
/* Nhãn "New": viên thuốc nhỏ, chữ thường (thay dòng chữ hoa giãn cách cũ) */
.hih-wn .hih-wn__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	padding: 3px 10px 3px 8px;
	border-radius: 999px;
	background: #f6f0e7;
	color: #8a6a3a;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}
.hih-wn__badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wn-gold);
}
.hih-wn .hih-wn__title {
	margin: 0 36px 14px 0;
	padding: 0;
	color: var(--wn-brown);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}
.hih-wn__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.hih-wn__item {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid #efe8e1;
}
.hih-wn__icon {
	flex: 0 0 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #f6f0e7;
	color: var(--wn-brown);
}
.hih-wn__icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linejoin: round;
}
.hih-wn__body {
	min-width: 0;
}
.hih-wn .hih-wn__item-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 2px;
	padding: 0;
	color: var(--wn-brown);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}
.hih-wn__live {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #eff3ef;
	color: #557366;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
}
.hih-wn__live::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #4f9a6d;
	animation: hih-wn-pulse 1.6s ease-in-out infinite;
}
@keyframes hih-wn-pulse {
	50% { opacity: .3; }
}
.hih-wn__text {
	margin: 0 0 6px;
	color: var(--wn-text);
	font-size: 13.5px;
}
.hih-wn .hih-wn__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--wn-brown);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--wn-gold);
}
.hih-wn .hih-wn__cta:hover,
.hih-wn .hih-wn__cta:focus-visible {
	color: var(--wn-gold);
}
.hih-wn__cta svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s ease;
}
.hih-wn__cta:hover svg {
	transform: translateX(2px);
}

/* Điện thoại: thẻ rộng gần hết màn hình, sát đáy */
@media (max-width: 600px) {
	.hih-wn {
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
		max-width: none;
		padding: 18px 18px 14px;
	}
	.hih-wn .hih-wn__title {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hih-wn,
	.hih-wn__cta svg {
		transition: none;
	}
	.hih-wn__live::before {
		animation: none;
	}
}
