/* Reviews Page - Start */

/* Reviews Header - Start */
section.reviews-header {
	padding-top: 50px;
	padding-bottom: 40px;
	background: var(--white);
}

section.reviews-header .container {
	display: flex;
	flex-direction: column;
	gap: 35px;
}

.reviews-header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 50px;
	flex-wrap: wrap;
}

.reviews-header .h1 {
	max-width: 600px;
	margin: 0;
	color: var(--black);
}

/* Контролы отзывов - Start */
.reviews-controls {
	display: flex;
	align-items: center;
	gap: 20px;
}

.reviews-controls .filter-btn {
	min-width: 180px;
}

.reviews-controls .filter-btn span {
	pointer-events: none;
}

.reviews-controls .filter-btn.active {
	background: var(--primary);
	border-color: var(--primary);
}

.reviews-controls .filter-btn.active span {
	color: var(--primary-match);
}

.reviews-controls .review-form-call {
	margin-left: 20px;
}
/* Контролы отзывов - End */

@media (max-width: 1279px) {
	section.reviews-header {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	.reviews-header-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 25px;
	}

	.reviews-header .h1 {
		max-width: 100%;
	}

	.reviews-controls {
		width: 100%;
		flex-wrap: wrap;
		justify-content: center;
		gap: 12px;
	}

	.reviews-controls .filter-btn {
		min-width: auto;
		flex: 1;
	}

	.reviews-controls .review-form-call {
		width: 100%;
		margin-left: 0;
	}
}

@media (max-width: 768px) {
	.reviews-controls {
		flex-direction: column;
		gap: 10px;
	}

	.reviews-controls .filter-btn {
		width: 100%;
	}
}
/* Reviews Header - End */

/* Reviews List - Start */
section.reviews-list {
	padding-top: 0;
	padding-bottom: 100px;
	overflow: visible;
}

section.reviews-list .container {
	display: flex;
	flex-direction: column;
}

/* Сетка отзывов - Start */
.reviews-grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--blocks-indent);
	justify-content: flex-start;
}

@media (max-width: 1279px) {
	section.reviews-list {
		padding-bottom: 60px;
	}
}
/* Сетка отзывов - End */
/* Reviews List - End */

/* Empty State - Start */
.no-reviews {
	display: none;
	text-align: center;
	padding: 100px 20px;
	background: var(--light-gray);
	border-radius: var(--radius-big);
	margin: 40px 0;
}

.no-reviews.active {
	display: block;
}

.no-reviews .h3 {
	color: var(--black);
	margin-bottom: 25px;
}

.no-reviews p {
	font-size: 16px;
	line-height: 24px;
	color: var(--dark-gray);
	margin-bottom: 35px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.no-reviews .btn {
	margin: 0 auto;
}

@media (max-width: 1279px) {
	.no-reviews {
		padding: 60px 20px;
		margin: 20px 0;
	}

	.no-reviews .h3 {
		margin-bottom: 20px;
	}

	.no-reviews p {
		font-size: 14px;
		line-height: 22px;
		margin-bottom: 25px;
	}
}
/* Empty State - End */

/* Форма отзыва (для лайтбокса) - Start */
.form-lightbox-wrapper.store-review-form .lightbox-section {
	max-width: 750px;
	background: var(--white);
	border-radius: var(--radius-big);
}

.form-lightbox-wrapper.store-review-form .form-head {
	margin-bottom: 35px;
	text-align: center;
}

.form-lightbox-wrapper.store-review-form .form-head .h3 {
	color: var(--black);
	margin-bottom: 15px;
}

.form-lightbox-wrapper.store-review-form .form-head p {
	font-size: 16px;
	line-height: 24px;
	color: var(--dark-gray);
}

.form-lightbox-wrapper.store-review-form input,
.form-lightbox-wrapper.store-review-form textarea {
	background: var(--light-gray);
	border: 1px solid var(--border);
	color: var(--black);
}

/* Рейтинг в форме - Start */
.rating-section {
	width: 240px !important;
	margin-bottom: 30px;
}

.rating-section label {
	display: block;
	font-family: var(--font-family-1);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: var(--black);
	margin-bottom: 15px;
}

.stars-rating {
	display: flex;
	gap: 8px;
}

.stars-rating .star {
	font-size: 36px;
	color: #E5E5E5;
	cursor: pointer;
	transition: all 0.3s ease;
}

.stars-rating .star:hover,
.stars-rating .star.active {
	color: var(--primary);
	transform: scale(1.15);
}
/* Рейтинг в форме - End */

/* Загрузка фото в форме - Start */
.photo-upload-section {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-bottom: 30px;
    width: 350px !important;
    margin-left: auto;
}

.photo-upload-label {
	display: block;
	font-family: var(--font-family-1);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: var(--black);
	margin-bottom: 10px;
	width: 100%;
}

.btn.photo-upload-btn {
	height: 38px;
	padding: 0 20px;
	background: var(--light-gray);
	border: 1px solid var(--border);
}

.btn.photo-upload-btn span {
	color: var(--black);
	font-weight: 400;
}

.btn.photo-upload-btn:hover {
	background: var(--primary);
	border-color: var(--primary);
}

.btn.photo-upload-btn:hover span {
	color: var(--primary-match);
}

.photo-upload-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.photo-info {
	font-size: 12px;
	line-height: 16px;
	color: var(--gray);
	font-weight: 300;
}

/* Превью загруженных фото - Start */
.photo-preview,
.photo-preview-container,
#photo-preview,
#store-photo-preview {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 20px;
	width: 100%;
}

