/* Sailiz — avis fiche produit + formulaire + popups */
.srz-review-container {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 56px;
	align-items: center;
	flex-wrap: wrap;
}

.srz-review-header {
	display: flex;
	align-items: center;
	justify-content: center;
}

.srz-review-header h2 {
	margin: 0;
	color: #000;
}

.srz-review-slider {
	width: 100%;
	overflow: visible !important;
	clip-path: inset(0 -100vw 0 0) !important;
	position: relative;
	padding-bottom: 56px; /* space for bottom arrows */
}

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

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

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

.srz-review-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-reviewer {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
}

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

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

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

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

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

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

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

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

.srz-write-review-btn {
	display: block;
	width: 200px;
	margin: 0 auto;
	padding: 12px 24px;
	background: #007cba;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.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;
}

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

.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-popup-product {
	display: flex;
	gap: 15px;
	background: #f8f9fa;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 25px;
}

.srz-popup-product-image {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 5px;
}

.srz-popup-product-info {
	flex: 1;
}

.srz-popup-product-info h4 {
	margin: 0 0 5px;
	font-size: 16px;
	color: #333;
}

.srz-popup-product-desc {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.4;
}

.srz-form-group {
	margin-bottom: 20px;
}

.srz-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.srz-required {
	color: #dc3545;
}

.srz-form-control {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
	box-sizing: border-box;
}

.srz-char-counter {
	font-size: 12px;
	color: #666;
	margin-top: 5px;
	text-align: right;
}

.srz-rating-select {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.srz-rating-option {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	padding: 5px;
	border-radius: 5px;
}

.srz-rating-option input {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.srz-file-input {
	position: relative;
	width: 100%;
}

.srz-file-input input[type='file'] {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

.srz-file-label {
	display: block;
	padding: 8px 16px;
	background: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	text-align: center;
	box-sizing: border-box;
}

.srz-file-hint {
	display: block;
	font-size: 12px;
	color: #999;
	margin-top: 5px;
}

.srz-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 25px;
}

.srz-btn-submit,
.srz-btn-cancel {
	flex: 1;
	padding: 12px;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.srz-btn-submit {
	background: #007cba;
	color: #fff;
}

.srz-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.srz-btn-cancel {
	background: #f0f0f0;
	color: #666;
}

.srz-btn-loading {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.srz-spinner {
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top-color: #007cba;
	border-radius: 50%;
	animation: sailizSrzSpin 1s linear infinite;
}

@keyframes sailizSrzSpin {
	to {
		transform: rotate(360deg);
	}
}

.srz-success-message {
	text-align: center;
	padding: 30px 20px;
}

.srz-success-icon {
	display: inline-block;
	width: 60px;
	height: 60px;
	background: #28a745;
	color: #fff;
	font-size: 32px;
	line-height: 60px;
	border-radius: 50%;
	margin-bottom: 20px;
}

.srz-success-close {
	background: #007cba;
	color: #fff;
	border: none;
	padding: 10px 30px;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
}

.srz-no-reviews {
	text-align: center;
	padding: 20px;
	background: #fff;
	border-radius: 4px;
}

.srz-no-reviews p {
	margin: 0;
	color: #666;
	font-size: 16px;
}

.srz-view-review {
	text-align: center;
}

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

.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;
}

.sailiz-simple-stars {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.sailiz-simple-star--on {
	color: #ffac34;
	font-size: 20px;
}

.sailiz-simple-star--off {
	color: #000;
	font-size: 20px;
}

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