/* ReviewMeadow rating widget (standalone page shown in an iframe on business websites). */
:root {
	--mdco-star: #a15c00;
	--mdco-line: #c9c4bb;
	--mdco-text: #1f1d1a;
	--mdco-muted: #55504a;
	--mdco-link: #1d5a3a;
	--mdco-bg: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.mdco-w {
	background: var(--mdco-bg);
	color: var(--mdco-text);
	font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	padding: 10px;
}
a { color: var(--mdco-link); }
.mdco-w__name { font-weight: 700; font-size: 15px; text-decoration: none; }
.mdco-w__rating, .mdco-w__src, .mdco-w__title, .mdco-w__text { margin: 4px 0 0; }
.mdco-w__score { font-weight: 700; font-size: 18px; }
.mdco-w__count, .mdco-w__src, .mdco-w__text { color: var(--mdco-muted); font-size: 13px; }
.mdco-w__mini { display: flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.mdco-w--mini { padding: 6px 8px; }
.mdco-w__list {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 8px 0 0;
	overflow-x: auto;
	padding: 0 0 4px;
	scroll-snap-type: x mandatory;
}
.mdco-w__card {
	border: 1px solid var(--mdco-line);
	border-radius: 6px;
	flex: 0 0 200px;
	padding: 8px;
	scroll-snap-align: start;
}
.mdco-w__title { font-weight: 600; }
.mdco-rating__stars::before {
	background: linear-gradient(90deg, var(--mdco-star) var(--mdco-fill, 0%), var(--mdco-line) var(--mdco-fill, 0%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	content: "★★★★★";
	letter-spacing: 0.1em;
}
.mdco-rating__stars--5 { --mdco-fill: 10%; }
.mdco-rating__stars--10 { --mdco-fill: 20%; }
.mdco-rating__stars--15 { --mdco-fill: 30%; }
.mdco-rating__stars--20 { --mdco-fill: 40%; }
.mdco-rating__stars--25 { --mdco-fill: 50%; }
.mdco-rating__stars--30 { --mdco-fill: 60%; }
.mdco-rating__stars--35 { --mdco-fill: 70%; }
.mdco-rating__stars--40 { --mdco-fill: 80%; }
.mdco-rating__stars--45 { --mdco-fill: 90%; }
.mdco-rating__stars--50 { --mdco-fill: 100%; }
@media (prefers-color-scheme: dark) {
	:root { --mdco-bg: #1d1c1a; --mdco-text: #f2efe9; --mdco-muted: #cfc9c0; --mdco-link: #8fd3a9; --mdco-line: #5b5750; --mdco-star: #f0b44c; }
}
