/* Super Google Reviews Pro: front-end widget */
.sgrp {
	--sgrp-accent: #1a73e8;
	--sgrp-columns: 3;
	--sgrp-gap: 16px;
	--sgrp-bg: #ffffff;
	--sgrp-surface: #f7f8fa;
	--sgrp-border: #e3e6ea;
	--sgrp-text: #202124;
	--sgrp-muted: #5f6368;
	--sgrp-star: #f4b400;
	--sgrp-star-off: #d7dade;
	--sgrp-radius: 10px;
	color: var(--sgrp-text);
	font-size: 15px;
	line-height: 1.55;
	box-sizing: border-box;
	margin: 0 0 1.5em;
}
.sgrp *, .sgrp *::before, .sgrp *::after { box-sizing: border-box; }
.sgrp--dark {
	--sgrp-bg: #1f2124;
	--sgrp-surface: #2a2d31;
	--sgrp-border: #3a3e43;
	--sgrp-text: #eceef0;
	--sgrp-muted: #a8adb3;
	--sgrp-star-off: #4a4f55;
}
.sgrp a { color: inherit; }

/* Stars */
.sgrp-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.sgrp-star {
	width: 16px; height: 16px; display: inline-block;
	background: linear-gradient(90deg, var(--sgrp-star) var(--sgrp-fill, 0%), var(--sgrp-star-off) var(--sgrp-fill, 0%));
	clip-path: polygon(50% 0%, 61.8% 35.3%, 100% 35.3%, 69.1% 57.1%, 80.9% 92.7%, 50% 70.6%, 19.1% 92.7%, 30.9% 57.1%, 0% 35.3%, 38.2% 35.3%);
}

/* Header */
.sgrp-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px 24px; margin-bottom: 20px;
}
.sgrp-header__name { font-size: 1.15em; font-weight: 600; }
.sgrp-header__name a { text-decoration: none; }
.sgrp-header__name a:hover { text-decoration: underline; }
.sgrp-header__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.sgrp-header__score { font-size: 1.6em; font-weight: 700; line-height: 1; }
.sgrp-header__rating .sgrp-star { width: 20px; height: 20px; }
.sgrp-header__count { color: var(--sgrp-muted); font-size: .92em; }

.sgrp-write, .sgrp-badge__write {
	display: inline-block; padding: 10px 18px; border-radius: 999px;
	background: var(--sgrp-accent); color: #fff !important; font-weight: 600; font-size: .92em;
	text-decoration: none !important; line-height: 1.2; transition: filter .15s;
}
.sgrp-write:hover, .sgrp-badge__write:hover { filter: brightness(1.08); }
.sgrp-write:focus-visible, .sgrp-badge__write:focus-visible, .sgrp button:focus-visible, .sgrp a:focus-visible {
	outline: 2px solid var(--sgrp-accent); outline-offset: 2px;
}

