/* vs-flash-deal. Dùng px/em, không rem: theme vouchersan phóng cỡ chữ gốc trên mobile. */
.vsfd {
	--vsfd-c: #e11d48;
	--vsfd-bg: #fff1f2;
	margin: 16px 0;
	padding: 12px 10px;
	background: #fafafa;
	border: 1px solid #eceef1;
	border-radius: 14px;
	color: #111827;
	font-size: 14px;
	line-height: 1.4;
}

.vsfd[hidden],
.vsfd [hidden] {
	display: none !important;
}

.vsfd button {
	font: inherit;
	color: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.vsfd-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.vsfd-title {
	font-size: 16px;
}

.vsfd-upd {
	font-size: 11px;
	color: #9ca3af;
	white-space: nowrap;
}

/* --- Ô mức giá --- */
.vsfd-tiers {
	display: flex;
	gap: 6px;
}

.vsfd-tier {
	flex: 1;
	min-height: 52px;
	padding: 6px 0;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	text-align: center;
}

.vsfd-tier b {
	display: block;
	color: var(--vsfd-c);
	font-size: 22px;
	font-weight: 900;
	line-height: 1.1;
}

.vsfd-tier small {
	font-size: 11px;
	color: #6b7280;
}

.vsfd-tier[aria-selected="true"] {
	border-color: var(--vsfd-c);
	background: var(--vsfd-bg);
}

.vsfd-tier:focus-visible,
.vsfd-slot:focus-visible,
.vsfd-sort button:focus-visible,
.vsfd-card:focus-visible,
.vsfd-more:focus-visible {
	outline: 2px solid var(--vsfd-c);
	outline-offset: 2px;
}

/* --- Chip khung giờ --- */
.vsfd-slots {
	display: flex;
	gap: 6px;
	margin: 10px -10px 6px;
	padding: 0 10px 2px;
	overflow-x: auto;
	scrollbar-width: none;
}

.vsfd-slots::-webkit-scrollbar {
	display: none;
}

.vsfd-slot {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 0 14px;
	background: #f3f4f6;
	border: 0;
	border-radius: 999px;
	font-size: 13px;
	white-space: nowrap;
}

.vsfd-slot[aria-pressed="true"] {
	background: #111827;
	color: #fff;
}

.vsfd-dot {
	display: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
}

.vsfd-slot[data-status="live"] .vsfd-dot {
	display: inline-block;
}

.vsfd-slot[data-status="past"] {
	opacity: .6;
}

/* --- Trạng thái + sắp xếp --- */
.vsfd-status {
	margin: 2px 0 8px;
	font-size: 13px;
	color: #374151;
}

.vsfd-status[data-status="upcoming"],
.vsfd-status[data-status="tomorrow"] {
	padding: 7px 9px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
}

.vsfd-sort {
	display: flex;
	padding: 3px;
	margin-bottom: 8px;
	background: #f3f4f6;
	border-radius: 10px;
}

.vsfd-sort button {
	flex: 1;
	min-height: 44px;
	background: transparent;
	border: 0;
	border-radius: 8px;
	font-size: 13px;
	color: #4b5563;
}

.vsfd-sort button[aria-pressed="true"] {
	background: #fff;
	color: #111827;
	font-weight: 700;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

/* --- Danh sách + thẻ ngang --- */
.vsfd-list {
	display: grid;
	gap: 8px;
}

.vsfd-card {
	display: flex;
	gap: 10px;
	padding: 9px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	color: #111827 !important;
	text-decoration: none !important;
}

.vsfd-img {
	position: relative;
	flex: 0 0 92px;
	width: 92px;
	height: 92px;
	background: #f3f4f6;
	border-radius: 10px;
	overflow: hidden;
}

.vsfd-img img {
	display: block;
	width: 92px;
	height: 92px;
	margin: 0;
	object-fit: cover;
}

.vsfd-pct {
	position: absolute;
	top: 4px;
	left: 4px;
	padding: 1px 6px;
	background: var(--vsfd-c);
	border-radius: 6px;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}

.vsfd-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.vsfd-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.35;
}

.vsfd-foot {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
}

.vsfd-info {
	flex: 1;
	min-width: 0;
}

.vsfd-price b {
	color: var(--vsfd-c);
	font-size: 19px;
}

.vsfd-price s {
	color: #9ca3af;
	font-size: 12px;
}

.vsfd-meta {
	display: block;
	font-size: 12px;
	color: #6b7280;
}

.vsfd-stock {
	white-space: nowrap;
}

.vsfd-stock.is-low {
	color: #b91c1c;
	font-weight: 700;
}

.vsfd-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 14px;
	background: var(--vsfd-c);
	border: 1.5px solid var(--vsfd-c);
	border-radius: 10px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

/* Chữ trên nút và dòng "Mở lúc" đổi theo trạng thái khung (data-status của danh sách). */
.vsfd-btn > span,
.vsfd-open {
	display: none;
}

.vsfd-list[data-status="live"] .b-live,
.vsfd-list[data-status="upcoming"] .b-up,
.vsfd-list[data-status="tomorrow"] .b-up,
.vsfd-list[data-status="past"] .b-past {
	display: inline;
}

/* Khung sắp mở: "Mở lúc …" một dòng, số suất dòng dưới (nút viền rộng hơn, không đủ chỗ cho một dòng). */
.vsfd-list[data-status="upcoming"] .vsfd-open,
.vsfd-list[data-status="tomorrow"] .vsfd-open {
	display: block;
}

.vsfd-list[data-status="upcoming"] .vsfd-btn,
.vsfd-list[data-status="tomorrow"] .vsfd-btn,
.vsfd-list[data-status="past"] .vsfd-btn {
	background: #fff;
	color: var(--vsfd-c);
}

.vsfd-list[data-status="upcoming"] .vsfd-img img,
.vsfd-list[data-status="tomorrow"] .vsfd-img img {
	filter: saturate(.6);
}

.vsfd-list[data-status="past"] .vsfd-card {
	opacity: .65;
}

.vsfd-more,
.vsfd-all {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	color: #111827 !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}

.vsfd-all {
	margin-top: 8px;
}

.vsfd-note {
	margin: 10px 0 0;
	font-size: 11px;
	color: #9ca3af;
	text-align: center;
}

@media (min-width: 768px) {
	.vsfd {
		padding: 16px;
	}

	.vsfd-list {
		grid-template-columns: 1fr 1fr;
	}

	.vsfd-more {
		grid-column: 1 / -1;
	}
}
