/*
 * Bộ lọc tour.
 *
 * BỘ TOKEN DÙNG CHUNG cho MỌI điều khiển lọc — nút nhóm desktop, pill mobile,
 * nút Filter, ô sắp xếp. Lệch một cái là desktop/mobile trông khác nhau ngay.
 * Đã bị chủ site nhắc 07/09: pill bo 999px trong khi nút Filter bo 10px, cùng một màn hình.
 *
 *     viền  1px solid #ece8e4   ·  bo góc 10px  ·  chữ 13.5px  ·  padding 9–11px / 14px
 *     hover      viền + chữ #d81372
 *     đang lọc   nền #fdeef5, viền #f7cfe1, chữ #ab0c58, đậm 600
 *
 * ⚠️ Mọi class PHẢI giữ tiền tố `vnin-` — safelist RUCSS của WP Rocket bao trùm tiền tố
 *    này. Đổi tên là Remove Unused CSS cắt sạch file.
 *
 * ⚠️ Flatsome đặt style rất nặng cho <button> (min-height, padding, line-height, bo góc).
 *    Mọi <button> ở đây phải reset đầy đủ, nếu không chip sẽ phình thành khối lớn và
 *    dấu × trôi lên góc trên. Đã dính lỗi này một lần 07/09/2026.
 */

.vnin-tf { font-size: 14px; }
.vnin-tf a { text-decoration: none; }

/* ============ Thanh ngang (kiểu đang dùng) ============ */
.vnin-tf--bar { margin: 0 0 22px; }
/*
 * .vnin-tf-set giữ position:relative để panel bám vào nó trên mobile;
 * .vnin-tf-scroll mới là hàng nút. Tách hai lớp để trên mobile panel (absolute, containing
 * block là .vnin-tf-set) KHÔNG bị overflow-x của .vnin-tf-scroll cắt mất.
 */
.vnin-tf--bar .vnin-tf-set { position: relative; }
/* Chỉ dùng ở chế độ drawer (mobile) — desktop ẩn hoàn toàn */
.vnin-tf-dhead, .vnin-tf-dfoot, .vnin-tf-scrim { display: none; }

/*
 * ⚠️ Hiển thị nút mở drawer quyết định ở ĐÚNG MỘT chỗ, theo chiều: desktop ẩn / mobile hiện.
 * Trước đây ẩn ở đây rồi hiện lại trong @media — hai rule tranh nhau, khó lần khi hỏng.
 * Từ 850px trở lên: ẩn. Dưới 850px: hiện (xem khối cuối file).
 */