/* Cards */
.sgrp-card {
	background: var(--sgrp-bg); border: 1px solid var(--sgrp-border); border-radius: var(--sgrp-radius);
	padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.sgrp-card__head { display: flex; align-items: center; gap: 12px; }
.sgrp-card__avatar {
	width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; object-fit: cover; margin: 0;
}
.sgrp-card__avatar--initial {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--sgrp-accent); color: #fff; font-weight: 600;
}
.sgrp-card__meta { display: flex; flex-direction: column; min-width: 0; }
.sgrp-card__author { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.sgrp-card__author:hover { text-decoration: underline; }
.sgrp-card__date { color: var(--sgrp-muted); font-size: .85em; }
.sgrp-card__text { margin: 0; overflow-wrap: anywhere; }
.sgrp-more {
	background: none; border: 0; padding: 0; margin-left: 4px; cursor: pointer;
	color: var(--sgrp-accent); font: inherit; font-weight: 600;
}

/* Grid */
.sgrp--grid .sgrp-items {
	display: grid; gap: var(--sgrp-gap);
	grid-template-columns: repeat(var(--sgrp-columns), minmax(0, 1fr));
	align-items: start;
}

/* List */
.sgrp--list .sgrp-items { display: flex; flex-direction: column; gap: 12px; }

/* Slider */
.sgrp-slider { position: relative; display: flex; align-items: center; gap: 8px; }
.sgrp-track {
	display: flex; gap: var(--sgrp-gap); overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; scrollbar-width: none; flex: 1; padding: 2px;
}
.sgrp-track::-webkit-scrollbar { display: none; }
.sgrp-track .sgrp-card {
	scroll-snap-align: start;
	flex: 0 0 calc((100% - (var(--sgrp-columns) - 1) * var(--sgrp-gap)) / var(--sgrp-columns));
}
.sgrp-nav {
	flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--sgrp-border); background: var(--sgrp-bg); color: var(--sgrp-text);
	font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
.sgrp-nav:hover { border-color: var(--sgrp-accent); color: var(--sgrp-accent); }
.sgrp-nav[disabled] { opacity: .35; cursor: default; }

.sgrp-attribution { color: var(--sgrp-muted); font-size: .8em; margin: 12px 0 0; text-align: right; }
.sgrp-empty, .sgrp-error { color: var(--sgrp-muted); }
.sgrp-error { padding: 10px 14px; border-left: 3px solid #d93025; background: #fdecea; color: #611a15; }

/* Badge */
.sgrp-badge {
	position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px;
	background: var(--sgrp-bg); border: 1px solid var(--sgrp-border); border-top: 3px solid var(--sgrp-accent);
	border-radius: var(--sgrp-radius); padding: 14px 18px;
}
.sgrp-badge__link { display: flex; flex-direction: column; gap: 2px; text-decoration: none !important; }
.sgrp-badge__label { font-weight: 600; font-size: .9em; }
.sgrp-badge__row { display: flex; align-items: center; gap: 8px; }
.sgrp-badge__score { font-size: 1.5em; font-weight: 700; line-height: 1.1; }
.sgrp-badge__count { color: var(--sgrp-muted); font-size: .82em; }
.sgrp-badge__write { padding: 7px 14px; font-size: .82em; }

/* Floating badge */
.sgrp--floating { position: fixed; z-index: 99990; margin: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.sgrp--pos-bottom-left { left: 16px; }
.sgrp--pos-bottom-right { right: 16px; }
.sgrp--floating .sgrp-badge { box-shadow: 0 6px 24px rgba(0, 0, 0, .14); }
.sgrp--floating .sgrp-badge__write { display: none; }
.sgrp--floating.is-hidden { display: none; }
.sgrp-badge__close {
	position: absolute; top: 4px; right: 6px; background: none; border: 0; padding: 2px 6px;
	font-size: 18px; line-height: 1; color: var(--sgrp-muted); cursor: pointer;
}


/* =========================================================
 * Masonry: Pinterest-style wall, full text, varied heights
 * ======================================================= */
.sgrp--masonry .sgrp-items {
	column-count: var(--sgrp-columns);
	column-gap: var(--sgrp-gap);
}
.sgrp--masonry .sgrp-card {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	margin-bottom: var(--sgrp-gap);
	display: flex;
}

/* =========================================================
 * Single: one large review at a time (testimonial spotlight)
 * ======================================================= */
.sgrp--single { --sgrp-columns: 1 !important; }
.sgrp--single .sgrp-header { justify-content: center; text-align: center; flex-direction: column; }
.sgrp--single .sgrp-header__rating { justify-content: center; }
.sgrp--single .sgrp-track .sgrp-card {
	flex: 0 0 100%;
	align-items: center;
	text-align: center;
	padding: 36px 28px;
	gap: 14px;
}
.sgrp--single .sgrp-card__text { font-size: 1.15em; line-height: 1.65; max-width: 680px; }
.sgrp--single .sgrp-card__head { order: 3; flex-direction: column; gap: 6px; }
.sgrp--single .sgrp-card__meta { align-items: center; }
.sgrp--single .sgrp-card .sgrp-stars .sgrp-star { width: 22px; height: 22px; }
.sgrp--single .sgrp-card__avatar { width: 56px; height: 56px; flex-basis: 56px; font-size: 1.3em; }
.sgrp--single .sgrp-card::before {
	content: "\201C";
	font-family: Georgia, "Times New Roman", serif;
	font-size: 64px;
	line-height: .6;
	height: 28px;
	color: var(--sgrp-accent);
	opacity: .35;
}
.sgrp--single .sgrp-card::before { order: -3; }
.sgrp-style--bubble.sgrp--single .sgrp-card::before { display: none; }
.sgrp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.sgrp-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--sgrp-border); transition: width .2s, background .2s; }
.sgrp-dot.is-active { width: 20px; background: var(--sgrp-accent); }

/* =========================================================
 * Marquee: endless scrolling strip
 * ======================================================= */
.sgrp-marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sgrp-marquee__track {
	display: flex;
	width: max-content;
	animation: sgrp-marquee var(--sgrp-marquee-duration, 40s) linear infinite;
}
.sgrp-marquee:hover .sgrp-marquee__track,
.sgrp-marquee:focus-within .sgrp-marquee__track { animation-play-state: paused; }
.sgrp-marquee__group { display: flex; gap: var(--sgrp-gap); padding-right: var(--sgrp-gap); }
.sgrp-marquee .sgrp-card { width: 300px; flex: 0 0 300px; }
@keyframes sgrp-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* =========================================================
 * Bar: one-line rating (product page, header, checkout)
 * ======================================================= */
.sgrp-bar {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	background: var(--sgrp-bg);
	border: 1px solid var(--sgrp-border);
	border-radius: 999px;
	padding: 8px 10px 8px 18px;
	max-width: 100%;
}
.sgrp-bar__main { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; text-decoration: none !important; }
.sgrp-bar__word { font-weight: 700; }
.sgrp-bar__score { font-weight: 600; }
.sgrp-bar__sep, .sgrp-bar__count { color: var(--sgrp-muted); font-size: .92em; }
.sgrp-bar__main:hover .sgrp-bar__count { text-decoration: underline; }
.sgrp-bar__write {
	background: var(--sgrp-accent); color: #fff !important; text-decoration: none !important;
	border-radius: 999px; padding: 6px 14px; font-size: .85em; font-weight: 600; white-space: nowrap;
}

/* =========================================================
 * Card styles (work with every review layout)
 * ======================================================= */

/* Shadow: floating cards, no border */
.sgrp-style--shadow .sgrp-card {
	border-color: transparent;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}
.sgrp--dark.sgrp-style--shadow .sgrp-card { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }

/* Outline: strong accent border */
.sgrp-style--outline .sgrp-card {
	background: transparent;
	border: 2px solid var(--sgrp-accent);
}

/* Minimal: no box, thin separator */
.sgrp-style--minimal .sgrp-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	border-top: 1px solid var(--sgrp-border);
	padding: 16px 4px;
}
.sgrp-style--minimal.sgrp--grid .sgrp-card,
.sgrp-style--minimal.sgrp--masonry .sgrp-card { border-top: 3px solid var(--sgrp-accent); }

