/*==========================================================================
Google Reviews
Self-hosted reviews panel styled to match the Google Business Profile UI.
Everything is scoped under .google-reviews so it cannot leak into the theme.
==========================================================================*/

.google-reviews {
	background: #fff;
	/* Google's own UI is Roboto/Arial, not the theme's body face. Matching it
	   is most of why these cards read as genuine Google review cards. */
	font-family: Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.google-reviews .gr-panel {
	max-width: 1240px;
	margin: 0 auto;
}

/*-------------------------------------------------- Headline rating */

.google-reviews .gr-head {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px 22px;
	margin-bottom: 34px;
}

.google-reviews .gr-score {
	font-size: 54px;
	line-height: 1;
	font-weight: 700;
	color: #202124;
	letter-spacing: -1px;
}

.google-reviews .gr-head-title {
	display: block;
	font-size: 26px;
	font-weight: 700;
	color: #202124;
	line-height: 1.2;
}

.google-reviews .gr-head-stars {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	letter-spacing: 2px;
}

.google-reviews .gr-head-count {
	font-size: 14px;
	color: #70757a;
	letter-spacing: normal;
}

.google-reviews .gr-btn {
	display: inline-block;
	margin-left: 12px;
	padding: 14px 30px;
	border-radius: 30px;
	background: #1a73e8;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background .25s;
}

.google-reviews .gr-btn:hover,
.google-reviews .gr-btn:focus {
	background: #1558b8;
	color: #fff;
	text-decoration: none;
}

/*-------------------------------------------------- Card grid */

/* Before Owl initialises, the cards are a plain horizontal row that simply
   clips -- no tall stack of every review while the page is still loading. */
.google-reviews .gr-carousel:not(.owl-loaded) {
	display: flex;
	gap: 20px;
	overflow: hidden;
}

.google-reviews .gr-carousel:not(.owl-loaded) .gr-card {
	flex: 0 0 300px;
}

/* Stretch the stage so every card in view shares the tallest one's height. */
.google-reviews .gr-carousel.owl-loaded .owl-stage {
	display: flex;
}

.google-reviews .gr-carousel.owl-loaded .owl-item {
	display: flex;
	float: none;
}

.google-reviews .gr-card {
	width: 100%;
	background: #f7f8fa;
	border-radius: 14px;
	padding: 20px 20px 16px;
	transition: box-shadow .25s;
}

.google-reviews .gr-card:hover {
	box-shadow: 0 2px 14px rgba(60, 64, 67, .16);
}

.google-reviews .gr-card-head {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 10px;
}

.google-reviews .gr-avatar-wrap {
	position: relative;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
}

.google-reviews .gr-avatar {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	line-height: 40px;
	text-align: center;
}

/* The little Google badge that sits over the bottom-left of the photo. */
.google-reviews .gr-gmark {
	position: absolute;
	left: -2px;
	bottom: -2px;
	width: 18px;
	height: 18px;
	padding: 2px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}

.google-reviews .gr-who {
	min-width: 0;
}

.google-reviews .gr-name {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #202124;
}

.google-reviews .gr-verified {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.google-reviews .gr-meta {
	display: block;
	margin-top: 1px;
	font-size: 13px;
	color: #70757a;
}

.google-reviews .gr-card-stars {
	margin-bottom: 9px;
	font-size: 17px;
	letter-spacing: 1px;
}

.google-reviews .gr-star {
	color: #dadce0;
}

.google-reviews .gr-star-on {
	color: #fbbc04;
}

.google-reviews .gr-body {
	font-size: 14px;
	line-height: 1.6;
	color: #3c4043;
	/* Clamped to keep the columns even; the Read more button below lifts it.
	   Without JS the clamp is simply removed, so no text is ever lost. */
	overflow: hidden;
}

.google-reviews .gr-body p {
	margin: 0 0 10px;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.google-reviews .gr-body p:last-child {
	margin-bottom: 0;
}

.google-reviews .gr-card.is-clamped .gr-body {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
}

.google-reviews .gr-more {
	display: block;
	margin-top: 5px;
	padding: 0;
	border: 0;
	background: none;
	color: #ea4335;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
}

.google-reviews .gr-more:hover {
	text-decoration: underline;
}

/*-------------------------------------------------- Summary card */

.google-reviews .gr-spark {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: linear-gradient(135deg, #8a63f5, #5b6df5);
}

.google-reviews .gr-spark svg {
	width: 21px;
	height: 21px;
}

.google-reviews .gr-name-ai {
	color: #6a4df0;
}

.google-reviews .gr-points {
	margin: 0;
	padding: 0;
	list-style: none;
}

.google-reviews .gr-points li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #3c4043;
}

.google-reviews .gr-points li:last-child {
	margin-bottom: 0;
}

.google-reviews .gr-points li::before {
	content: "\2714";
	position: absolute;
	left: 0;
	top: 0;
	color: #202124;
	font-size: 14px;
}

/*-------------------------------------------------- Carousel nav */

/* The theme's arrows, but sized down and centred under the cards.
   Owl 2.0.0-beta builds nav out of <div>s (navElement: "div"), not <button>s,
   so these selectors must stay element-agnostic and set display themselves. */
.google-reviews .gr-carousel .owl-nav {
	margin-top: 22px;
	text-align: center;
}

.google-reviews .gr-carousel .owl-nav .owl-prev,
.google-reviews .gr-carousel .owl-nav .owl-next {
	display: inline-block;
	vertical-align: middle;
	width: 42px;
	height: 42px;
	margin: 0 6px;
	padding: 0;
	border: 0;
	cursor: pointer;
	border-radius: 50%;
	background: #f1f3f4;
	color: #3c4043;
	font-size: 14px;
	line-height: 42px;
	transition: background .25s, color .25s;
}

.google-reviews .gr-carousel .owl-nav .owl-prev:hover,
.google-reviews .gr-carousel .owl-nav .owl-next:hover {
	background: #1a73e8;
	color: #fff;
}

.google-reviews .gr-carousel .owl-dots {
	margin-top: 18px;
	text-align: center;
}

.google-reviews .gr-carousel .owl-dots .owl-dot span {
	width: 8px;
	height: 8px;
	margin: 0 4px;
	background: #dadce0;
	border-radius: 50%;
	display: inline-block;
}

.google-reviews .gr-carousel .owl-dots .owl-dot.active span {
	background: #1a73e8;
}

/*-------------------------------------------------- Responsive */

@media (max-width: 991px) {
	.google-reviews .gr-score {
		font-size: 44px;
	}

	.google-reviews .gr-head-title {
		font-size: 22px;
	}
}

@media (max-width: 575px) {
	.google-reviews .gr-head {
		gap: 12px;
	}

	.google-reviews .gr-btn {
		margin-left: 0;
		padding: 12px 24px;
	}

	.google-reviews .gr-card {
		padding: 18px;
	}
}
