/* CWS Google Reviews — testimonial carousel */

.cws-gr {
	--cws-gr-navy: #042c53;
	--cws-gr-cyan: #00aeef;
	--cws-gr-blue: #0072bc;
	--cws-gr-muted: #8a94a6;
	--cws-gr-body: #4a5568;
	--cws-gr-star: #f5b301;
	--cws-gr-gap: 24px;
	--cws-gr-per-view: 3;
	font-family: inherit;
}

.cws-gr__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}

.cws-gr__titles {
	flex: 1;
	text-align: center;
}

.cws-gr__eyebrow {
	margin: 0 0 8px;
	color: var(--cws-gr-cyan);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cws-gr__heading {
	margin: 0;
	color: var(--cws-gr-navy);
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 700;
	line-height: 1.15;
}

.cws-gr__badge {
	margin: 12px 0 0;
	color: var(--cws-gr-body);
	font-size: 15px;
}

.cws-gr__badge-stars {
	color: var(--cws-gr-star);
	margin-right: 6px;
	letter-spacing: 2px;
}

.cws-gr__nav {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.cws-gr__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	border: 1px solid #e3e9f0;
	background: #ffffff;
	color: var(--cws-gr-navy);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(4, 44, 83, 0.08);
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.cws-gr__arrow--next {
	background: var(--cws-gr-cyan);
	border-color: var(--cws-gr-cyan);
	color: #ffffff;
}

.cws-gr__arrow:hover:not(:disabled) {
	background: var(--cws-gr-blue);
	border-color: var(--cws-gr-blue);
	color: #ffffff;
}

.cws-gr__arrow:focus-visible {
	outline: 2px solid var(--cws-gr-blue);
	outline-offset: 2px;
}

.cws-gr__arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.cws-gr__viewport {
	overflow: hidden;
}

/* High specificity + !important on the resets only: themes commonly style
   `.entry-content ul` / `ul li` with bullets and padding, which leaks into
   the carousel list. Visual styles below stay overridable via Elementor. */
ul.cws-gr__track {
	display: flex;
	gap: var(--cws-gr-gap);
	list-style: none !important;
	margin: 0 !important;
	padding: 4px !important; /* room for card shadow */
	transition: transform 0.45s ease;
	will-change: transform;
}

ul.cws-gr__track > li.cws-gr__card {
	list-style: none !important;
	margin: 0 !important;
}

.cws-gr__card::marker {
	content: none;
}

.cws-gr__card {
	flex: 0 0 calc((100% - (var(--cws-gr-per-view) - 1) * var(--cws-gr-gap)) / var(--cws-gr-per-view));
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(4, 44, 83, 0.07);
	padding: 24px;
	box-sizing: border-box;
}

.cws-gr__card-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.cws-gr__glogo {
	display: inline-flex;
	flex-shrink: 0;
}

.cws-gr__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.cws-gr__author {
	color: var(--cws-gr-navy);
	font-weight: 700;
	font-size: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cws-gr__location {
	color: var(--cws-gr-muted);
	font-size: 13px;
}

.cws-gr__stars {
	color: var(--cws-gr-star);
	font-size: 15px;
	letter-spacing: 2px;
	flex-shrink: 0;
}

.cws-gr__text {
	margin: 0;
	color: var(--cws-gr-body);
	font-size: 15px;
	line-height: 1.6;
}

.cws-gr-empty {
	padding: 24px;
	border: 1px dashed #c6d2e0;
	border-radius: 8px;
	color: #4a5568;
	text-align: center;
}

@media (max-width: 1024px) {
	.cws-gr {
		--cws-gr-per-view: 2;
	}
}

@media (max-width: 640px) {
	.cws-gr {
		--cws-gr-per-view: 1;
	}

	.cws-gr__header {
		flex-direction: column;
		align-items: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	ul.cws-gr__track {
		transition: none;
	}
}

/* Read more link inside a card */
.cws-gr__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	vertical-align: baseline;
	border: 0;
	padding: 0;
	margin-left: 4px;
	background: none;
	color: var(--cws-gr-cyan);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cws-gr__more-icon {
	display: inline-flex;
	line-height: 1;
}

.cws-gr__more-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.cws-gr__more:hover {
	color: var(--cws-gr-blue);
}

.cws-gr__more:focus-visible {
	outline: 2px solid var(--cws-gr-blue);
	outline-offset: 2px;
}

.cws-gr__full[hidden] {
	display: none !important;
}

/* Full review popup */
.cws-gr-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cws-gr-modal[hidden] {
	display: none !important;
}

.cws-gr-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(4, 44, 83, 0.55);
}

.cws-gr-modal__dialog {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(4, 44, 83, 0.3);
	max-width: 560px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	padding: 28px;
	box-sizing: border-box;
}

.cws-gr-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: #eef3f8;
	color: var(--cws-gr-navy, #042c53);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.cws-gr-modal__close:hover {
	background: #e0e9f2;
}

.cws-gr-modal__close:focus-visible {
	outline: 2px solid #0072bc;
	outline-offset: 2px;
}

.cws-gr-modal__top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-right: 40px;
}

.cws-gr-modal__author {
	color: #042c53;
	font-weight: 700;
	font-size: 17px;
	display: block;
}

.cws-gr-modal__location {
	color: #8a94a6;
	font-size: 13px;
	display: block;
}

.cws-gr-modal__stars {
	color: #f5b301;
	font-size: 16px;
	letter-spacing: 2px;
	margin-left: auto;
}

.cws-gr-modal__text {
	margin: 0;
	color: #4a5568;
	font-size: 15px;
	line-height: 1.7;
	white-space: pre-line;
}
