/* =========================================================================
   RentDrive Pro — Reviews & Ratings (v2.9.0)
   ========================================================================= */

/* ---------- Stars -------------------------------------------------------- */
.rdp-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	vertical-align: middle;
}
.rdp-star {
	fill: var(--rdp-line);
	flex-shrink: 0;
}
.rdp-star.is-full { fill: #F5A623; }
/* Half star: gold clipped to the left half over the grey base fill. */
.rdp-star.is-half { fill: #F5A623; clip-path: inset(0 50% 0 0); }

.rdp-rating-number {
	font-weight: 700;
	margin-left: 6px;
	color: var(--rdp-text);
	font-size: 0.95em;
}
.rdp-rating-count {
	margin-left: 4px;
	color: var(--rdp-text-muted);
	font-size: 0.9em;
}
.rdp-rating-summary { display: inline-flex; align-items: center; }

/* ---------- Card rating (compact) --------------------------------------- */
.rdp-vehicle-card-rating {
	display: flex;
	align-items: center;
	margin: 4px 0 2px;
	font-size: var(--rdp-text-sm);
}

/* ---------- Verified badge ---------------------------------------------- */
.rdp-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	border-radius: var(--rdp-radius-full);
	background: color-mix(in srgb, var(--rdp-success) 15%, transparent);
	color: var(--rdp-success);
	font-size: var(--rdp-text-2xs);
	font-weight: 700;
}
.rdp-verified-badge svg { color: var(--rdp-success); }

/* ---------- Single-page reviews section --------------------------------- */
.rdp-vehicle-reviews {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--rdp-line);
}
.rdp-reviews-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}
.rdp-reviews-header h2 { margin: 0; }
.rdp-reviews-overall { display: flex; align-items: center; font-size: var(--rdp-text-base); }

.rdp-reviews-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}
@media (max-width: 560px) {
	.rdp-reviews-list { grid-template-columns: 1fr; }
}

.rdp-review-item {
	background: var(--rdp-surface);
	border: 1px solid var(--rdp-line);
	border-radius: var(--rdp-radius-md);
	padding: 16px 18px;
}
.rdp-review-top {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.rdp-review-author { font-size: var(--rdp-text-sm); }
.rdp-review-date {
	color: var(--rdp-text-muted);
	font-size: var(--rdp-text-xs);
	margin-left: auto;
}
.rdp-review-stars { margin-bottom: 8px; }
.rdp-review-text {
	margin: 0;
	color: var(--rdp-text);
	font-size: var(--rdp-text-sm);
	line-height: 1.6;
}
