/**
 * WooCommerce Product Reviews Pro — "Recent Reviews" Elementor widget
 *
 * Structural/layout rules only - colors, spacing, typography, shadows, etc.
 * are all controlled live from the widget's Elementor Style tab.
 *
 * @since 1.19.0
 */

.wprp-recent-reviews-grid {
	column-count: 3;
	column-gap: 20px;
	direction: rtl;
}

.wprp-recent-review-card {
	display: block;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	background: #fff;
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 20px;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.wprp-recent-review-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.wprp-recent-review-product-image {
	flex: 0 0 auto;
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
}

.wprp-recent-review-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wprp-recent-review-product-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.wprp-recent-review-product-name {
	font-size: 14px;
	font-weight: 700;
	color: #29323a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wprp-recent-review-stars .star-rating {
	display: inline-block !important;
	float: none !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 5.3em !important;
	height: 1.2em !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	color: #f2b01e;
}

.wprp-recent-review-stars .star-rating::before,
.wprp-recent-review-stars .star-rating span::before {
	color: #f2b01e;
	opacity: 1 !important;
}

.wprp-recent-review-text {
	font-size: 13.5px;
	line-height: 1.7;
	color: #4a5157;
	margin: 0 0 12px;
}

.wprp-recent-review-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
}

.wprp-recent-review-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.wprp-recent-review-author {
	font-weight: 600;
	color: #29323a;
	display: flex;
	align-items: center;
	gap: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wprp-recent-review-date {
	color: #8a9099;
}

.wprp-recent-reviews-empty {
	color: #767f88;
	text-align: center;
	padding: 20px 0;
}
