/* =============================================================================
   Puro Google Reviews — Frontend CSS
   ========================================================================== */

/* ── 1. Slider wrapper ──────────────────────────────────────────────────────── */

.pgr-slider-wrap {
	display: flex;
	gap: 20px;
	overflow: hidden;
	/* Default height — override per page with e.g. style="height:800px" or custom CSS */
	height: 700px;
}

/* ── 2. Columns ─────────────────────────────────────────────────────────────── */

.pgr-column {
	flex: 1;
	overflow: hidden;
	position: relative;
}

/* ── 3. Scrolling track ─────────────────────────────────────────────────────── */

.pgr-track {
	display: flex;
	flex-direction: column;
	gap: 16px;
	will-change: transform;
}

/* Column 1 scrolls downward */
.pgr-column--down .pgr-track {
	animation: pgr-scroll-down var(--pgr-speed, 30s) linear infinite;
}

/* Column 2 scrolls upward */
.pgr-column--up .pgr-track {
	animation: pgr-scroll-up var(--pgr-speed, 30s) linear infinite;
}

/* Pause on hover */
.pgr-slider-wrap:hover .pgr-track {
	animation-play-state: paused;
}

@keyframes pgr-scroll-down {
	from { transform: translateY(0); }
	to   { transform: translateY(-50%); }
}

@keyframes pgr-scroll-up {
	from { transform: translateY(-50%); }
	to   { transform: translateY(0); }
}

/* ── 4. Review card ─────────────────────────────────────────────────────────── */

.pgr-card {
	border-radius: var(--Corner-radius-Buttons, 8px);
	border: 1px solid var(--color-goud-100, #E7CF9D);
	background: var(--color-goud-50, #FFF9EB);
	padding: 20px;
	flex-shrink: 0;
	box-sizing: border-box;
	margin-right: 1px;
}

.pgr-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	gap: 12px;
}

.pgr-card-stars .pgr-stars,
.pgr-stars {
	color: #CEAA5D;
	font-size: 1em;
	line-height: 1;
	display: inline-flex;
	gap: 2px;
}

.pgr-card-date {
	color: #888;
	font-size: 0.82em;
	white-space: nowrap;
	flex-shrink: 0;
}

.pgr-card-name {
	font-weight: 700;
	color: #1A1A1A;
	margin: 0 0 8px;
	font-size: 1em;
	padding-top: 0rem;
	line-height: 1.3;
}

.pgr-card-text {
	color: #3D3D3D;
	font-size: 0.875em;
	line-height: 1.55;

	/* 3-line clamp */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;

	margin-bottom: 14px;
}

.pgr-read-more {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #C4921A;
	font-weight: 600;
	font-size: 0.875em;
	font-family: inherit;
	text-decoration: none;
	line-height: 1.4;
}

.pgr-read-more:hover,
.pgr-read-more:focus {
	text-decoration: underline;
	outline: none;
}

/* ── 5. Aggregate shortcode spans ───────────────────────────────────────────── */

.pgr-rating {
	font-weight: 700;
}

.pgr-total-reviews {
	/* Inline; inherits parent styling */
}

/* ── 6. Popup overlay ───────────────────────────────────────────────────────── */

#pgr-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

#pgr-popup[hidden] {
	display: none;
}

.pgr-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.pgr-popup-modal {
	position: relative;
	background: #FDFAF5;
	border-radius: 16px;
	padding: 36px;
	max-width: 560px;
	width: calc(100% - 40px);
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
	animation: pgr-popup-in 0.22s ease;
}

@keyframes pgr-popup-in {
	from { opacity: 0; transform: scale(0.95) translateY(8px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pgr-popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 50%;
	font-size: 1.2em;
	line-height: 1;
	width: 32px;
	height: 32px;
	cursor: pointer;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.15s, color 0.15s;
}

.pgr-popup-close:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #1A1A1A;
}

.pgr-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.pgr-popup-date {
	color: #888;
	font-size: 0.85em;
}

.pgr-popup-name {
	font-weight: 700;
	color: #1A1A1A;
	margin: 0 0 16px;
	font-size: 1.15em;
}

.pgr-popup-text {
	color: #3D3D3D;
	font-size: 0.95em;
	line-height: 1.7;
	white-space: pre-wrap;
	margin: 0;
}


