/* RevRelay Frontend Styles */
.revrelay-reviews-container {
	margin-top: 30px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1e293b;
}

/* Star Rating Outer / Inner Bar */
.revrelay-stars-outer {
	display: inline-block;
	position: relative;
	font-family: serif;
	font-size: 20px;
	letter-spacing: 2px;
	color: #e2e8f0;
}
.revrelay-stars-outer::before {
	content: "★★★★★";
}
.revrelay-stars-inner {
	position: absolute;
	top: 0;
	left: 0;
	white-space: nowrap;
	overflow: hidden;
	color: #f59e0b;
}
.revrelay-stars-inner::before {
	content: "★★★★★";
}

/* Star badge for loop/header */
.revrelay-star-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0;
}
.revrelay-star-badge .revrelay-stars-outer {
	font-size: 16px;
}
.revrelay-badge-rating {
	font-weight: 700;
	font-size: 14px;
	color: #0f172a;
}
.revrelay-badge-count {
	font-size: 13px;
	color: #64748b;
}

/* Rating Summary Breakdown Grid */
.revrelay-summary-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}
.revrelay-score-col {
	text-align: center;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-right: 1px solid #e2e8f0;
	padding-right: 24px;
}
@media (max-width: 640px) {
	.revrelay-score-col {
		border-right: none;
		border-bottom: 1px solid #e2e8f0;
		padding-right: 0;
		padding-bottom: 16px;
		width: 100%;
	}
}
.revrelay-score-number {
	font-size: 44px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
	margin-bottom: 8px;
}
.revrelay-score-sub {
	font-size: 13px;
	color: #64748b;
	margin-top: 6px;
}
.revrelay-bars-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}
.revrelay-bar-row {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
}
.revrelay-bar-label {
	width: 36px;
	color: #475569;
	font-weight: 500;
}
.revrelay-bar-track {
	flex: 1;
	height: 10px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}
.revrelay-bar-fill {
	height: 100%;
	background: #f59e0b;
	border-radius: 999px;
	transition: width 0.3s ease;
}
.revrelay-bar-pct {
	width: 28px;
	text-align: right;
	color: #64748b;
}

/* Filter Toolbar */
.revrelay-filter-toolbar {
	margin-bottom: 20px;
}
.revrelay-filter-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.revrelay-filter-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 13px;
	color: #334155;
	cursor: pointer;
	transition: all 0.15s ease;
}
.revrelay-filter-btn:hover {
	border-color: #2563eb;
	color: #2563eb;
}
.revrelay-filter-btn.active {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}

/* Review Item */
.revrelay-items-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.revrelay-review-item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px;
	transition: box-shadow 0.15s ease;
}
.revrelay-review-item:hover {
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
}
.revrelay-review-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.revrelay-reviewer-name {
	font-weight: 600;
	font-size: 15px;
	color: #0f172a;
	margin-right: 8px;
}
.revrelay-badge-verified {
	font-size: 11px;
	background: #ecfdf5;
	color: #059669;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	margin-right: 4px;
}
.revrelay-badge-incentivized {
	font-size: 11px;
	background: #eff6ff;
	color: #2563eb;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
}
.revrelay-review-date {
	font-size: 12px;
	color: #94a3b8;
}
.revrelay-review-stars {
	font-size: 16px;
	margin-bottom: 8px;
}
.rev-star {
	color: #cbd5e1;
}
.rev-star.filled {
	color: #f59e0b;
}
.revrelay-review-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
}
.revrelay-review-body {
	font-size: 14px;
	line-height: 1.6;
	color: #334155;
}
.revrelay-review-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.revrelay-gallery-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	cursor: pointer;
	transition: transform 0.15s ease;
}
.revrelay-gallery-thumb:hover {
	transform: scale(1.05);
}

/* Lightbox Modal */
.revrelay-lightbox-modal {
	position: fixed;
	z-index: 999999;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(15, 23, 42, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
}
.revrelay-lightbox-img {
	max-width: 90vw;
	max-height: 85vh;
	border-radius: 8px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}
.revrelay-lightbox-close {
	position: absolute;
	top: 24px;
	right: 32px;
	color: #ffffff;
	font-size: 40px;
	font-weight: 300;
	cursor: pointer;
}

/* Carousel */
.revrelay-carousel-wrapper {
	overflow-x: auto;
	padding: 16px 0;
	scrollbar-width: thin;
}
.revrelay-carousel-track {
	display: flex;
	gap: 16px;
}
.revrelay-carousel-card {
	min-width: 280px;
	max-width: 320px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.revrelay-card-media-preview img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	margin: 10px 0;
	cursor: pointer;
}
