/* Новый дизайн блока отзывов в карточке товара */

#catalogElement #catalogReviews {
	margin-top: 10px;
	margin-bottom: 20px;
}

#catalogElement #catalogReviews .heading {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 12px;
	padding: 0 0 10px;
	border: none;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
}

#catalogElement #catalogReviews .heading .ratingContainer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex-wrap: nowrap;
}

#catalogElement #catalogReviews .heading .ratingContainer .label {
	font-size: 12px;
	color: #6b7280;
	font-weight: 500;
}

#catalogElement #catalogReviews .reviewAddButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	color: #1a1a1a;
	background: linear-gradient(135deg, #ffcc33 0%, #ffd700 50%, #ffcc33 100%);
	border: 1px solid rgba(255, 204, 51, 0.95);
	box-shadow:
		0 4px 10px rgba(15, 23, 42, 0.12),
		inset 0 1px 2px rgba(255, 255, 255, 0.8);
	white-space: nowrap;
	max-width: 100%;
}

#catalogElement #catalogReviews .reviewAddButton:hover {
	filter: brightness(1.03);
}

#catalogElement #catalogReviews .catalogReviewsContainer {
	margin-top: 10px;
}

#catalogElement #catalogReviews ul#reviews {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#catalogElement #catalogReviews .reviewItem {
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(15, 23, 42, 0.06);
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

#catalogElement #catalogReviews .reviewTable {
	display: flex;
	flex-wrap: wrap;
	column-gap: 16px;
	row-gap: 8px;
}

#catalogElement #catalogReviews .reviewColumn {
	flex: 1;
	min-width: 220px;
	padding: 4px 0;
}

#catalogElement #catalogReviews .reviewDate,
#catalogElement #catalogReviews .reviewName,
#catalogElement #catalogReviews .reviewRating {
	margin-bottom: 8px;
}

#catalogElement #catalogReviews .reviewRating {
	display: flex;
	align-items: center;
	gap: 6px;
}

#catalogElement #catalogReviews .reviewRating .ratingValue {
	font-size: 12px;
	color: #6b7280;
}

#catalogElement #catalogReviews .reviewDate .label,
#catalogElement #catalogReviews .reviewName .label,
#catalogElement #catalogReviews .advantages .label,
#catalogElement #catalogReviews .limitations .label,
#catalogElement #catalogReviews .impressions .label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #9ca3af;
	margin-bottom: 2px;
}

#catalogElement #catalogReviews .reviewDate,
#catalogElement #catalogReviews .reviewName {
	font-size: 13px;
	color: #111827;
}

#catalogElement #catalogReviews .advantages p,
#catalogElement #catalogReviews .limitations p,
#catalogElement #catalogReviews .impressions p {
	margin: 0;
	font-size: 13px;
	color: #374151;
}

#catalogElement #catalogReviews .advantages,
#catalogElement #catalogReviews .limitations,
#catalogElement #catalogReviews .impressions {
	margin-bottom: 10px;
}

#catalogElement #catalogReviews .controls {
	margin-top: 10px;
	font-size: 12px;
	color: #6b7280;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

#catalogElement #catalogReviews .controls a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	color: #374151;
	text-decoration: none;
	transition: all 0.2s ease;
	max-width: 100%;
	box-sizing: border-box;
}

#catalogElement #catalogReviews .controls a:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #111827;
}

#catalogElement #catalogReviews .rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.star-rating .star-icon {
	width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.star-rating .star-icon img {
	display: block;
	width: 100%;
	height: 100%;
}

.star-rating .star-icon--filled img {
	content: url("../images/starActive.svg");
}

#catalogElement #catalogReviews .noReviewsYet {
	margin: 6px 0 0;
	font-size: 13px;
	color: #6b7280;
}

@media (max-width: 899px) {
	#catalogElement #catalogReviews .heading {
		align-items: flex-start;
	}

	#catalogElement #catalogReviews .heading .ratingContainer {
		width: 100%;
		justify-content: flex-start;
		margin-left: 0;
	}

	#catalogElement #catalogReviews .reviewAddButton {
		order: 3;
	}

	#catalogElement #catalogReviews .controls {
		flex-direction: column;
		align-items: flex-start;
	}
}

#catalogElement #newReview {
	display: none;
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	margin-top: 20px;
}

#catalogElement #newReview .heading {
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: 18px;
	color: #111827;
	padding: 18px 24px 10px;
	border-bottom: 1px solid #f3f4f6;
	display: block;
}

#catalogElement #newReview form {
	padding: 0 24px 20px;
}

