.product_reviews {
	--gap: 40px;
	--small-gap: 16px;
	
	@media (max-width: 1199px) {
		--gap: 28px;
		--small-gap: 12px;
	}
	
	.empty_box {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: var(--small-gap);
		max-width: 630px;
		margin: 0 auto;
		background: var(--white-100);
		border-radius: 24px;
		padding: 48px 32px;
		text-align: center;
		
		@media (max-width: 991px) {
			max-width: 550px;
			padding: 48px 16px;
		}
		
		.icon_box {
			width: 48px;
			height: 48px;
		}
	}
	
	.reviews_head {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		margin-bottom: var(--gap);
		
		@media (max-width: 767px) {
			flex-direction: column;
			align-items: stretch;
			gap: 20px;
		}
		
		h2 {
			margin-bottom: var(--gap);
		}
		
		.rating_box {
			display: flex;
			align-items: center;
			gap: 20px;
		}
		
		.rating {
			font-size: 40px;
			font-weight: 500;
			color: var(--title-color);
			
			@media (max-width: 1199px) {
				font-size: 24px;
			}
		}
		
		.stars {
			display: flex;
			gap: 6px;
			margin-bottom: 6px;
		}
		
		.reviews_count {
			opacity: .7;
		}
	}
	
	.reviews_body {
		font-weight: 500;
	}
	
	.reviews_list {
		display: flex;
		flex-direction: column;
		gap: var(--small-gap);
	}
	
	.review_box {
		display: flex;
		flex-direction: column;
		gap: var(--small-gap);
		padding: 24px;
		background-color: var(--brown-50);
		border-radius: 16px;
		
		@media (max-width: 1199px) {
			padding: 20px;
		}
		
		@media (max-width: 767px) {
			padding: 16px;
		}
		
		.head {
			display: flex;
			justify-content: space-between;
			align-items: center;
			
			.user_box {
				display: flex;
				align-items: center;
				gap: 12px;
				
				@media (max-width: 1199px) {
					flex-wrap: wrap;
					gap: 2px 8px;
				}
			}
			
			h3 {
				font-size: 24px;
				
				@media (max-width: 1199px) {
					font-size: 16px;
				}
			}
			
			.stars {
				display: flex;
				gap: 4px;
				
				svg {
					display: block;
					width: 16px;
					height: 16px;
				}
			}
			
			.date {
				font-size: 14px;
				opacity: .6;
				
				@media (max-width: 1199px) {
					width: 100%;
				}
			}
			
			.badge {
				padding: 8px 16px;
				border-radius: 100px;
				background: var(--green-50);
				font-size: 14px;
				text-align: center;
				
				@media (max-width: 1199px) {
					padding: 4px 12px;
				}
			}
		}
		
		.review_images {
			margin: var(--small-gap) 0;
			display: flex;
			flex-wrap: wrap;
			gap: var(--small-gap);
			
			.img_box {
				width: 96px;
				height: 96px;
				border-radius: 12px;
				flex-shrink: 0;
				overflow: hidden;
				cursor: pointer;
				
				@media (max-width: 1199px) {
					width: 84px;
					height: 84px;
				}
				
				@media (max-width: 767px) {
					width: 72px;
					height: 72px;
				}
				
				img {
					width: 100%;
					height: 100%;
					object-fit: cover;
				}
			}
		}
		
		.tooltip {
			font-size: 14px;
			opacity: .6;
		}
		
		.footer {
			padding: 16px;
			border-radius: 12px;
			border-left: 3px solid var(--green-700);
			background-color: var(--white-100);
			
			@media (max-width: 767px) {
				padding: 12px;
			}
			
			.reply_head {
				display: flex;
				align-items: center;
				gap: 10px;
				margin-bottom: 8px;
			}
			
			.image_box {
				width: 28px;
				height: 28px;
				flex-shrink: 0;
				border-radius: 50%;
				overflow: hidden;
				
				img {
					width: 100%;
					height: 100%;
					object-fit: cover;
				}
			}
			
			h4 {
				font-size: 14px;
			}
			
			.date {
				font-size: 14px;
				opacity: .6;
			}
			
			p {
				font-size: 14px;
			}
		}
	}
	
	.load_more_wrapper {
		margin-top: var(--gap);
	}
	
	.review_popup {
		--border: #E2D5C2;
		--border-dark: #C9BDA6;
		--star: #E9A73B;
		
		display: none;
		align-items: flex-start;
		justify-content: center;
		position: fixed;
		inset: 0;
		z-index: 100;
		padding: 20px;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: .4s;
		
		&.open {
			display: flex;
			opacity: 1;
			visibility: visible;
			pointer-events: auto;
		}
		
		.overlay {
			position: fixed;
			inset: 0;
			background-color: var(--black-600);
			opacity: .4;
			cursor: pointer;
		}
		
		.popup_card {
			position: relative;
			display: flex;
			flex-direction: column;
			gap: 24px;
			width: 100%;
			max-width: 631px;
			margin: auto;
			padding: 40px;
			background-color: var(--white-100);
			border-radius: 20px;
			
			@media (max-width: 767px) {
				gap: 16px;
				padding: 24px 16px;
			}
			
			&.success {
				max-width: 416px;
				padding: 48px 32px;
			}
		}
		
		.popup_head {
			display: flex;
			justify-content: space-between;
			align-items: center;
			gap: 16px;
			
			h3 {
				font-size: 24px;
				
				@media (max-width: 767px) {
					font-size: 20px;
				}
			}
			
			.close_btn {
				padding: 0;
				border: 0;
				background: none;
				font-size: 14px;
				color: var(--text-color);
				opacity: .55;
				white-space: nowrap;
				cursor: pointer;
				transition: .4s;
				
				&:hover {
					opacity: 1;
				}
			}
		}
		
		.review_form {
			display: flex;
			flex-direction: column;
			gap: 24px;
			font-weight: 500;
			
			@media (max-width: 767px) {
				gap: 16px;
			}
			
			> .button {
				width: 100%;
			}
		}
		
		.form_field {
			display: flex;
			flex-direction: column;
			gap: 8px;
		}
		
		.field_label {
			font-weight: 500;
			color: var(--title-color);
		}
		
		.field_box {
			input:not([type="radio"], [type="checkbox"], [type="file"], [type="submit"]),
			textarea {
				padding: 13px 24px;
				background-color: transparent;
				border: 1px solid var(--border);
				font-size: 14px;
			}
			
			textarea {
				height: 140px;
				padding: 15px 20px;
			}
			
			&.checkbox {
				grid-template-columns: 20px auto;
				align-items: start;
				gap: 12px;
				font-size: 14px;
				
				input {
					width: 20px;
					height: 20px;
				}
				
				.appearance {
					width: 20px;
					height: 20px;
					border-width: 1.5px;
					border-radius: 4px;
					flex-shrink: 0;
					
					&:before {
						font-size: 14px;
					}
				}
				
				a {
					text-decoration: underline;
					color: var(--green-700);
				}
				
				.field_error {
					grid-column: 1 / -1;
				}
			}
		}
		
		.rating_input {
			display: flex;
			flex-direction: column;
			gap: 8px;
		}
		
		.stars_input {
			display: flex;
			gap: 16px;
			
			@media (max-width: 767px) {
				gap: 8px;
			}
			
			.star {
				width: 26px;
				height: 26px;
				padding: 0;
				border: 0;
				background: none;
				cursor: pointer;
				
				@media (max-width: 767px) {
					width: 28px;
					height: 28px;
				}
				
				svg {
					display: block;
					width: 100%;
					height: 100%;
				}
				
				path {
					fill: none;
					stroke: var(--star);
					stroke-width: 1.5;
					transition: .2s;
				}
				
				&.active path {
					fill: var(--star);
				}
			}
		}
		
		.tooltip {
			font-size: 14px;
		}
		
		.upload_box {
			display: flex;
			flex-direction: column;
			gap: 12px;
			
			&.full .upload_empty {
				display: none;
			}
		}
		
		.upload_empty {
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			gap: 15px;
			height: 150px;
			border: 1.5px dashed var(--border-dark);
			border-radius: 16px;
			font-size: 14px;
			opacity: .7;
			cursor: pointer;
			transition: .4s;
			
			&:hover {
				opacity: 1;
				border-color: var(--green-700);
			}
			
			.icon {
				width: 20px;
				height: 20px;
			}
		}
		
		.upload_preview {
			display: flex;
			flex-wrap: wrap;
			gap: 12px;
			
			&:empty {
				display: none;
			}
			
			.img_box {
				position: relative;
				width: 96px;
				height: 96px;
				border-radius: 12px;
				overflow: hidden;
				
				@media (max-width: 767px) {
					width: 72px;
					height: 72px;
				}
				
				img {
					width: 100%;
					height: 100%;
					object-fit: cover;
				}
				
				.remove {
					position: absolute;
					top: 4px;
					right: 4px;
					width: 20px;
					height: 20px;
					padding: 0;
					border: 0;
					border-radius: 50%;
					background-color: var(--black-600);
					color: var(--white-100);
					font-size: 12px;
					line-height: 1;
					cursor: pointer;
					opacity: .7;
					transition: .4s;
					
					&:hover {
						opacity: 1;
					}
				}
			}
		}
	}
}

