/* ─────────────────────────────────────────────
   ICW Google Reviews Widget
   ───────────────────────────────────────────── */

.icw-google-review,
.icw-google-review * {
	box-sizing: border-box;
}
.icw-google-review {
	background: #fff;
	width: 100%;
	overflow: hidden;
}
.icw-gr-inner {
	max-width: 1340px;
	margin: 0 auto;
}

/* ── Header Bar ─────────────────────────────── */
.icw-gr-header-wrap {
	padding: 0 55px;
}
.icw-gr-header {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 22px;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	margin-bottom: 24px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s;
}
.icw-gr-header:hover {
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}
.icw-gr-logo {
	display: block;
	width: 80px;
	height: auto;
	flex-shrink: 0;
}
.icw-gr-logo svg {
	display: block;
	width: 100%;
	height: auto;
}
.icw-gr-header-stars {
	color: #f9ab00;
	font-size: 22px;
	line-height: 1;
	letter-spacing: 2px;
}
.icw-gr-header-count {
	color: #444;
	font-size: 15px;
	font-weight: 500;
}

/* ── Slider Wrapper ──────────────────────────── */
.icw-gr-slider-wrap {
	position: relative;
	width: 100%;
}
.icw-gr-has-arrows {
	padding: 0 55px;
}

/* ── Carousel ────────────────────────────────── */
.icw-gr-viewport {
	overflow: hidden;
	width: 100%;
}
.icw-gr-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 20px;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

/* Card widths via CSS custom props (set inline on slider-wrap or computed via JS) */
.icw-gr-mode-carousel .icw-gr-card {
	min-width: 0;
}

/* ── Arrows ──────────────────────────────────── */
.icw-gr-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	border: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
	color: #333;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.icw-gr-arrow:hover {
	background: #4285f4;
	color: #fff;
}
.icw-gr-arrow:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}
.icw-gr-arrow-prev { left: 0; }
.icw-gr-arrow-next { right: 0; }

/* ── Marquee ─────────────────────────────────── */
.icw-gr-marquee {
	display: flex;
	overflow: hidden;
	width: 100%;
}
.icw-gr-marquee-inner {
	display: flex;
	flex-shrink: 0;
	gap: 20px;
	animation: icw-marquee-scroll var(--icw-marquee-dur, 30s) linear infinite;
	animation-direction: var(--icw-marquee-dir, normal);
}
.icw-gr-pause-hover:hover .icw-gr-marquee-inner {
	animation-play-state: paused;
}
@keyframes icw-marquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-100%); }
}
.icw-gr-mode-marquee .icw-gr-card {
	flex: 0 0 300px;
	width: 300px;
}

/* ── Review Card ─────────────────────────────── */
.icw-gr-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 20px;
	transition: box-shadow 0.2s;
}
.icw-gr-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Card top row */
.icw-gr-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.icw-gr-meta {
	flex: 1;
	min-width: 0;
}
.icw-gr-name-row {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 2px;
}
.icw-gr-name {
	font-weight: 700;
	font-size: 14px;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.icw-gr-date {
	font-size: 12px;
	color: #777;
}

/* Avatar */
.icw-gr-avatar {
	display: block;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e0e0e0;
}
.icw-gr-avatar-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #4285f4;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}

/* Verified badge */
.icw-gr-verified {
	display: inline-flex;
	align-items: center;
	width: 14px;
	height: 14px;
	color: #4285f4;
	flex-shrink: 0;
}
.icw-gr-verified svg {
	width: 100%;
	height: 100%;
}

/* Google G badge */
.icw-gr-card-g {
	display: flex;
	align-items: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	margin-left: auto;
}
.icw-gr-card-g svg,
.icw-gr-card-g img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Stars */
.icw-gr-stars-row {
	margin-bottom: 10px;
}
.icw-gr-stars {
	color: #f9ab00;
	font-size: 16px;
	letter-spacing: 1px;
	line-height: 1;
}

/* Review text */
.icw-gr-text {
	margin: 0 0 12px;
	color: #444;
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	flex: 1;
}

/* Read more */
.icw-gr-read-more {
	display: inline-block;
	margin-top: auto;
	color: #4285f4;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.18s;
}
.icw-gr-read-more:hover {
	color: #1a73e8;
	text-decoration: underline;
}

/* ── Button ──────────────────────────────────── */
.icw-gr-button-wrap {
	padding: 0 55px;
	margin-top: 40px;
	text-align: center;
}
.icw-gr-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 40px;
	border-radius: 4px;
	background: #2a7fc1;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	transition: background 0.25s, box-shadow 0.25s, color 0.25s, transform 0.25s;
}
.icw-gr-button:hover {
	filter: brightness(0.92);
}
.icw-gr-button svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
.icw-gr-btn-icon {
	display: inline-flex;
	align-items: center;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
	.icw-gr-has-arrows {
		padding: 0 50px;
	}
}
@media (max-width: 767px) {
	.icw-gr-has-arrows {
		padding: 0 40px;
	}
	.icw-gr-header-wrap,
	.icw-gr-button-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}
	.icw-gr-arrow-prev { left: 0; }
	.icw-gr-arrow-next { right: 0; }
}
