

/* ----- Wrapper ----- */
.rewind-reviews-wrapper {
	position: relative;
	width: 100%;
}

/* ===================== SLIDER ===================== */
.rewind-layout-slider {
	overflow: hidden;
}

.rewind-slider-track {
	display: flex;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
	align-items: stretch;
}

.rewind-slide-item {
	flex-shrink: 0;
	box-sizing: border-box;
	display: flex;
}

/* ===================== LIST ======================= */
.rewind-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rewind-list .rewind-slide-item {
	width: 100%;
}

/* ===================== GRID ======================= */
.rewind-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.rewind-grid .rewind-slide-item {
	width: 100%;
}

/* ===================== CARD ======================= */
.rewind-review-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	height: 100%;
}

/* ----- Card header ----- */
.rewind-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rewind-author-photo {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

a .rewind-author-photo {
	text-decoration: none;
}

.rewind-initials {
	background: #0073aa;
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rewind-author-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rewind-author-name {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rewind-review-date {
	font-size: 12px;
	color: #999999;
}

.rewind-google-logo {
	flex-shrink: 0;
	line-height: 0;
	margin-left: auto;
}

/* ----- Stars ----- */
.rewind-stars {
	display: flex;
	gap: 2px;
	font-size: 16px;
	line-height: 1;
}

.rewind-star.filled { color: #f4b400; }
.rewind-star.empty  { color: #dddddd; }

/* ----- Review text ----- */
.rewind-review-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #444444;
	flex: 1;
}

/* ----- Read more ----- */
.rewind-read-more {
	font-size: 13px;
	color: #0073aa;
	text-decoration: none;
	margin-top: auto;
	align-self: flex-start;
}

.rewind-read-more:hover {
	text-decoration: underline;
}

/* ============== SLIDER NAVIGATION ================ */
.rewind-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0,0,0,.10);
	transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
	outline: none;
}

.rewind-arrow:hover {
	background: #f9f9f9;
	box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.rewind-arrow:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.rewind-arrow svg {
	display: block;
	fill: #333333;
}

.rewind-prev { left:  -20px; }
.rewind-next { right: -20px; }

/* ================= DOT PAGINATION ================ */
.rewind-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
}

.rewind-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #dddddd;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.25s, transform 0.25s;
	outline: none;
}

.rewind-dot.active {
	background: #0073aa;
	transform: scale(1.4);
}

.rewind-dot:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* =================== RESPONSIVE ================== */
@media (max-width: 1024px) {
	.rewind-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.rewind-grid { grid-template-columns: 1fr; }
	.rewind-prev { left:  -10px; }
	.rewind-next { right: -10px; }
}

/* Editor-only placeholder shown when no reviews have been synced yet. */
.rewind-empty-notice {
	padding: 40px;
	text-align: center;
	color: #999;
	border: 2px dashed #ddd;
	border-radius: 8px;
}