.review_popup .popup_success {
	text-align: center;
}

.review_popup .popup_success .icon_box {
	width: 48px;
	height: 48px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--green-500);
	display: flex;
	align-items: center;
	justify-content: center;
}

.review_popup .popup_success h3 {
	margin: 0 0 16px;
	font-size: 24px;
	line-height: 32px;
}

.review_popup .popup_success p {
	max-width: 280px;
	margin: 0 auto;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	opacity: 0.75;
}

.review_popup .honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.review_popup .field_error,
.review_popup .form_error {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #b32d2e;
}

.photo_lightbox {
	position: fixed;
	inset: 0;
	z-index: 110;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	
	&[hidden] {
		display: none;
	}
	
	.overlay {
		position: absolute;
		inset: 0;
		background-color: var(--black-600);
		opacity: .8;
		cursor: pointer;
	}
	
	.frame {
		position: relative;
		margin: 0;
		
		@media (max-width: 767px) {
			width: calc(100vw - 152px);
		}
		
		img {
			display: block;
			max-width: 90vw;
			max-height: 85vh;
			object-fit: contain;
			border-radius: 12px;
			
			@media (max-width: 767px) {
				width: 100%;
			}
		}
	}
	
	.close {
		position: absolute;
		top: 16px;
		right: 16px;
		z-index: 1;
		padding: 8px 12px;
		border: 0;
		background: none;
		color: var(--white-100);
		font-size: 20px;
		cursor: pointer;
		opacity: .75;
		transition: .4s;
		
		&:hover {
			opacity: 1;
		}
	}
	
	.nav {
		position: relative;
		z-index: 1;
		width: 40px;
		height: 40px;
		margin: 0 8px;
		border: 0;
		border-radius: 50%;
		background: none;
		color: var(--white-100);
		cursor: pointer;
		flex-shrink: 0;
		opacity: .75;
		transition: .4s;
		
		&:hover:not(:disabled) {
			opacity: 1;
		}
		
		&:disabled {
			opacity: .25;
			cursor: default;
		}
		
		&:before {
			content: "";
			display: block;
			width: 12px;
			height: 12px;
			margin: 0 auto;
			border-right: 2px solid currentColor;
			border-bottom: 2px solid currentColor;
		}
		
		&.prev:before {
			transform: rotate(135deg) translate(-2px, 2px);
		}
		
		&.next:before {
			transform: rotate(-45deg) translate(-2px, 2px);
		}
	}
	
	.counter {
		position: absolute;
		bottom: 20px;
		left: 50%;
		transform: translateX(-50%);
		z-index: 1;
		color: var(--white-100);
		font-size: 14px;
	}
}
