/* ============================================================
   Google Reviews Slider — frontend styles
   ============================================================ */

.grs-widget {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #333;
	max-width: 100%;
	box-sizing: border-box;
	padding: 20px 0;
}

/* ---- Header ---- */
.grs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
	padding: 14px 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.grs-header-left {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.grs-photo-link {
	display: flex;
	flex-shrink: 0;
}

.grs-place-photo {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid #e8e8e8;
	display: block;
}

.grs-header-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.grs-place-name {
	font-size: 15px;
	font-weight: 600;
	color: #1a73e8;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
}
.grs-place-name:hover {
	text-decoration: underline;
}

.grs-header-rating {
	display: flex;
	align-items: center;
	gap: 6px;
}

.grs-score {
	font-size: 22px;
	font-weight: 700;
	color: #222;
	line-height: 1;
}

.grs-stars-row {
	font-size: 18px;
	line-height: 1;
}

.grs-count {
	font-size: 13px;
	color: #777;
}

.grs-google-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.grs-google-logo svg {
	display: block;
}

.grs-google-logo a {
	display: flex;
	align-items: center;
	opacity: .85;
	transition: opacity .2s;
}
.grs-google-logo a:hover {
	opacity: 1;
}

/* ---- Stars ---- */
.grs-star {
	font-style: normal;
}
.grs-star-filled { color: #f5a623; }
.grs-star-empty  { color: #ddd; }

/* ---- Slider outer ---- */
.grs-slider-outer {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.grs-slider-viewport {
	overflow: hidden;
	flex: 1;
	padding-bottom: 12px;
	margin-bottom: -12px;
}

.grs-slider-track {
	display: flex;
	transition: transform .4s cubic-bezier(.25,.46,.45,.94);
	will-change: transform;
}

/* ---- Slides ---- */
.grs-slide {
	flex: 0 0 var(--grs-slide-width, 33.333%);
	box-sizing: border-box;
	padding: 0 8px;
}

@media (max-width: 900px) {
	.grs-slide { flex: 0 0 50%; }
}
@media (max-width: 580px) {
	.grs-slide { flex: 0 0 100%; }
}

/* ---- Card ---- */
.grs-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	padding: 20px;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: box-shadow .2s;
}
.grs-card:hover {
	box-shadow: 0 4px 24px rgba(0,0,0,.13);
}

.grs-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.grs-reviewer {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.grs-reviewer-photo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.grs-reviewer-initial {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #4285F4, #34A853);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.grs-reviewer-info {
	min-width: 0;
}

.grs-reviewer-name {
	font-weight: 600;
	font-size: 14px;
	color: #222;
	text-decoration: none;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.grs-reviewer-name:hover { text-decoration: underline; }

.grs-review-date {
	font-size: 12px;
	color: #999;
}

.grs-card-stars {
	font-size: 16px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ---- Review text ---- */
.grs-review-text-wrap {
	flex: 1;
}

.grs-review-text {
	font-size: 14px;
	line-height: 1.6;
	color: #444;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}
.grs-review-text.grs-expanded {
	-webkit-line-clamp: unset;
	display: block;
}

.grs-read-more {
	background: none;
	border: none;
	color: #4285F4;
	font-size: 13px;
	cursor: pointer;
	padding: 4px 0 0;
	display: inline-block;
}
.grs-read-more:hover { text-decoration: underline; }

/* ---- Card footer ---- */
.grs-card-footer {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #aaa;
	margin-top: auto;
	padding-top: 8px;
	border-top: 1px solid #f0f0f0;
}

/* ---- Arrows ---- */
.grs-arrow {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,.1);
	transition: background .2s, box-shadow .2s;
	color: #444;
}
.grs-arrow:hover {
	background: #f5f5f5;
	box-shadow: 0 3px 12px rgba(0,0,0,.15);
}
.grs-arrow:disabled {
	opacity: .35;
	cursor: default;
}

