/* Prynt Forge Reviews — product page upload + gallery */

.pfr-upload {
	--pfr-accent: #e85d04;
	--pfr-accent-soft: rgba(232, 93, 4, 0.12);
	--pfr-border: #d4d4d4;
	--pfr-text: inherit;
	margin: 1em 0 1.25em;
}

.pfr-upload label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.pfr-optional {
	font-weight: 400;
	opacity: 0.7;
}

.pfr-help {
	display: block;
	font-size: 0.9em;
	opacity: 0.8;
	margin: 0 0 0.75em;
	line-height: 1.4;
}

.pfr-dropzone {
	position: relative;
	display: block;
	border: 1.5px dashed var(--pfr-border);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.02);
	padding: 1.15em 1em;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease;
	cursor: pointer;
}

.pfr-dropzone.is-dragover {
	border-color: var(--pfr-accent);
	background: var(--pfr-accent-soft);
}

.pfr-file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
}

.pfr-dropzone-ui {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25em;
	pointer-events: none;
	color: var(--pfr-text);
}

.pfr-dropzone-icon {
	display: flex;
	color: var(--pfr-accent);
	margin-bottom: 0.2em;
}

.pfr-dropzone-ui strong {
	font-size: 0.98em;
}

.pfr-dropzone-ui span {
	font-size: 0.85em;
	opacity: 0.7;
}

.pfr-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin-top: 0.85em;
}

.pfr-previews:empty {
	display: none;
}

.pfr-preview {
	position: relative;
	width: 88px;
	height: 88px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--pfr-border);
	background: #f4f4f4;
}

.pfr-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pfr-preview-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.pfr-preview-remove:hover,
.pfr-preview-remove:focus {
	background: #111;
}

.pfr-error {
	display: block;
	margin-top: 0.6em;
	color: #b32d2e;
	font-size: 0.9em;
}

.pfr-review-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0.75em 0 0.25em;
}

.pfr-photo {
	display: block;
	width: 92px;
	height: 92px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.08);
	flex: 0 0 auto;
}

.pfr-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pfr-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(12, 12, 12, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 3.5rem;
}

.pfr-lightbox[hidden] {
	display: none;
}

.pfr-lightbox img {
	max-width: min(1100px, 100%);
	max-height: 88vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.pfr-lightbox-btn {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
}

.pfr-lightbox-btn:hover,
.pfr-lightbox-btn:focus {
	background: rgba(255, 255, 255, 0.22);
}

.pfr-lightbox-close {
	top: 16px;
	right: 16px;
}

.pfr-lightbox-prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.pfr-lightbox-next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 600px) {
	.pfr-photo,
	.pfr-preview {
		width: 76px;
		height: 76px;
	}

	.pfr-lightbox {
		padding: 3rem 0.75rem;
	}
}
