/* ============================================================
   Google Reviews Carousel – Base Styles
   Note: Colors, border-radius, gap, and font-family are
   overridden by dynamic inline CSS from admin settings.
   ============================================================ */

/* Wrapper */
.grc-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding: 40px 0;
	/* Fallback – overridden by inline styles */
	background: linear-gradient(135deg, #e8c4b8 0%, #d4a89a 50%, #e0b5a8 100%);
}

/* Track – horizontal scroll */
.grc-track {
	display: flex;
	gap: 24px;
	padding: 0 24px;
	will-change: transform;
	cursor: grab;
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
}

.grc-track.is-dragging {
	cursor: grabbing;
}

/* Card */
.grc-card {
	position: relative;
	flex: 0 0 380px;
	max-width: 380px;
	background: #fff;
	border-radius: 16px;
	padding: 28px 24px 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	overflow: hidden;
}

.grc-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

/* Google icon */
.grc-card-google-icon {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 28px;
	height: 28px;
	opacity: 0.85;
}

.grc-card-google-icon svg {
	width: 100%;
	height: 100%;
}

/* Header: avatar + meta */
.grc-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

/* Avatar */
.grc-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background-color: #ddd;
}

.grc-avatar-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #3b82f6;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}

/* Meta block */
.grc-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.grc-name {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

.grc-rating-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Stars */
.grc-stars {
	display: flex;
	gap: 1px;
}

.grc-star {
	font-size: 16px;
	line-height: 1;
}

.grc-star-filled {
	color: #f5b731;
}

.grc-star-empty {
	color: #d0d0d0;
}

/* Date */
.grc-date {
	font-size: 13px;
	color: #777;
}

/* Body text */
.grc-card-body {
	max-height: 140px;
	overflow-y: auto;
}

.grc-text {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	margin: 0;
}

/* Error message (admins only) */
.grc-error {
	color: #b91c1c;
	text-align: center;
	padding: 20px;
}

/* Custom scrollbar for review text */
.grc-card-body::-webkit-scrollbar {
	width: 4px;
}

.grc-card-body::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
	.grc-card {
		flex: 0 0 300px;
		max-width: 300px;
		padding: 22px 18px 18px;
	}

	.grc-wrapper {
		padding: 28px 0;
	}

	.grc-track {
		gap: 16px;
		padding: 0 16px;
	}
}

@media (max-width: 480px) {
	.grc-card {
		flex: 0 0 270px;
		max-width: 270px;
	}
}
