/* VietSCI - Trang "Đánh giá của khách hàng" (shortcode [ae_reviews]). Chỉ nạp trên trang có shortcode. */
.ae-rvw {
	--rv-brand: var(--brand, #1800ad);
	--rv-brand-50: var(--brand-50, #f1efff);
	--rv-ink: var(--ink, #16133d);
	--rv-text: var(--text, #2b2a3d);
	--rv-muted: var(--muted, #6b6a80);
	--rv-line: var(--line, #e6e5f0);
	--rv-star: #f59e0b;
	--ae-brand: var(--rv-brand);
	--ae-brand-50: var(--rv-brand-50);
	--ae-text: var(--rv-text);
	--ae-muted: var(--rv-muted);
	color: var(--rv-text);
}
.ae-rvw *, .ae-rvw *::before, .ae-rvw *::after { box-sizing: border-box; }
.ae-rvw .ae-stars5 { --s: 16px; --p: 0%; display: inline-block; flex: none; width: calc(var(--s) * 5); height: var(--s); vertical-align: -2px; background: linear-gradient(90deg, var(--rv-star) var(--p), #e2e0ee var(--p)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x; }

/* Tổng quan */
.ae-rvw-sum { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 0 0 22px; padding: 28px; border: 1px solid var(--rv-line); border-radius: 20px; background: linear-gradient(135deg, #fff 0%, #fbfaff 60%, #fff8f1 100%); box-shadow: 0 1px 3px rgba(22,19,61,.05), 0 12px 32px rgba(22,19,61,.05); }
.ae-rvw-score { display: grid; justify-items: center; gap: 8px; padding-right: 28px; border-right: 1px solid var(--rv-line); text-align: center; }
.ae-rvw-score b { color: var(--rv-ink); font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ae-rvw-score > span:last-child { color: var(--rv-muted); font-size: 13.5px; }
.ae-rvw-sum h3 { margin: 0 0 10px; color: var(--rv-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ae-rvw-bars p, .ae-rvw-dist a { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(50px, 1fr) 32px; align-items: center; gap: 12px; margin: 0 0 9px; font-size: 14px; }
.ae-rvw-bars span { overflow: hidden; color: var(--rv-text); text-overflow: ellipsis; white-space: nowrap; }
.ae-rvw-bars i, .ae-rvw-dist i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--rv-star) var(--w), #efeef6 var(--w)); }
.ae-rvw-bars p { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0 0 12px; }
.ae-rvw-bars span { white-space: normal; }
.ae-rvw-bars i { grid-column: 1 / -1; grid-row: 2; background: linear-gradient(90deg, var(--rv-brand) var(--w), #efeef6 var(--w)); }
.ae-rvw-bars b, .ae-rvw-dist b { color: var(--rv-ink); font-variant-numeric: tabular-nums; text-align: right; }
.ae-rvw-dist a { grid-template-columns: 30px minmax(0, 1fr) 28px; margin: 0 0 4px; padding: 3px 6px; border-radius: 8px; color: inherit; text-decoration: none; transition: background .15s; }
.ae-rvw-dist a:hover, .ae-rvw-dist a.is-on { background: #fff4e6; }
.ae-rvw-dist span { color: var(--rv-text); font-weight: 600; }

/* Lọc */
.ae-rvw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.ae-rvw-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--rv-line); border-radius: 999px; background: #fff; color: var(--rv-text); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.ae-rvw-chips a span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f1f0f6; font-size: 11.5px; }
.ae-rvw-chips a:hover { border-color: var(--rv-brand); color: var(--rv-brand); }
.ae-rvw-chips a.is-on { border-color: var(--rv-brand); background: var(--rv-brand); color: #fff; }
.ae-rvw-chips a.is-on span { background: rgba(255,255,255,.22); }

/* Danh sách */
.ae-rvw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ae-rvw-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--rv-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(22,19,61,.04); transition: box-shadow .2s, border-color .2s; }
.ae-rvw-card:hover { border-color: #d9d5f5; box-shadow: 0 12px 30px rgba(22,19,61,.07); }
.ae-rvw-card header { display: flex; align-items: center; gap: 12px; }
.ae-rvw-card header > div { display: grid; flex: 1; min-width: 0; }
.ae-rvw-card header b { color: var(--rv-ink); font-size: 15px; }
.ae-rvw-card header small { overflow: hidden; color: var(--rv-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.ae-rvw-av { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg, var(--rv-brand-50), #ffe9d6); color: var(--rv-brand); font-size: 14px; font-weight: 800; }
.ae-rvw-card blockquote { position: relative; margin: 0; padding: 0 0 0 16px; border-left: 3px solid #fcd9b0; color: #34324d; font-size: 15.5px; font-style: normal; line-height: 1.65; white-space: pre-line; }
.ae-rvw-crit { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ae-rvw-crit li { padding: 4px 10px; border-radius: 999px; background: #f6f5fb; color: #4a4868; font-size: 12.5px; }
.ae-rvw-crit b { color: #b45309; }
.ae-rvw-ver { display: inline-flex; align-items: center; gap: 5px; margin: auto 0 0; color: #15803d; font-size: 12.5px; font-weight: 600; }
.ae-rvw-reply { padding: 12px 14px; border-radius: 12px; background: var(--rv-brand-50); }
.ae-rvw-reply b { color: var(--rv-brand); font-size: 12.5px; }
.ae-rvw-reply p { margin: 4px 0 0; color: #34324d; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.ae-rvw-note { display: flex; align-items: flex-start; gap: 8px; margin: 24px 0 0; padding: 12px 16px; border-radius: 12px; background: #f7f7fc; color: var(--rv-muted); font-size: 13px; line-height: 1.55; }
.ae-rvw-note svg { flex: none; margin-top: 3px; }
.ae-rvw-none { padding: 28px; border: 1px dashed var(--rv-line); border-radius: 16px; color: var(--rv-muted); text-align: center; }
.ae-rvw-empty { display: grid; justify-items: center; gap: 6px; padding: 48px 24px; border: 1px dashed var(--rv-line); border-radius: 20px; text-align: center; }
.ae-rvw-empty svg { color: var(--rv-star); }
.ae-rvw-empty h2 { margin: 6px 0 0; font-size: 22px; }
.ae-rvw-empty p { max-width: 560px; margin: 0; color: var(--rv-muted); }
.ae-rvw .ae-pagination { margin-top: 24px; }

@media (max-width: 900px) {
	.ae-rvw-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding: 22px; }
	.ae-rvw-score { grid-column: 1 / -1; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--rv-line); }
}
@media (max-width: 640px) {
	.ae-rvw-sum { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; border-radius: 16px; }
	.ae-rvw-score b { font-size: 46px; }
	.ae-rvw-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.ae-rvw-card { padding: 16px; border-radius: 16px; }
	.ae-rvw-card blockquote { font-size: 15px; }
	.ae-rvw-chips { gap: 6px; }
	.ae-rvw-chips a { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .ae-rvw-card, .ae-rvw-chips a, .ae-rvw-dist a { transition: none; } }
