/* ─────────────────── Product Reviews  ─────────────────── */

.pr {
	max-width: 100%;
	font-family: inherit;
	color: #333;
}

.pr__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e9e9e9;
}

/* ── Photos Gallery ── */

.pr__photos {
	margin-bottom: 24px;
}

.pr__photos-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.pr__photos-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.pr__photos-more {
	font-size: 13px;
	color: #666;
	text-decoration: none;
	cursor: pointer;
}
.pr__photos-more:hover {
	color: #333;
}

.pr__photos-grid {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.pr__photo {
	width: 90px;
	height: 90px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
}

.pr__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .2s;
}
.pr__photo:hover img {
	transform: scale(1.05);
}

.pr__photo--extra {
	display: none;
}
.pr__photos-grid--expanded .pr__photo--extra {
	display: block;
}

/* ── Review List ── */

.pr__list {
	margin-bottom: 20px;
}

.pr__review {
	padding: 20px 0;
	border-bottom: 1px solid #f0f0f0;
}
.pr__review:last-child {
	border-bottom: none;
}

.pr__review-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 10px;
}

.pr__review-header img{
	border-radius: 50px;
	height: 40px;
	width: 40px;
}

.pr__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.pr__meta {
	flex: 1;
}

.pr__author {
	display: block;
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 4px;
	color: #222;
}

.pr__rating-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.pr__stars {
	display: inline-flex;
	gap: 1px;
}

.pr__star {
	font-size: 14px;
	color: #ddd;
	line-height: 1;
}
.pr__star--filled {
	color: #ff5000;
}

.pr__date {
	font-size: 13px;
	color: #999;
}

.pr__review-body p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

.pr__review-images {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.pr__review-img {
	width: 64px;
	height: 64px;
	border-radius: 4px;
	overflow: hidden;
}
.pr__review-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Footer ── */

.pr__footer {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 16px;
	border-top: 1px solid #e5e5e5;
}

.pr__see-all {
	padding: 8px 20px;
	border: 1px solid #ccc;
	border-radius: 20px;
	background: #fff;
	font-size: 13px;
	color: #333;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .2s;
}
.pr__see-all:hover {
	border-color: #ff6a00;
	color: #ff6a00;
}

.pr__reward {
	font-size: 13px;
	color: #ff6a00;
	font-weight: 500;
}

.pr__write-btn {
	margin-left: auto;
	padding: 9px 24px;
	border: none;
	border-radius: 20px;
	background: #ff6a00;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s;
}
.pr__write-btn:hover {
	background: #e65c00;
}

/* ── Modal ── */

.pr__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pr__modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.pr__modal-content {
	position: relative;
	width: 94%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 40px 80px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, .2);
}

.pr__modal-close {
	position: absolute;
	top: 5px;
	right: 5px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	background: #000000;
	color: #fff;
	font-family: monospace;
	width: 20px;
	height: 20px;
	font-size: 17px;
}
.pr__modal-close:hover {
	color: #333;
}

/* form top: fields + user avatar */
.pr__form-top {
	display: flex;
	gap: 24px;
	margin-bottom: 20px;
}

.pr__form-fields {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pr__form-fields .pr__input {
	width: 100%;
	padding: 10px 14px;
	border: none;
	border-radius: 6px;
	background: #f5f5f5;
	font-size: 14px;
	color: #333;
	outline: none;
	transition: background .2s;
	box-sizing: border-box;
}
.pr__input:focus {
	background: #efefef;
}

.pr__form-user {
	display: flex;
	flex-direction: column;
	align-items: end;
	gap: 6px;
	flex: 1;
}

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

.pr__form-name {
	font-size: 13px;
	font-weight: 700;
	color: #333;
	text-align: center;
}

/* upload area */
.pr__upload {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.pr__upload-preview {
	display: contents;
}

.pr__upload-item {
	position: relative;
	width: 100px;
	height: 100px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
}
.pr__upload-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pr__upload-item--video {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	color: #999;
}

.pr__form-user img {
    height: 30px;
    width: 30px;
    border-radius: 50px;
}


.pr__upload-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50px;
	background: #ff4444;
	color: #fff;
	border: none;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-family: monospace;
}

.pr__upload-add {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100px;
	height: 100px;
	border: 1px dashed #ccc;
	border-radius: 8px;
	cursor: pointer;
	color: #999;
	font-size: 12px;
	transition: border-color .2s, color .2s;
}
.pr__upload-add:hover {
	border-color: #ff6a00;
	color: #ff6a00;
}

/* textarea */
.pr__textarea {
	width: 100%;
	padding: 12px 14px;
	border: none;
	border-radius: 6px;
	background: #f5f5f5;
	font-size: 14px;
	color: #333;
	resize: vertical;
	outline: none;
	margin-bottom: 16px;
	box-sizing: border-box;
	font-family: inherit;
}
.pr__textarea:focus {
	background: #efefef;
}

/* star rating input */
.pr__form-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.pr__stars-input {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pr__stars-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.pr__stars-select {
	display: inline-flex;
	gap: 2px;
}

.pr__star-btn {
	font-size: 22px;
	color: #ddd;
	cursor: pointer;
	transition: color .15s;
	user-select: none;
}
.pr__star-btn--active,
.pr__star-btn--hover {
	color: #ff5000;
}

.pr__form-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.pr__submit {
	padding: 10px 28px;
	border: none;
	border-radius: 20px;
	background: #ff6a00;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s;
}
.pr__submit:hover {
	background: #e65c00;
}
.pr__submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* form message */
.pr__form-message {
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	text-align: center;
}
.pr__form-message--success {
	background: #eaf7ea;
	color: #2e7d32;
}
.pr__form-message--error {
	background: #fdecea;
	color: #c62828;
}

/* ── Responsive ── */

@media (max-width: 768px) {
	.pr__form-top {
		flex-direction: column-reverse;
		align-items: center;
	}
	.pr__form-user {
		flex-direction: row;
		gap: 10px;
	}
	.pr__form-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
	.pr__form-actions {
		width: 100%;
		justify-content: space-between;
	}
	.pr__footer {
		justify-content: center;
	}
	.pr__write-btn {
		margin-left: 0;
	}
	.pr__modal-content {
		padding: 20px;
	}
	.pr__photo {
		width: 72px;
		height: 72px;
	}
}
