/* Google Reviews Widget - MattressClean Theme */
.google-reviews-widget {
	max-width: 1300px;
	margin: 0 auto;
	padding: 55px 5px;
	font-family: var(--font-primary);
}

/* Header */
.google-header {
	text-align: center;
	margin-bottom: 38px;
}

.google-reviews-ptag {
	margin-bottom: 8px;
	font-family: var(--font-display);
	font-size: 34px;
	font-weight: 700;
	color: #0d2d45;
	line-height: 1.2;
}

.rating-box {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.rating-number {
	font-size: 26px;
	font-weight: 800;
	color: #0197B2;
}

.rating-stars {
	font-size: 20px;
	color: #FFC600;
	margin-left: 4px;
}

.google-total {
	margin-top: 6px;
	font-size: 15px;
	font-weight: 500;
	color: #444;
}

/* Desktop Grid */
.review-grid-container {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 992px) {
	.review-grid-container {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Review Card */
.review-card {
	position: relative;
	background: #ffffff;
	border-radius: 18px;
	padding: 18px;
	border: 1px solid rgba(1, 151, 178, 0.18);
	box-shadow: 0 12px 30px rgba(13, 45, 69, 0.08);
	transition: all 0.3s ease;
	height: 100%;
	overflow: hidden;
}

.review-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: #0197B2;
}

.review-card:hover {
	transform: translateY(-6px);
	border-color: rgba(1, 151, 178, 0.55);
	box-shadow: 0 18px 42px rgba(1, 151, 178, 0.16);
}

/* Profile */
.review-profile {
	display: flex;
	align-items: center;
	margin-bottom: 14px;
}

.avatar-dynamic {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0197B2 !important;
	color: #ffffff;
	font-weight: 800;
	font-size: 20px;
	box-shadow: 0 8px 18px rgba(1, 151, 178, 0.24);
	border: 2px solid #FFC600;
	transition: all 0.3s ease;
	margin-right: 14px;
	flex-shrink: 0;
}

.avatar-dynamic:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(1, 151, 178, 0.30);
}

.review-user-info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.review-author {
	font-size: 15px;
	font-weight: 700;
	color: #0d2d45;
	margin-bottom: 3px;
	letter-spacing: -0.2px;
}

.review-time {
	font-size: 13px;
	color: #666;
	opacity: 0.9;
	font-weight: 500;
}

/* Stars */
.review-stars {
	color: #FFC600;
	font-size: 19px;
	margin-bottom: 10px;
	letter-spacing: 1px;
}

.filled-star {
	color: #FFC600;
}

.empty-star {
	color: rgba(13, 45, 69, 0.22);
}

/* Review Text */
.review-text {
	font-size: 15px;
	line-height: 1.65;
	color: #333;
	max-height: calc(1.65em * 5);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
}

/* Button */
.google-link {
	text-align: center;
	margin-top: 38px;
}

.reviewsbtn {
	background: #0197B2 !important;
	color: #ffffff !important;
	border: 1px solid #0197B2;
	border-radius: 50px;
	padding: 12px 26px;
	font-weight: 600;
	transition: all 0.3s ease;
	text-decoration: none !important;
}

.reviewsbtn:hover,
.reviewsbtn:focus {
	background: #FFC600;
	color: #0d2d45 !important;
	border-color: #FFC600;
}

/* Mobile Slider */
.carousel-item {
	padding: 10px;
}

#mobileReviews {
	padding-left: 38px;
	padding-right: 38px;
}

/* Carousel Arrows */
.review-control-btn {
	align-items: center;
	background: #0197B2;
	border: 2px solid #FFC600;
	border-radius: 50%;
	box-shadow: 0 10px 24px rgba(1, 151, 178, 0.22);
	color: #ffffff;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	opacity: 1;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	transition: all 0.3s ease;
}

.review-control-btn:hover,
.review-control-btn:focus {
	background: #FFC600;
	color: #0d2d45;
	border-color: #FFC600;
	opacity: 1;
}

.review-control-btn i {
	font-size: 14px;
	line-height: 1;
}

/* Mobile Responsive */
@media screen and (max-width: 700px) {
	.google-reviews-widget {
		padding: 40px 0;
	}

	.google-header {
		margin-bottom: 24px;
	}

	.google-reviews-ptag {
		font-size: 28px;
	}

	.review-card {
		padding: 16px;
		border-radius: 16px;
	}

	.reviewsbtn {
		font-size: 15px;
		padding: 11px 22px;
	}

	.rating-stars {
		font-size: 18px;
	}

	.rating-number {
		font-size: 22px;
	}

	.google-total {
		font-size: 14px;
	}

	.avatar-dynamic {
		width: 46px;
		height: 46px;
		font-size: 18px;
		margin-right: 12px;
	}

	.review-control-btn {
		width: 30px;
		height: 30px;
	}

	#mobileReviews {
		padding-left: 34px;
		padding-right: 34px;
	}
}