/*
 * Giao diện các thành phần Ví Tiền. Màu lấy từ biến --vt-*, theme có thể ghi đè trong :root.
 * :where() giữ độ ưu tiên bằng 0 để giá trị của theme luôn thắng, dù CSS nào nạp trước.
 */
:where(:root) {
	--vt-brand: #0b6e4f;
	--vt-cta: #c2410c;
	--vt-cta-hover: #9a3412;
	--vt-text: #1f2933;
	--vt-muted: #5f6b76;
	--vt-border: #dde3e8;
	--vt-surface: #f6f8f9;
	--vt-radius: 10px;
}

.vt-button {
	display: inline-block;
	padding: 0.75em 1.4em;
	border-radius: var(--vt-radius);
	background: var(--vt-cta);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}
.vt-button:hover,
.vt-button:focus-visible {
	background: var(--vt-cta-hover);
	color: #fff;
}
.vt-button--sm {
	padding: 0.55em 1em;
	font-size: 0.9em;
	white-space: nowrap;
}

/* Hộp CTA một sản phẩm */
.vt-cta {
	margin: 1.75em 0;
	padding: 1.25em 1.4em;
	border: 1px solid var(--vt-border);
	border-left: 4px solid var(--vt-brand);
	border-radius: var(--vt-radius);
	background: #fff;
}
.vt-cta__head {
	display: flex;
	gap: 0.9em;
	align-items: center;
	margin-bottom: 0.9em;
}
.vt-cta__logo {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 8px;
}
.vt-cta__title {
	margin: 0;
	font-size: 1.15em;
	font-weight: 700;
	color: var(--vt-text);
}
.vt-cta__provider,
.vt-cta__verified {
	margin: 0;
	font-size: 0.875em;
	color: var(--vt-muted);
}
.vt-cta__highlights {
	margin: 0 0 1em 1.2em;
}
.vt-cta__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.6em;
	margin: 0 0 1.1em;
}
.vt-cta__facts div {
	padding: 0.6em 0.8em;
	border-radius: 8px;
	background: var(--vt-surface);
}
.vt-cta__facts dt {
	font-size: 0.8em;
	color: var(--vt-muted);
}
.vt-cta__facts dd {
	margin: 0;
	font-weight: 600;
}
.vt-cta__verified {
	margin-top: 0.75em;
}

/* Bảng so sánh: cuộn ngang trên màn hình hẹp */
.vt-compare {
	margin: 1.75em 0;
	overflow-x: auto;
	border: 1px solid var(--vt-border);
	border-radius: var(--vt-radius);
}
.vt-compare table {
	width: 100%;
	min-width: 560px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}
.vt-compare th,
.vt-compare td {
	padding: 0.75em 0.9em;
	border: 0;
	border-bottom: 1px solid var(--vt-border);
	text-align: left;
	vertical-align: middle;
}
.vt-compare thead th {
	background: var(--vt-surface);
	font-size: 0.85em;
	color: var(--vt-muted);
}
.vt-compare tbody tr:last-child > * {
	border-bottom: 0;
}

/* Tín hiệu tin cậy quanh bài viết */
.vt-updated {
	margin-bottom: 1em;
	font-size: 0.875em;
	color: var(--vt-muted);
}
.vt-disclosure {
	margin: 0 0 1.5em;
	padding: 0.8em 1em;
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	font-size: 0.875em;
	color: var(--vt-muted);
}
.vt-disclosure p {
	margin: 0;
}
.vt-author {
	display: flex;
	gap: 1em;
	align-items: flex-start;
	margin-top: 2.5em;
	padding: 1.25em;
	border: 1px solid var(--vt-border);
	border-radius: var(--vt-radius);
}
.vt-author__avatar {
	flex-shrink: 0;
	border-radius: 50%;
}
.vt-author__name {
	margin: 0 0 0.3em;
	font-weight: 700;
}
.vt-author__bio {
	margin: 0;
	font-size: 0.925em;
	color: var(--vt-muted);
}

.vt-missing {
	padding: 0.6em 0.9em;
	border: 1px dashed #b32d2e;
	color: #b32d2e;
	font-size: 0.875em;
}
