/* Google Reviews: rating summary and reviews slider. Every class starts with fgr-. */

/* Stars ------------------------------------------------------------------ */

.fgr-stars {
	--fgr-star-size: 17px;
	--fgr-star-gap: 1px;
	--fgr-star-color: #f6bb06;
	--fgr-star-empty: #d9d9d9;
	display: inline-flex;
	align-items: center;
	gap: var(--fgr-star-gap);
	line-height: 1;
	vertical-align: middle;
}

.fgr-stars .fgr-star {
	position: relative;
	display: inline-block;
	width: var(--fgr-star-size);
	height: var(--fgr-star-size);
	flex: 0 0 auto;
}

.fgr-stars .fgr-star svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: var(--fgr-star-color);
}

.fgr-stars .fgr-star--empty svg,
.fgr-stars .fgr-star--half > svg {
	fill: var(--fgr-star-empty);
}

.fgr-stars .fgr-star__half {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	overflow: hidden;
}

.fgr-stars .fgr-star__half svg {
	width: var(--fgr-star-size);
	fill: var(--fgr-star-color);
}

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

/* Rating summary ------------------------------------------------------------- */

.fgr-rating,
.fgr-rating__link {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px;
	color: #000;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
}

.fgr-rating__link {
	flex: 1 1 100%;
	flex-direction: inherit;
	align-items: inherit;
	justify-content: inherit;
	gap: inherit;
	color: inherit;
	text-decoration: none;
}

.fgr-rating .fgr-rating__label {
	font-weight: 600;
	text-transform: uppercase;
}

.fgr-rating .fgr-rating__value {
	font-weight: 600;
}

.fgr-rating .fgr-rating__stars {
	--fgr-star-size: 30px;
}

.fgr-rating .fgr-rating__count strong {
	font-weight: 600;
}