@media (min-width: 850px) {
	.vnin-tf-open { display: none; }
}
.vnin-tf--bar .vnin-tf-scroll {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.vnin-tf-lead {
	font-size: 11px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: #999; margin-right: 2px;
}
.vnin-tf--bar .vnin-tf-grp { position: relative; border: 0; }
.vnin-tf--bar .vnin-tf-grp > summary {
	display: inline-flex; align-items: center; gap: 7px;
	/* Token dùng CHUNG — xem "BỘ TOKEN" ở đầu file */
	padding: 9px 14px; border: 1px solid #ece8e4; border-radius: 10px;
	background: #fff; color: #1b1b1f; white-space: nowrap;
	font-size: 13.5px; font-weight: 500; line-height: 1.3;
}
.vnin-tf--bar .vnin-tf-grp > summary:hover { border-color: #d81372; color: #d81372; }
.vnin-tf--bar .vnin-tf-grp[open] > summary { border-color: #d81372; color: #d81372; }
.vnin-tf--bar .vnin-tf-grp.vnin-tf-has > summary {
	background: #fdeef5; border-color: #f7cfe1; color: #ab0c58; font-weight: 600;
}
.vnin-tf--bar .vnin-tf-panel {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
	min-width: 236px; max-width: 300px; max-height: 330px; overflow-y: auto;
	background: #fff; border: 1px solid #ece8e4; border-radius: 10px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .13); padding: 10px 14px 12px;
}
.vnin-tf--bar .vnin-tf-clear { margin-left: 4px; font-size: 12.5px; font-weight: 600; color: #d81372; }
.vnin-tf--bar .vnin-tf-clear.vnin-tf-off { display: none; }

/* ============ Cột dọc (widget, không bật sẵn) ============ */
.vnin-tf--rail .vnin-tf-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 8px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #e6e6e6;
}
.vnin-tf-title { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.vnin-tf--rail .vnin-tf-clear { font-size: 12px; font-weight: 600; color: #d81372; }
.vnin-tf--rail .vnin-tf-clear.vnin-tf-off { color: #b7b7b7; pointer-events: none; }
.vnin-tf--rail .vnin-tf-grp { border-bottom: 1px solid #eee; }
.vnin-tf--rail .vnin-tf-grp:last-of-type { border-bottom: 0; }
.vnin-tf--rail .vnin-tf-grp > summary {
	display: flex; align-items: center; gap: 8px;
	padding: 11px 0; font-weight: 600; font-size: 13px;
}
.vnin-tf--rail .vnin-tf-panel { padding-bottom: 10px; }

/* ============ Dùng chung ============ */
.vnin-tf-grp > summary { list-style: none; cursor: pointer; }
.vnin-tf-grp > summary::-webkit-details-marker { display: none; }
/*
 * ⚠️ Mũi tên dùng SVG nền, KHÔNG vẽ bằng border xoay 45°.
 * Hình vuông chỉ có border phải+dưới, xoay 45° thì tâm THỊ GIÁC lệch xuống dưới-phải so
 * với tâm hình học, nên luôn phải bù bằng translate — và bù bao nhiêu thì phụ thuộc cỡ chữ.
 * Chủ site đã nhắc mũi tên lệch so với chữ 07/09. SVG nền tự canh giữa theo flex.
 */
.vnin-tf-grp > summary::after {
	content: ""; width: 9px; height: 6px; flex-shrink: 0; margin-left: auto;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%238a8a94' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: 9px 6px;
	transition: transform .18s ease;
}
.vnin-tf-grp[open] > summary::after { transform: rotate(180deg); }

.vnin-tf-badge {
	background: #d81372; color: #fff; border-radius: 20px;
	font-size: 10px; font-weight: 700; padding: 1px 6px; line-height: 1.6;
}
.vnin-tf-hint { font-size: 11.5px; color: #888; margin: 2px 0 9px; line-height: 1.45; }
.vnin-tf-opts { display: flex; flex-direction: column; }

.vnin-tf-opt {
	display: flex; align-items: center; gap: 9px;
	padding: 5px 4px; margin: 0 -4px; border-radius: 3px; color: #444; line-height: 1.35;
}
.vnin-tf-opt:hover { background: #f6f6f6; color: #222; }
.vnin-tf-box {
	width: 15px; height: 15px; flex-shrink: 0; border: 1px solid #c4c4c4;
	border-radius: 3px; background: #fff; position: relative;
}
.vnin-tf-on .vnin-tf-box { background: #d81372; border-color: #d81372; }
.vnin-tf-on .vnin-tf-box::after {
	content: ""; position: absolute; left: 4px; top: 1px;
	width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.vnin-tf-nm { flex: 1; min-width: 0; font-size: 13.5px; }
.vnin-tf-on .vnin-tf-nm { font-weight: 600; color: #222; }
.vnin-tf-ct { font-size: 11.5px; color: #999; font-variant-numeric: tabular-nums; }
.vnin-tf-zero { opacity: .35; pointer-events: none; }

/* ============ Chip bộ lọc đang bật ============ */
.vnin-tf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.vnin-tf-chips[hidden] { display: none; }
.vnin-tf-chip {
	display: inline-flex; align-items: center; gap: 4px;
	background: #fce4ef; color: #a30f56; border: 1px solid #f3c6da;
	border-radius: 10px; padding: 4px 5px 4px 10px;
	font-size: 12.5px; font-weight: 500; line-height: 1.3;
}
/* Reset toàn diện: Flatsome ép min-height/padding/bo góc lên MỌI <button> */
.vnin-tf-chip button,
.vnin-tf-chip a {
	all: unset;
	box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center;
	width: 17px; height: 17px; min-height: 0; min-width: 0; flex-shrink: 0;
	padding: 0; margin: 0; border: 0; border-radius: 3px;
	background: transparent; color: inherit; cursor: pointer;
	font-size: 15px; line-height: 1; letter-spacing: 0; text-transform: none;
}
.vnin-tf-chip button:hover,
.vnin-tf-chip a:hover { background: rgba(163, 15, 86, .14); }

/* Thẻ bị lọc ra. !important để thắng .product-small.col của Flatsome */
.vnin-tf-hide { display: none !important; }

/*
 * ⚠️ ĐỪNG thêm `content-visibility: auto` cho thẻ sản phẩm.
 * Flatsome (woocommerce.js, behavior "equalize-box") đo chiều cao .box-text để căn thẳng
 * hàng; phần ngoài màn hình bị content-visibility bỏ qua sẽ đo ra sai -> chữ đè lên nhau.
 * Đã thử và phải gỡ 07/09/2026.
 */

.vnin-tf-empty {
	padding: 40px 20px; text-align: center; color: #777;
	border: 1px dashed #ddd; border-radius: 4px; margin-bottom: 20px;
}
.vnin-tf-empty b { display: block; font-size: 17px; color: #222; margin-bottom: 6px; }

/* ============ Phân trang phía trình duyệt ============ */
.vnin-tf-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 0; }
.vnin-tf-pager[hidden] { display: none; }
.vnin-tf-pager button {
	all: unset;
	box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; height: 36px; padding: 0 10px; cursor: pointer;
	border: 1px solid #ece8e4; border-radius: 10px; background: #fff; color: #1b1b1f;
	font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums;
}
.vnin-tf-pager button:hover { border-color: #999; }
.vnin-tf-pager button[aria-current="true"] {
	background: #d81372; border-color: #d81372; color: #fff; font-weight: 600;
}
.vnin-tf-pager button[disabled] { opacity: .4; cursor: default; }
.vnin-tf-pager .vnin-tf-gap { min-width: 18px; text-align: center; color: #999; }

/* ============ Mobile: nút + drawer (kiểu Scott Dunn) ============ */
/*
 * 🔴 JS CHUYỂN .vnin-tf-set RA THẲNG <body>, nên nó KHÔNG còn là con của .vnin-tf--bar.
 *    Mọi luật cho drawer phải bám vào class `.vnin-tf-drawer` đặt trên CHÍNH nó, tuyệt đối
 *    không dùng selector hậu duệ `.vnin-tf--bar .vnin-tf-set`. Viết sai kiểu đó thì drawer
 *    rơi xuống cuối trang, mất hết style. Đã dính lỗi này 07/09/2026.
 *
 * `.vnin-tf-js` (JS gắn lên <html>) phân biệt có JS hay không: không JS thì giữ hàng nút
 * cuộn ngang làm phương án dự phòng, có JS mới đổi sang nút + drawer.
 */
@media (max-width: 849px) {
	.vnin-tf--bar { margin-bottom: 16px; }
	.vnin-tf-lead { display: none; }

	/* Nút mở + huy hiệu định nghĩa MỘT chỗ duy nhất ở cuối file — đừng thêm bản thứ hai. */
	.vnin-tf-open-badge[hidden] { display: none; }

	/* Có JS: bản inline biến mất, chỉ còn nút + drawer */
	.vnin-tf-js .vnin-tf--bar .vnin-tf-set:not(.vnin-tf-drawer) { display: none; }

	/* Không JS: giữ hàng nút cuộn ngang, vẫn lọc được bằng link thật */
	.vnin-tf--bar .vnin-tf-set:not(.vnin-tf-drawer) .vnin-tf-scroll {
		flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
		scrollbar-width: none; gap: 7px; padding: 2px 2px 3px;
	}
	.vnin-tf--bar .vnin-tf-set:not(.vnin-tf-drawer) .vnin-tf-scroll::-webkit-scrollbar { display: none; }
	.vnin-tf--bar .vnin-tf-set:not(.vnin-tf-drawer) .vnin-tf-grp { flex: 0 0 auto; position: static; }
	.vnin-tf--bar .vnin-tf-set:not(.vnin-tf-drawer) .vnin-tf-panel {
		left: 0; right: 0; width: auto; min-width: 0; max-width: none; top: calc(100% + 6px);
	}

	/* --- Drawer (class đặt trên chính .vnin-tf-set sau khi JS chuyển ra body) --- */
	.vnin-tf-set.vnin-tf-drawer {
		/* Đã ra khỏi .vnin-tf nên KHÔNG còn thừa hưởng font-size 14px — phải đặt lại. */
		font-size: 14px; line-height: 1.45; color: #333;
		position: fixed; top: 0; right: 0; bottom: 0; left: auto;
		width: min(400px, 92vw); z-index: 100000;
		display: flex; flex-direction: column;
		background: #fff; box-shadow: -6px 0 30px rgba(0, 0, 0, .2);
		transform: translateX(101%); transition: transform .26s ease;
		visibility: hidden; margin: 0; padding: 0;
	}
	.vnin-tf-set.vnin-tf-drawer.vnin-tf-shown { transform: none; visibility: visible; }

	.vnin-tf-scrim {
		display: block; position: fixed; inset: 0; z-index: 99999;
		background: rgba(15, 15, 15, .45);
		opacity: 0; pointer-events: none; transition: opacity .26s ease;
	}
	.vnin-tf-scrim.vnin-tf-shown { opacity: 1; pointer-events: auto; }

	.vnin-tf-drawer .vnin-tf-dhead {
		display: flex; align-items: center; justify-content: space-between;
		padding: 15px 18px; border-bottom: 1px solid #e6e6e6; flex-shrink: 0;
	}
	.vnin-tf-drawer .vnin-tf-dhead span { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: #111; }
	.vnin-tf-drawer .vnin-tf-close {
		all: unset; box-sizing: border-box; cursor: pointer;
		display: inline-flex; align-items: center; justify-content: center;
		width: 34px; height: 34px; font-size: 26px; line-height: 1; color: #666; border-radius: 4px;
	}
	.vnin-tf-drawer .vnin-tf-close:hover { background: #f2f2f2; color: #111; }

	/* Nhóm = accordion xếp dọc, bỏ hẳn kiểu dropdown */
	.vnin-tf-drawer .vnin-tf-scroll {
		display: block; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
		-webkit-overflow-scrolling: touch; padding: 4px 18px 18px;
	}
	.vnin-tf-drawer .vnin-tf-grp { position: static; border-bottom: 1px solid #ededed; }
	.vnin-tf-drawer .vnin-tf-grp > summary {
		display: flex; align-items: center; gap: 8px;
		width: 100%; padding: 13px 2px; border: 0; border-radius: 0;
		background: none; white-space: normal;
		font-size: 13.5px; font-weight: 600; letter-spacing: .01em; color: #222;
	}
	.vnin-tf-drawer .vnin-tf-grp[open] > summary,
	.vnin-tf-drawer .vnin-tf-grp.vnin-tf-has > summary { color: #d81372; }
	.vnin-tf-drawer .vnin-tf-panel {
		position: static; box-shadow: none; border: 0; border-radius: 0;
		min-width: 0; max-width: none; max-height: none; overflow: visible;
		padding: 0 2px 14px; background: none;
	}
	.vnin-tf-drawer .vnin-tf-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
	.vnin-tf-drawer .vnin-tf-hint { grid-column: 1 / -1; font-size: 11.5px; }
	.vnin-tf-drawer .vnin-tf-opt { padding: 7px 4px; gap: 8px; }
	.vnin-tf-drawer .vnin-tf-nm { font-size: 13px; line-height: 1.3; }
	.vnin-tf-drawer .vnin-tf-ct { font-size: 11px; }
	.vnin-tf-drawer .vnin-tf-box { width: 16px; height: 16px; }
	.vnin-tf-drawer .vnin-tf-clear {
		display: inline-block; margin: 16px 2px 0; font-size: 12.5px; font-weight: 600;
	}
	.vnin-tf-drawer .vnin-tf-clear.vnin-tf-off { display: none; }

	.vnin-tf-drawer .vnin-tf-dfoot {
		display: block; flex-shrink: 0; background: #fff; border-top: 1px solid #e6e6e6;
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
	}
	/*
	 * ⚠️ `display:flex` biến mỗi đoạn text thành flex item riêng và CẮT khoảng trắng
	 * giữa chúng: "Show <b>43</b> tours" hiện ra thành "Show43tours". Phải có `gap`.
	 * Đã dính lỗi này 07/09/2026.
	 */
	.vnin-tf-drawer .vnin-tf-apply {
		all: unset; box-sizing: border-box; cursor: pointer;
		display: flex; align-items: center; justify-content: center; gap: .32em;
		width: 100%; padding: 14px; border-radius: 10px;
		background: #d81372; color: #fff; font-size: 15px; font-weight: 600; line-height: 1;
	}

	.vnin-tf-chips { margin-top: 10px; }
	.vnin-tf-chip { font-size: 12px; padding: 3px 4px 3px 9px; }

	html.vnin-tf-lock, html.vnin-tf-lock body { overflow: hidden; }
}

@media (max-width: 400px) {
	.vnin-tf--bar .vnin-tf-opts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.vnin-tf * { transition: none !important; animation: none !important; }
}

/*
 * Viền focus: <summary> mặc định có outline xanh của trình duyệt, rất chướng khi bấm
 * bằng ngón tay (ảnh chụp 07/09 thấy khung xanh quanh "Duration"). Chỉ hiện khi điều
 * hướng bằng bàn phím, không hiện khi chạm/bấm chuột.
 */
.vnin-tf summary:focus,
.vnin-tf-drawer summary:focus,
.vnin-tf-drawer button:focus,
.vnin-tf a:focus { outline: none; }

.vnin-tf summary:focus-visible,
.vnin-tf-drawer summary:focus-visible,
.vnin-tf-drawer button:focus-visible,
.vnin-tf a:focus-visible,
.vnin-tf-drawer a:focus-visible {
	outline: 2px solid #d81372;
	outline-offset: 2px;
	border-radius: 3px;
}

/*
 * Hàng thanh lọc: nút lọc bên trái, số kết quả + Filters + sắp xếp bên phải — theo design.
 *
 * ⚠️ `.vnin-tf-meta-row` PHẢI là anh em của `.vnin-tf-set`, không được nằm trong.
 * Trên mobile JS chuyển `.vnin-tf-set` ra <body>; nằm bên trong là count/sort đi theo.
 */
.vnin-tf-row {
	display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
	padding: 13px 0;
	border-top: 1px solid #ece8e4;
	border-bottom: 1px solid #ece8e4;
}
.vnin-tf--bar .vnin-tf-set { flex: 1 1 320px; min-width: 0; }
.vnin-tf-meta-row {
	margin-left: auto; flex: 0 0 auto;
	display: flex; align-items: center; gap: 14px;
}
.vnin-tf-tools { display: flex; align-items: center; gap: 8px; }
.vnin-tf-count { font-size: 13.5px; color: #5c5c66; white-space: nowrap; }
.vnin-tf-count b { color: #1b1b1f; font-weight: 600; }

.vnin-tf-meta-row form.woocommerce-ordering { margin: 0; }
.vnin-tf-meta-row select.orderby {
	-webkit-appearance: none; appearance: none;
	padding: 9px 30px 9px 13px; margin: 0; height: auto; min-height: 0;
	border: 1px solid #ece8e4; border-radius: 10px; background-color: #fff;
	font-family: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.3; color: #1b1b1f;
	box-shadow: none; cursor: pointer;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a94' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 11px center;
	/*
	 * ⚠️ PHẢI đè cả `background-size` và `width`.
	 * Flatsome đặt cho MỌI <select>: `background-size: auto 16px` và `width: 100%`.
	 * Không đè thì SVG 10x7 của mình bị kéo cao 16px -> mũi tên to đùng đè lên chữ,
	 * và select co lại trong flex -> "Sort by latest" bị cắt cụt. Đã dính 07/09/2026.
	 */
	background-size: 10px 7px;
	width: auto; max-width: none; min-width: 158px;
}
.vnin-tf-meta-row select.orderby:hover { border-color: #d81372; color: #d81372; }


/* ============ Hàng lọc trên mobile ============
 * Theo yêu cầu 07/09: `N packages` một hàng, [Filters] + [Sort] hàng dưới, chia đôi.
 */
@media (max-width: 849px) {
	.vnin-tf-row { display: block; padding: 0; border: 0; }

	.vnin-tf-meta-row {
		margin: 0; width: 100%;
		display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
		padding: 12px 0;
		border-top: 1px solid #ece8e4;
		border-bottom: 1px solid #ece8e4;
	}
	.vnin-tf-count { flex: 1 0 100%; font-size: 14.5px; font-weight: 600; color: #1b1b1f; }
	.vnin-tf-tools { flex: 1 1 100%; display: flex; gap: 9px; }
	.vnin-tf-tools > * { flex: 1 1 0; min-width: 0; }

	/*
	 * Nút mở — ĐỊNH NGHĨA DUY NHẤT, đừng thêm bản thứ hai ở khối media phía trên.
	 * Bám thêm `.vnin-tf-tools` để chắc chắn thắng mọi style <button> chung của Flatsome.
	 */
	.vnin-tf-tools .vnin-tf-open {
		all: unset;
		box-sizing: border-box;
		display: inline-flex; align-items: center; justify-content: center; gap: 8px;
		padding: 11px 14px; cursor: pointer;
		border: 1px solid #ece8e4; border-radius: 10px; background: #fff;
		font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.3;
		letter-spacing: 0; text-transform: none; color: #1b1b1f;
	}
	.vnin-tf-tools .vnin-tf-open:hover,
	.vnin-tf-tools .vnin-tf-open[aria-expanded="true"] { border-color: #d81372; color: #d81372; }
	.vnin-tf-open-badge {
		background: #d81372; color: #fff; border-radius: 999px;
		font-size: 11px; font-weight: 700; padding: 1px 6px; letter-spacing: 0;
	}

	.vnin-tf-meta-row select.orderby {
		width: 100%; min-width: 0;
		padding: 11px 30px 11px 13px; font-size: 13.5px;
		background-size: 10px 7px; background-position: right 12px center;
		text-align: left;
	}
}

@media (max-width: 360px) {
	.vnin-tf-open span { display: none; }   /* màn rất hẹp: chỉ còn icon + số */
}

/* ============ Hàng pill cuộn ngang trên mobile (theo file design) ============
 * Do JS dựng từ danh sách nhóm — bấm pill là mở drawer và bung đúng nhóm đó.
 * Desktop không dùng: hàng nút lọc đã hiện đầy đủ sẵn.
 */
.vnin-tf-pills { display: none; }

@media (max-width: 849px) {
	.vnin-tf-pills {
		display: flex; flex-wrap: nowrap; gap: 8px;
		overflow-x: auto; overflow-y: hidden;
		-webkit-overflow-scrolling: touch; scrollbar-width: none;
		padding: 11px 0 12px;
		border-bottom: 1px solid #ece8e4;
	}
	.vnin-tf-pills::-webkit-scrollbar { display: none; }

	.vnin-tf-pill {
		all: unset;
		box-sizing: border-box; flex: 0 0 auto;
		display: inline-flex; align-items: center; gap: 7px;
		padding: 9px 14px; cursor: pointer; white-space: nowrap;
		border: 1px solid #ece8e4; border-radius: 10px; background: #fff;
		font-family: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.3;
		letter-spacing: 0; text-transform: none; color: #1b1b1f;
	}
	.vnin-tf-pill:hover { border-color: #d81372; color: #d81372; }
	.vnin-tf-pill-on {
		background: #fdeef5; border-color: #f7cfe1; color: #ab0c58; font-weight: 600;
	}
	.vnin-tf-pill-badge {
		background: #d81372; color: #fff; border-radius: 999px;
		font-size: 11px; font-weight: 700; padding: 1px 6px; letter-spacing: 0;
	}
	.vnin-tf-pill-badge[hidden] { display: none; }

	/* Chip bộ lọc đang bật nằm ngay dưới hàng pill */
	.vnin-tf-chips { margin-top: 11px; }
}

/* Mũi tên trên pill — báo cho khách biết bấm vào là mở ra chọn tiếp */
@media (max-width: 849px) {
	/* Cùng lý do như summary::after: SVG nền, không vẽ bằng border xoay. */
	.vnin-tf-pill-caret {
		width: 9px; height: 6px; flex-shrink: 0; display: inline-block;
		background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%238a8a94' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
		background-repeat: no-repeat; background-position: center; background-size: 9px 6px;
	}
}