#catalogElement #newReview ins {
	text-decoration: none;
	margin-bottom: 4px;
	font-size: 14px;
	display: block;
}

#catalogElement #newReview #newRating {
	position: relative;
	margin: 12px 0 18px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

#catalogElement #newReview .rating {
	display: inline-block;
	cursor: pointer;
	position: relative;
	height: 18px;
	width: 90px; /* 5 звёзд по ~18px */
	background: url(../images/star.svg) repeat-x left center / 18px 18px
		transparent;
}

#catalogElement #newReview .rating i {
	background: none;
	height: 18px;
	width: 90px;
	position: absolute;
	display: block;
	left: 0;
	top: 0;
}

#catalogElement #newReview .rating i.m {
	background: url(../images/starActive.svg) repeat-x left center / 18px 18px
		transparent;
	width: 0;
	z-index: 10;
}

#catalogElement #newReview .usedSelect {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 4px 0 10px;
}

#catalogElement #newReview .usedSelect li {
	margin: 0;
}

#catalogElement #newReview .usedSelect li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-family: "Montserrat", sans-serif;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	color: #374151;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
	white-space: nowrap;
}

#catalogElement #newReview .usedSelect li a:hover {
	background: #fffbeb;
	border-color: rgba(255, 204, 51, 0.7);
	color: #111827;
}

#catalogElement #newReview .usedSelect li a.selected {
	background: linear-gradient(
		135deg,
		#ffcc33 0%,
		#ffd700 50%,
		#ffcc33 100%
	) !important;
	border-color: rgba(255, 204, 51, 0.95);
	color: #1a1a1a;
	font-weight: 600;
	box-shadow:
		0 3px 8px rgba(15, 23, 42, 0.15),
		inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

#catalogElement #newReview table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 16px 0;
}

#catalogElement #newReview table td {
	vertical-align: top;
	width: 50%;
	padding: 4px 0;
}

#catalogElement #newReview table td:first-child {
	padding-right: 8px;
}

/* Две колонки left / right внутри формы отзыва */
#catalogElement #newReview .newReviewTable {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
}

#catalogElement #newReview .newReviewTable .left,
#catalogElement #newReview .newReviewTable .right {
	flex: 1 1 0;
	min-width: 260px;
}

#catalogElement #newReview label {
	display: block;
	margin: 10px 0 6px;
	font-weight: 600;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	color: #4b5563;
}

#catalogElement #newReview textarea {
	-webkit-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-family: "Montserrat", sans-serif;
	padding: 10px 12px;
	background: #fff;
	resize: vertical;
	min-height: 90px;
	width: 100%;
}

#catalogElement #newReview textarea:focus {
	outline: none;
	border: 1px solid rgba(255, 204, 51, 0.95);
	box-shadow: 0 0 0 1px rgba(255, 204, 51, 0.25);
}

#catalogElement #newReview input {
	-webkit-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	font-family: "Montserrat", sans-serif;
	border: 1px solid #e5e7eb;
	display: inline-block;
	margin-bottom: 12px;
	vertical-align: top;
	background: #fff;
	padding: 10px 12px;
	height: 43px;
	width: 50%;
	border-radius: 8px;
}

#catalogElement #newReview input:focus {
	border: 1px solid rgba(255, 204, 51, 0.95);
	box-shadow: 0 0 0 1px rgba(255, 204, 51, 0.25);
}

#catalogElement #newReview .submit {
	-webkit-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	vertical-align: middle;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	text-align: center;
	line-height: 1.2;
	margin-left: 8px;
	color: #1a1a1a;
	height: 40px;
	padding: 0 18px;
	min-width: 120px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	background: linear-gradient(
		135deg,
		#ffcc33 0%,
		#ffd700 50%,
		#ffcc33 100%
	) !important;
	border: 1px solid rgba(255, 204, 51, 0.95);
	box-shadow:
		0 4px 10px rgba(15, 23, 42, 0.12),
		inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
	#catalogElement #newReview .newReviewTable {
		flex-direction: column;
	}
}

#catalogElement #newReview .submit:active {
	position: relative;
	top: 1px;
}

#catalogElement #newReview .reviewError {
	overflow: hidden;
	padding: 0px 24px 0px 24px;
}

#catalogElement #newReview .reviewError .cap {
	color: #1a1a1a;
	font-size: 16px;
}

#catalogElement #newReview .reviewError img {
	vertical-align: middle;
	float: left;
	margin-right: 24px;
}

#catalogElement .countReviewsTools {
	cursor: pointer;
}