/* Bubble: text in a speech bubble, author underneath */
.sgrp-style--bubble .sgrp-card {
	background: transparent;
	border: 0;
	padding: 0;
	gap: 12px;
}
.sgrp-style--bubble .sgrp-card > .sgrp-stars { order: -2; }
.sgrp-style--bubble .sgrp-card__text { order: -1; }
.sgrp-style--bubble .sgrp-card__text {
	position: relative;
	background: var(--sgrp-surface);
	border-radius: var(--sgrp-radius);
	padding: 16px 18px;
	margin-bottom: 8px;
}
.sgrp-style--bubble .sgrp-card__text::after {
	content: "";
	position: absolute;
	left: 22px;
	bottom: -10px;
	border-width: 10px 10px 0 0;
	border-style: solid;
	border-color: var(--sgrp-surface) transparent transparent transparent;
}
.sgrp-style--bubble .sgrp-card__head { padding-left: 8px; }
.sgrp-style--bubble.sgrp--single .sgrp-card__text::after { left: calc(50% - 5px); }

/* Quote: large accent quotation mark, accent top line */
.sgrp-style--quote .sgrp-card {
	position: relative;
	border-top: 4px solid var(--sgrp-accent);
	padding-top: 26px;
}
.sgrp-style--quote:not(.sgrp--single) .sgrp-card::before {
	content: "\201C";
	position: absolute;
	top: 6px;
	right: 16px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 64px;
	line-height: 1;
	color: var(--sgrp-accent);
	opacity: .18;
	pointer-events: none;
}

/* Responsive */
@media (max-width: 960px) {
	.sgrp { --sgrp-columns: 2 !important; }
}
@media (max-width: 640px) {
	.sgrp { --sgrp-columns: 1 !important; }
	.sgrp-nav { display: none; }
	.sgrp-track .sgrp-card { flex-basis: 86%; }
}
@media (max-width: 640px) {
	.sgrp--masonry .sgrp-items { column-count: 1; }
	.sgrp--single .sgrp-track .sgrp-card { flex-basis: 100%; padding: 26px 18px; }
	.sgrp--single .sgrp-nav { display: none; }
	.sgrp-marquee .sgrp-card { width: 260px; flex-basis: 260px; }
	.sgrp-bar { border-radius: var(--sgrp-radius); }
}
@media (prefers-reduced-motion: reduce) {
	.sgrp-track { scroll-behavior: auto; }
	.sgrp-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.sgrp-marquee__track { animation: none; }
	.sgrp-marquee__group[aria-hidden="true"] { display: none; }
}