#store-photo-preview {
	width: 430px !important;
	display: flex;
	justify-content: flex-end;
}

.photo-preview-item {
	position: relative;
	width: 80px;
	height: 80px;
	border-radius: var(--radius-medium);
	overflow: hidden;
	border: 2px solid var(--border);
}

.photo-preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo-preview-item .remove-photo,
.photo-preview-item .photo-preview-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 26px;
	height: 26px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--border);
	border-radius: var(--radius-max);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.photo-preview-item .remove-photo:hover,
.photo-preview-item .photo-preview-remove:hover {
	background: var(--primary);
	border-color: var(--primary);
	transform: scale(1.1);
}

.photo-preview-item .remove-photo::before,
.photo-preview-item .remove-photo::after,
.photo-preview-item .photo-preview-remove::before,
.photo-preview-item .photo-preview-remove::after {
	content: '';
	position: absolute;
	width: 14px;
	height: 2px;
	background: var(--black);
	transition: all 0.3s ease;
}

.photo-preview-item .remove-photo:hover::before,
.photo-preview-item .remove-photo:hover::after,
.photo-preview-item .photo-preview-remove:hover::before,
.photo-preview-item .photo-preview-remove:hover::after {
	background: var(--primary-match);
}

.photo-preview-item .remove-photo::before,
.photo-preview-item .photo-preview-remove::before {
	transform: rotate(45deg);
}

.photo-preview-item .remove-photo::after,
.photo-preview-item .photo-preview-remove::after {
	transform: rotate(-45deg);
}

.review-success-message {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
	text-align: center;
	max-width: 510px;
	margin: 40px auto;
}

.review-success-message .h2 {
	color: var(--primary);
}

.review-success-message p {
	font-size: 16px;
	line-height: 24px;
	color: var(--black);
}

@media (max-width: 1279px) {
	.rating-section,
	.photo-upload-section {
		width: 100% !important;
	}

	.photo-upload-wrapper {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		gap: 10px;
	}

	.photo-upload-btn {
		flex: 1;
	}

	.photo-preview,
	.photo-preview-container,
	#photo-preview,
	#store-photo-preview {
		width: 100% !important;
		gap: 10px;
		justify-content: flex-start;
	}

	.photo-preview-item {
		width: 70px;
		height: 70px;
	}

	.photo-preview-item .remove-photo,
	.photo-preview-item .photo-preview-remove {
		width: 22px;
		height: 22px;
		top: 4px;
		right: 4px;
	}

	.photo-preview-item .remove-photo::before,
	.photo-preview-item .remove-photo::after,
	.photo-preview-item .photo-preview-remove::before,
	.photo-preview-item .photo-preview-remove::after {
		width: 12px;
	}
}
/* Превью загруженных фото - End */

/* Загрузка фото в форме - End */

/* Форма отзыва (для лайтбокса) - End */

/* Reviews Page - End */