/* RM24 Reviews for Google – frontend. Override the variables in your theme, e.g. .rm24rg { --rm24rg-accent: #c00; } */
.rm24rg-scope {
	--rm24rg-accent: #1a73e8;
	--rm24rg-accent-ink: #fff;
	--rm24rg-star: #fbbc04;
	--rm24rg-star-off: #dadce0;
	--rm24rg-radius: 12px;
	--rm24rg-bg: #fff;
	--rm24rg-ink: #202124;
	--rm24rg-muted: #5f6368;
	--rm24rg-line: #e3e5e8;
	--rm24rg-gap: 16px;
}

.rm24rg {
	position: relative;
	margin: 1.5em 0;
	color: var(--rm24rg-ink);
	font-size: 15px;
	line-height: 1.55;
}

.rm24rg *,
.rm24rg *::before,
.rm24rg *::after {
	box-sizing: border-box;
}

.rm24rg-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Stars */
.rm24rg-stars {
	display: inline-flex;
	gap: 1px;
	vertical-align: middle;
	line-height: 1;
}

.rm24rg-star {
	display: block;
	width: 18px;
	height: 18px;
}

.rm24rg-star-on,
.rm24rg-stop-on {
	fill: var(--rm24rg-star);
	stop-color: var(--rm24rg-star);
}

.rm24rg-star-off,
.rm24rg-stop-off {
	fill: var(--rm24rg-star-off);
	stop-color: var(--rm24rg-star-off);
}

/* Summary */
.rm24rg-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: var(--rm24rg-gap);
	padding: 16px 20px;
	background: var(--rm24rg-bg);
	border: 1px solid var(--rm24rg-line);
	border-radius: var(--rm24rg-radius);
}

.rm24rg-place {
	margin: 0 0 2px;
	font-weight: 700;
	font-size: 1.05em;
}

.rm24rg-score {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.rm24rg-avg {
	font-size: 1.9em;
	font-weight: 700;
	line-height: 1;
}

.rm24rg-score .rm24rg-star {
	width: 22px;
	height: 22px;
}

.rm24rg-total {
	color: var(--rm24rg-muted);
}

.rm24rg-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rm24rg .rm24rg-btn {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--rm24rg-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--rm24rg-accent);
	font-weight: 600;
	font-size: .92em;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.rm24rg .rm24rg-btn:hover,
.rm24rg .rm24rg-btn:focus-visible {
	background: var(--rm24rg-accent);
	color: var(--rm24rg-accent-ink);
}

.rm24rg .rm24rg-btn--primary {
	background: var(--rm24rg-accent);
	color: var(--rm24rg-accent-ink);
}

.rm24rg .rm24rg-btn--primary:hover,
.rm24rg .rm24rg-btn--primary:focus-visible {
	filter: brightness(.92);
}

/* Cards (grid) */
.rm24rg-items {
	display: grid;
	grid-template-columns: repeat(var(--rm24rg-cols, 3), minmax(0, 1fr));
	gap: var(--rm24rg-gap);
}

.rm24rg--cols-1 { --rm24rg-cols: 1; }
.rm24rg--cols-2 { --rm24rg-cols: 2; }
.rm24rg--cols-3 { --rm24rg-cols: 3; }

@media (max-width: 900px) {
	.rm24rg--cols-3 { --rm24rg-cols: 2; }
}

@media (max-width: 600px) {
	.rm24rg--cols-2,
	.rm24rg--cols-3 { --rm24rg-cols: 1; }
}

.rm24rg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	background: var(--rm24rg-bg);
	border: 1px solid var(--rm24rg-line);
	border-radius: var(--rm24rg-radius);
	box-shadow: 0 1px 2px rgba(32, 33, 36, .06);
}

.rm24rg-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rm24rg .rm24rg-avatar-link {
	flex: 0 0 auto;
	line-height: 0;
	text-decoration: none;
}

.rm24rg-avatar {
	display: block;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.rm24rg-avatar--initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rm24rg-accent);
	color: var(--rm24rg-accent-ink);
	font-weight: 700;
	line-height: 1;
}

.rm24rg-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rm24rg .rm24rg-author {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.rm24rg a.rm24rg-author:hover {
	text-decoration: underline;
}

.rm24rg .rm24rg-time {
	color: var(--rm24rg-muted);
	font-size: .85em;
	text-decoration: none;
}

.rm24rg a.rm24rg-time:hover {
	text-decoration: underline;
}

.rm24rg-text {
	margin: 0;
	overflow-wrap: anywhere;
}

.rm24rg.is-js .rm24rg-text--long:not(.is-open) {
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rm24rg .rm24rg-more {
	align-self: flex-start;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--rm24rg-accent);
	font: inherit;
	font-weight: 600;
	font-size: .92em;
	cursor: pointer;
}

.rm24rg .rm24rg-more:hover,
.rm24rg .rm24rg-more:focus-visible {
	text-decoration: underline;
}

.rm24rg .rm24rg-more[hidden] {
	display: none;
}

/* Attribution required by Google */
.rm24rg-attribution {
	margin: 10px 0 0;
	color: var(--rm24rg-muted);
	font-size: .8em;
	text-align: right;
}

.rm24rg-brand {
	font-weight: 600;
}

/* Notice for administrators */
.rm24rg-hint {
	margin: 1em 0;
	padding: 10px 14px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #1d2327;
	font-size: 14px;
}