.fgr-rating .fgr-rating__logo {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.fgr-rating .fgr-rating__logo-img {
	display: block;
	width: 110px;
	max-width: 100%;
	height: auto;
}

.fgr-wordmark {
	display: inline-block;
	font-family: "Product Sans", Arial, Helvetica, sans-serif;
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1;
}

.fgr-wordmark .fgr-wordmark__blue { color: #4285f4; }
.fgr-wordmark .fgr-wordmark__red { color: #ea4335; }
.fgr-wordmark .fgr-wordmark__yellow { color: #fbbc05; }
.fgr-wordmark .fgr-wordmark__green { color: #34a853; }

/* Slider --------------------------------------------------------------------- */

.fgr-slider {
	--fgr-cols: 3;
	--fgr-gap: 16px;
	--fgr-min: 280px;
	--fgr-arrow-size: 30px;
	--fgr-arrow-gap: 10px;
	position: relative;
	color: #000;
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
}

.fgr-slider.fgr-cols-1 { --fgr-cols: 1; }
.fgr-slider.fgr-cols-2 { --fgr-cols: 2; }
.fgr-slider.fgr-cols-3 { --fgr-cols: 3; }
.fgr-slider.fgr-cols-4 { --fgr-cols: 4; }
.fgr-slider.fgr-cols-5 { --fgr-cols: 5; }
.fgr-slider.fgr-cols-6 { --fgr-cols: 6; }

/* The arrows sit outside the cards, in the side space of the stage. */
.fgr-slider .fgr-slider__stage {
	position: relative;
}

.fgr-slider.fgr-slider--arrows .fgr-slider__stage {
	padding: 0 calc((var(--fgr-arrow-size) + var(--fgr-arrow-gap)) * var(--fgr-arrows-on, 1));
}

/* Arrows and dots per device: the widget sets these variables for each breakpoint.
   One class only, so the widget settings of tablet and mobile win over it. */
.fgr-arrows-hidden {
	--fgr-arrows-display: none;
	--fgr-arrows-on: 0;
}

.fgr-dots-hidden {
	--fgr-dots-display: none;
}

.fgr-slider.fgr-slider--arrows.is-static .fgr-slider__stage {
	padding: 0;
}

.fgr-slider .fgr-slider__track {
	display: flex;
	gap: var(--fgr-gap);
	margin: -12px -6px;
	padding: 12px 6px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 6px;
	scrollbar-width: none;
}

.fgr-slider .fgr-slider__track::-webkit-scrollbar {
	display: none;
}

.fgr-slider .fgr-slider__track:focus-visible {
	outline: 2px solid #4285f4;
	outline-offset: 2px;
}

/* Without the script: as many columns as set, never narrower than the minimum width.
   The script sets --fgr-visible to the number of whole cards that fit. */
.fgr-slider .fgr-card {
	flex: 0 0 max(
		calc((100% - (var(--fgr-visible, var(--fgr-cols)) - 1) * var(--fgr-gap)) / var(--fgr-visible, var(--fgr-cols))),
		min(var(--fgr-min), 100%)
	);
	min-width: 0;
	scroll-snap-align: start;
}

.fgr-slider.is-ready .fgr-card {
	flex-basis: calc((100% - (var(--fgr-visible, 1) - 1) * var(--fgr-gap)) / var(--fgr-visible, 1));
}

.fgr-card .fgr-card__inner {
	box-sizing: border-box;
	height: 100%;
	padding: 20px;
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 1px 4px 10px 0 rgba(0, 0, 0, 0.1), 0 0 2px 0 rgba(0, 0, 0, 0.05);
}

.fgr-shadow-none .fgr-card .fgr-card__inner {
	box-shadow: none;
}

.fgr-card .fgr-card__header {
	display: flex;
	align-items: center;
	gap: 15px;
}

.fgr-card {
	--fgr-photo-size: 40px;
}

.fgr-card .fgr-card__photo {
	flex: 0 0 auto;
	width: var(--fgr-photo-size);
	height: var(--fgr-photo-size);
}

.fgr-card .fgr-card__photo img,
.fgr-card .fgr-initial {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.fgr-initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
}

.fgr-card .fgr-initial {
	display: flex;
	font-size: calc(var(--fgr-photo-size) * 0.45);
}

.fgr-initial--0 { background-color: #c2185b; }
.fgr-initial--1 { background-color: #7b1fa2; }
.fgr-initial--2 { background-color: #303f9f; }
.fgr-initial--3 { background-color: #00796b; }
.fgr-initial--4 { background-color: #b23c17; }
.fgr-initial--5 { background-color: #5d4037; }
.fgr-initial--6 { background-color: #455a64; }
.fgr-initial--7 { background-color: #2e7d32; }

.fgr-card .fgr-card__meta {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.fgr-card .fgr-card__name {
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fgr-card .fgr-card__date {
	color: #6b6b6b;
	font-size: 13px;
	line-height: 1.4;
}

.fgr-card .fgr-card__source {
	flex: 0 0 auto;
	align-self: flex-start;
	line-height: 0;
}

.fgr-card .fgr-google-g {
	width: 20px;
	height: 20px;
}

.fgr-card .fgr-card__rating {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 11px 0;
}

.fgr-verified {
	--fgr-verified-color: #4285f4;
	display: inline-flex;
	line-height: 0;
}

.fgr-verified .fgr-verified__icon circle {
	fill: var(--fgr-verified-color);
}

.fgr-verified .fgr-verified__icon path {
	stroke: #fff;
}

.fgr-card .fgr-card__text {
	--fgr-lines: 4;
	display: -webkit-box;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--fgr-lines);
	line-clamp: var(--fgr-lines);
}

.fgr-card .fgr-card__text p {
	margin: 0 0 0.6em;
}

.fgr-card .fgr-card__text p:last-child {
	margin-bottom: 0;
}

.fgr-card .fgr-lines-0,
.fgr-card .fgr-card__text.is-expanded {
	display: block;
	-webkit-line-clamp: none;
	line-clamp: none;
}

/* Read more: the height slides open and closed (set by slider.js). */
.fgr-card .fgr-card__text.is-animating {
	overflow: hidden;
	transition: height 0.35s ease;
}

.fgr-card .fgr-lines-1 { --fgr-lines: 1; }
.fgr-card .fgr-lines-2 { --fgr-lines: 2; }
.fgr-card .fgr-lines-3 { --fgr-lines: 3; }
.fgr-card .fgr-lines-4 { --fgr-lines: 4; }
.fgr-card .fgr-lines-5 { --fgr-lines: 5; }
.fgr-card .fgr-lines-6 { --fgr-lines: 6; }
.fgr-card .fgr-lines-7 { --fgr-lines: 7; }
.fgr-card .fgr-lines-8 { --fgr-lines: 8; }
.fgr-card .fgr-lines-9 { --fgr-lines: 9; }
.fgr-card .fgr-lines-10 { --fgr-lines: 10; }
.fgr-card .fgr-lines-11 { --fgr-lines: 11; }
.fgr-card .fgr-lines-12 { --fgr-lines: 12; }

.fgr-card .fgr-card__more {
	display: inline-block;
	margin: 0;
	padding: 8px 0 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #000;
	cursor: pointer;
	font: inherit;
	font-size: 13.5px;
	line-height: 1.4;
	opacity: 0.75;
	text-decoration: none;
	text-transform: none;
}

.fgr-card .fgr-card__more:hover,
.fgr-card .fgr-card__more:focus-visible {
	background: none;
	color: inherit;
	opacity: 1;
	text-decoration: underline;
}

.fgr-card .fgr-card__more[hidden] {
	display: none;
}

/* Arrows and dots */

.fgr-slider .fgr-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: var(--fgr-arrows-display, flex);
	align-items: center;
	justify-content: center;
	width: var(--fgr-arrow-size);
	height: var(--fgr-arrow-size);
	margin: calc(var(--fgr-arrow-size) / -2) 0 0;
	padding: 0;
	background-color: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	color: #333;
	cursor: pointer;
	line-height: 0;
	transition: opacity 0.2s;
}

.fgr-slider .fgr-slider__arrow svg {
	width: 55%;
	height: 55%;
	stroke: currentColor;
}

.fgr-slider .fgr-slider__arrow--prev {
	left: 0;
}

.fgr-slider .fgr-slider__arrow--next {
	right: 0;
}

.fgr-slider .fgr-slider__arrow--next svg {
	transform: scaleX(-1);
}

.fgr-slider .fgr-slider__arrow:hover {
	background-color: #fff;
	color: #000;
}

.fgr-slider .fgr-slider__arrow:focus-visible {
	outline: 2px solid #4285f4;
	outline-offset: 2px;
}

.fgr-slider .fgr-slider__arrow[disabled] {
	cursor: default;
	opacity: 0.35;
}

.fgr-slider.is-static .fgr-slider__arrow,
.fgr-slider.is-static .fgr-slider__dots {
	display: none;
}

.fgr-slider .fgr-slider__dots {
	display: var(--fgr-dots-display, flex);
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.fgr-slider .fgr-slider__dot {
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	background-color: #c4c4c4;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.fgr-slider .fgr-slider__dot.is-active {
	background-color: #333;
}

@media (prefers-reduced-motion: reduce) {
	.fgr-slider .fgr-slider__track {
		scroll-behavior: auto;
	}

	.fgr-card .fgr-card__text.is-animating {
		transition: none;
	}
}

/* Message for administrators when there is nothing to show */

.fgr-empty {
	padding: 12px 16px;
	background-color: #fff8e5;
	border-left: 4px solid #dba617;
	color: #1d2327;
	font-size: 14px;
}
