/*
 * Mehrad Customer Reviews.
 */

.elementor-widget-mehrad_customer_reviews .elementor-widget-container{
	overflow:visible;
}

.mehrad-customer-reviews{
	--mcr-columns:3;
	--mcr-gap:22px;
	--mcr-radius:34px;
	--mcr-title:#202837;
	--mcr-accent:#e62d00;
	--mcr-card-bg:#fff;
	--mcr-border:#edf0f4;
	--mcr-name:#343434;
	--mcr-text:#666a70;
	--mcr-muted:#7a7d83;
	--mcr-star:#ffa000;
	--mcr-indicator:#ef4a22;
	width:100%;
	max-width:100%;
	direction:rtl;
}

.mehrad-customer-reviews__header{
	display:flex;
	align-items:center;
	justify-content:flex-start;
	margin:0 0 32px;
}

.mehrad-customer-reviews__header h2{
	margin:0;
	color:var(--mcr-title);
	font-size:35px;
	font-weight:950;
	line-height:1.45;
}

.mehrad-customer-reviews__header h2 span{
	margin-inline-start:7px;
	color:var(--mcr-accent);
}

.mehrad-customer-reviews__viewport{
	width:100%;
	overflow-x:auto;
	overflow-y:hidden;
	scroll-snap-type:x mandatory;
	scrollbar-width:none;
	-ms-overflow-style:none;
	-webkit-overflow-scrolling:touch;
	overscroll-behavior-inline:contain;
}

.mehrad-customer-reviews__viewport::-webkit-scrollbar{
	display:none;
}

.mehrad-customer-reviews__track{
	display:flex;
	align-items:stretch;
	gap:var(--mcr-gap);
	min-width:100%;
	padding:3px 1px 15px;
}

.mehrad-customer-reviews__card{
	display:flex;
	flex:0 0 calc((100% - (var(--mcr-gap) * (var(--mcr-columns) - 1))) / var(--mcr-columns));
	flex-direction:column;
	min-width:0;
	min-height:315px;
	padding:34px 36px 30px;
	border:1px solid var(--mcr-border);
	border-radius:var(--mcr-radius);
	background:var(--mcr-card-bg);
	box-shadow:0 4px 12px rgba(15,23,42,.035);
	color:var(--mcr-text);
	scroll-snap-align:start;
	box-sizing:border-box;
}

.mehrad-customer-reviews__top{
	display:flex;
	align-items:center;
	gap:14px;
	margin-bottom:26px;
}

.mehrad-customer-reviews__top strong{
	color:var(--mcr-name);
	font-size:18px;
	font-weight:950;
}

.mehrad-customer-reviews__indicator{
	position:relative;
	display:grid;
	place-items:center;
	width:42px;
	height:42px;
	flex:0 0 42px;
	border-radius:50%;
	background:color-mix(in srgb,var(--mcr-indicator) 14%,transparent);
}

.mehrad-customer-reviews__indicator i{
	display:block;
	width:14px;
	height:14px;
	border:4px solid color-mix(in srgb,var(--mcr-indicator) 25%,transparent);
	border-radius:50%;
	background:var(--mcr-indicator);
	background-clip:padding-box;
}

.mehrad-customer-reviews__card > p{
	display:-webkit-box;
	min-height:7.8em;
	margin:0;
	overflow:hidden;
	color:var(--mcr-text);
	font-size:15px;
	font-weight:650;
	line-height:2.15;
	text-align:right;
	text-overflow:ellipsis;
	-webkit-line-clamp:4;
	-webkit-box-orient:vertical;
}

.mehrad-customer-reviews__bottom{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:18px;
	margin-top:auto;
	padding-top:25px;
}

.mehrad-customer-reviews__bottom small{
	color:var(--mcr-muted);
	font-size:13px;
	font-weight:750;
}

.mehrad-customer-reviews__rating{
	display:inline-flex;
	align-items:center;
	gap:6px;
	color:var(--mcr-star);
	direction:ltr;
}

.mehrad-customer-reviews__rating b{
	font-size:31px;
	line-height:1;
}

.mehrad-customer-reviews__rating strong{
	font-size:17px;
	font-weight:950;
	direction:rtl;
}

.mehrad-customer-reviews__empty{
	padding:22px;
	border:1px dashed #cbd5e1;
	border-radius:18px;
	color:#64748b;
	text-align:center;
}

html.dark .mehrad-customer-reviews,
html[data-theme="dark"] .mehrad-customer-reviews,
body.dark .mehrad-customer-reviews,
body[data-theme="dark"] .mehrad-customer-reviews{
	--mcr-title:#f7f9fc;
	--mcr-accent:#ff5b2e;
	--mcr-card-bg:#29364a;
	--mcr-border:#46566d;
	--mcr-name:#f7f9fc;
	--mcr-text:#dbe3ee;
	--mcr-muted:#c0cad8;
	--mcr-star:#ffb52b;
	--mcr-indicator:#ff6b45;
}

html.dark .mehrad-customer-reviews__card,
html[data-theme="dark"] .mehrad-customer-reviews__card,
body.dark .mehrad-customer-reviews__card,
body[data-theme="dark"] .mehrad-customer-reviews__card{
	box-shadow:0 4px 12px rgba(0,0,0,.12);
}

@media(max-width:1024px){
	.mehrad-customer-reviews{
		--mcr-columns:2;
	}
}

@media(max-width:767px){
	.mehrad-customer-reviews{
		--mcr-columns:1.1;
		--mcr-gap:13px;
	}
	.mehrad-customer-reviews__header{
		margin-bottom:22px;
	}
	.mehrad-customer-reviews__header h2{
		font-size:28px;
	}
	.mehrad-customer-reviews__card{
		min-height:285px;
		padding:26px 22px 24px;
	}
	.mehrad-customer-reviews__card > p{
		font-size:14px;
	}
}

@media(prefers-reduced-motion:reduce){
	.mehrad-customer-reviews__card{
		scroll-behavior:auto;
	}
}
