/* Sugarclick Reviews 1.0.3
   White = Google's content (with the Google Maps attribution). Blue = Sugarclick's reply. Google's rules ask for that
   separation, and it also tells a visitor at a glance who said what. */

.scr {
	--scr-red: #E63946;
	--scr-ink: #1A1A1A;
	--scr-blue: #4376FA;
	--scr-blue-ink: #2353D6;
	--scr-reply: #EAF3FF;
	--scr-muted: #5E5E5E;
	--scr-link: #1A56DB;
	background: var(--scr-red);
	color: #fff;
	padding: clamp(48px, 7vw, 88px) 16px clamp(56px, 8vw, 96px);
	font-family: inherit;
}
.scr *, .scr *::before, .scr *::after { box-sizing: border-box; }
.scr [hidden] { display: none !important; }
.scr.scr--plain { background: none; padding: 0; }
.scr .scr-inner { max-width: 1180px; margin: 0 auto; }

/* heading block: the site's display face, same as the other section titles */
.scr .scr-title {
	font-family: 'Amatic SC', 'Comic Sans MS', cursive;
	font-weight: 700;
	font-size: clamp(2.75rem, 9vw, 5rem);
	line-height: .95;
	letter-spacing: normal;
	text-transform: none;
	color: #fff;
	text-align: center;
	text-wrap: balance;
	margin: 0 0 14px;
	padding: 0;
}
.scr .scr-sub {
	font-weight: 700;
	font-size: clamp(1.2rem, 2.2vw, 1.35rem);
	line-height: 1.4;
	color: #fff;
	text-align: center;
	max-width: 62ch;
	margin: 0 auto 28px;
	text-wrap: balance;
	padding: 0;
}

/* the rating line, Google's content */
.scr .scr-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 14px;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 30px;
	padding: 10px 22px;
	background: #fff;
	color: var(--scr-ink);
	border-radius: 999px;
}
.scr .scr-score { font-weight: 800; font-size: 1.5rem; line-height: 1; }
.scr .scr-count { font-size: 1rem; line-height: 1.2; }
.scr .scr-summary .scr-stars svg { width: 20px; height: 20px; }
.scr .scr-summary .scr-attr,
.scr .scr-summary .scr-attr-logo { padding-left: 14px; border-left: 1px solid #DADCE0; }

/* Google Maps attribution, styled the way Google's attribution guide asks */
.scr .scr-attr {
	font-family: Roboto, Arial, sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 13px;
	letter-spacing: normal;
	white-space: nowrap;
	color: var(--scr-muted);
}
.scr .scr-attr-logo { display: block; height: 16px; width: auto; }

.scr .scr-stars { display: inline-flex; gap: 1px; vertical-align: middle; line-height: 0; }
.scr .scr-stars svg { width: 16px; height: 16px; display: block; }

/* the cards */
.scr .scr-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 24px;
	margin: 0;
	padding: 0;
}
.scr .scr-list:focus { outline: none; }
.scr .scr-list:focus-visible { outline: 3px solid #fff; outline-offset: 6px; border-radius: 22px; }
.scr .scr-card,
.scr .scr-ghost { flex: 1 1 300px; max-width: 372px; }
.scr .scr-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--scr-ink);
	border-radius: 20px;
	overflow: hidden;
	margin: 0;
}
.scr .scr-ghost { height: 320px; border-radius: 20px; background: rgba(255, 255, 255, .16); }

.scr .scr-g { flex: 1 0 auto; padding: 20px 20px 18px; }
.scr .scr-head { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; }
.scr .scr-avatar {
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: #E8EAED;
}
.scr .scr-initial {
	display: grid;
	place-items: center;
	background: var(--scr-blue);
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
}
.scr .scr-who { min-width: 0; }
.scr .scr-name {
	display: block;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.25;
	color: var(--scr-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}
.scr a.scr-name:hover { text-decoration: underline; }
.scr .scr-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.scr .scr-date { font-size: .875rem; color: var(--scr-muted); }

.scr .scr-text,
.scr .scr-reply-text { margin: 0; padding: 0; white-space: pre-line; overflow-wrap: anywhere; }
.scr .scr-text {
	font-size: 1rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
	overflow: hidden;
}
.scr .scr-text.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
/* while "Read more" animates, the height is driven from the script; overflow stays hidden so lines reveal smoothly */
.scr .scr-text.is-moving { overflow: hidden; will-change: height; }

.scr .scr-toggle {
	all: unset;
	display: inline-block;
	margin-top: 6px;
	font-family: inherit;
	font-weight: 600;
	font-size: .9rem;
	line-height: 1.4;
	color: var(--scr-link);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.scr .scr-toggle[hidden] { display: none !important; }
.scr .scr-head .scr-attr,
.scr .scr-head .scr-attr-logo { margin-left: auto; align-self: flex-start; padding-top: 2px; }

/* Sugarclick's reply: set apart from Google's content */
.scr .scr-reply {
	background: var(--scr-reply);
	border-top: 3px solid var(--scr-blue);
	padding: 14px 20px 18px;
	color: var(--scr-ink);
}
.scr .scr-reply-label { margin: 0 0 4px; padding: 0; font-weight: 700; font-size: .9rem; line-height: 1.3; color: var(--scr-blue-ink); }
.scr .scr-reply-text { font-size: .9rem; line-height: 1.5; }

/* the link to Google */
.scr .scr-more { text-align: center; margin: 30px 0 0; padding: 0; }
.scr .scr-more-link {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	background: #fff;
	color: var(--scr-ink);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
	text-decoration: none;
}
.scr .scr-more-link:hover { text-decoration: underline; }
.scr .scr-credits { text-align: center; margin: 12px 0 0; font-weight: 700; font-size: 1.2rem; color: #fff; }
.scr .scr-credits a { color: #fff; text-decoration: underline; }

.scr a:focus-visible,
.scr .scr-toggle:focus-visible { outline: 3px solid var(--scr-blue); outline-offset: 2px; border-radius: 4px; }
.scr .scr-more-link:focus-visible { outline-color: #fff; outline-offset: 3px; border-radius: 999px; }

/* phones: one card at a time, with the edge of the next one showing */
@media (max-width: 680px) {
	.scr .scr-summary { border-radius: 18px; padding: 10px 16px 8px; row-gap: 4px; }
	.scr .scr-summary .scr-attr,
	.scr .scr-summary .scr-attr-logo { flex-basis: 100%; text-align: center; border-left: 0; padding-left: 0; }
	.scr .scr-summary .scr-attr-logo { flex-basis: auto; margin: 0 auto; }
	.scr .scr-list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 16px;
		gap: 14px;
		margin: 0 -16px;
		padding: 2px 16px 14px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	.scr .scr-card,
	.scr .scr-ghost { flex: 0 0 85%; max-width: none; scroll-snap-align: start; }
	.scr .scr-g { padding: 18px 18px 16px; }
	.scr .scr-reply { padding: 12px 18px 16px; }
}
