/* Sailiz — avis accueil (slider + popup) */
.sailiz-star--full,
.sailiz-star--half {
	color: #ffac34;
}
.sailiz-star--empty {
	color: #ddd;
}

.srz-home-container {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: center;
	flex-wrap: wrap;
	overflow: visible;
	clip-path: inset(0 -100vw 0 0);
}

.srz-home-stars {
	font-size: 20px;
	color: #ffac34;
	margin-bottom: 8px;
	text-align: left;
	letter-spacing: 2px;
}

.srz-home-slider {
	width: 100%;
	position: relative;
	padding-bottom: 56px; /* space for bottom arrows */
}

.srz-home-slider .swiper-slide {
	max-width: 275px;
	width: 275px;
	height: auto;
	background: transparent;
	border-radius: 10px;
}

.srz-home-card {
	background: #fff;
	border-radius: 4px;
	padding: 10px;
	text-align: center;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.srz-home-text {
	font-size: 16px;
	line-height: 1.5;
	font-weight: 500;
	color: #333;
	margin: 0 0 20px;
	flex-grow: 1;
	text-align: left;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: 4.5em;
}

.srz-home-reviewer {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
}

.srz-home-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.srz-home-name {
	font-weight: 500;
	color: #333;
	font-size: 12px;
}

.srz-home-view-btn {
	background: transparent !important;
	font-size: 13px !important;
	cursor: pointer !important;
	width: fit-content;
	color: #c5580d !important;
	padding: 0 !important;
	border: none;
}

.srz-home-reviewer_wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.srz-home-slider .swiper-button-next,
.srz-home-slider .swiper-button-prev {
	color: #000;
	background: #fff;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50%;
	top: auto !important;
	bottom: 10px !important;
	transform: none !important;
	margin-top: 0 !important;
	z-index: 5;
	box-shadow: 0px 4px 4px 0px #00000040;
}

.srz-home-slider .swiper-button-prev {
	left: 0 !important;
	right: auto !important;
}

.srz-home-slider .swiper-button-next {
	right: 0 !important;
	left: auto !important;
}

.srz-home-slider .swiper-button-next:after,
.srz-home-slider .swiper-button-prev:after {
	font-size: 18px !important;
	font-weight: bold;
}

.srz-popup {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.srz-popup.srz-active {
	display: flex;
}

.srz-popup-content {
	background: #fff;
	border-radius: 12px;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 30px;
	position: relative;
	animation: sailizSrzSlideIn 0.3s ease;
}

.srz-view-content {
	max-width: 500px;
}

@keyframes sailizSrzSlideIn {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.srz-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.srz-popup-header h3 {
	font-size: 22px;
	color: #333;
	margin: 0;
}

.srz-popup-close {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #999;
	line-height: 1;
}

.srz-view-product {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.srz-view-product-link {
	color: #007cba;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.srz-view-reviewer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 15px;
}

.srz-view-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.srz-view-name {
	font-weight: 600;
	color: #333;
	font-size: 18px;
}

.srz-view-stars {
	font-size: 24px;
	color: #ffac34;
	margin-bottom: 20px;
}

.srz-view-text {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.srz-view-text p {
	margin: 0;
	color: #333;
	line-height: 1.6;
	font-size: 16px;
	text-align: left;
	word-wrap: break-word;
}

.srz-home-no-reviews {
	text-align: center;
	padding: 60px 40px;
	background: #fff;
	border-radius: 4px;
	width: 100%;
}

.srz-home-no-reviews p {
	margin: 0;
	color: #333;
	font-size: 18px;
}

@media (max-width: 768px) {
	.srz-home-slider .swiper-button-next,
	.srz-home-slider .swiper-button-prev {
		width: 35px !important;
		height: 35px !important;
	}
	.srz-popup-content {
		padding: 20px;
	}
}
