/*
 * swpl-reviews-front.css — classic-mode front styles.
 *
 * Deliberately minimal and theme-friendly: the media strip and form rows
 * inherit the theme's typography and colors; only layout, spacing, and the
 * lightbox overlay are styled here.
 */

/* Review form media rows */
.swpl-rev-form {
	margin: 0.75em 0;
}

.swpl-rev-form__row {
	margin: 0.5em 0;
}

.swpl-rev-form__row label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25em;
}

.swpl-rev-form__hint {
	display: block;
	font-size: 0.85em;
	opacity: 0.75;
	margin-top: 0.15em;
}

.swpl-rev-form__error {
	color: #b32d2e;
	font-weight: 600;
	margin: 0.5em 0;
}

.swpl-rev-form__preview {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin: 0.4em 0;
}

.swpl-rev-form__chip {
	display: inline-block;
	padding: 0.15em 0.6em;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.8em;
	opacity: 0.8;
	max-width: 16em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Approved review media strip */
.swpl-rev-media {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 0.75em;
}

.swpl-rev-media__thumb {
	display: block;
	line-height: 0;
}

.swpl-rev-media__thumb img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 4px;
	cursor: zoom-in;
	max-width: 100%;
}

.swpl-rev-media__video {
	max-width: 100%;
	width: 320px;
	border-radius: 4px;
	display: block;
}

/* Click-to-zoom lightbox */
.swpl-rev-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	cursor: zoom-out;
}

.swpl-rev-lightbox__img {
	max-width: 95vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.swpl-rev-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 4px;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 14px;
}

.swpl-rev-lightbox__close:hover,
.swpl-rev-lightbox__close:focus {
	background: rgba(255, 255, 255, 0.3);
}
