/* ==========================================================================
   RJ Reviews — front-end
   Everything is scoped under .rj-rv so the theme cannot bleed in.
   ========================================================================== */

.rj-rv {
	--rj-rv-accent: #2563eb;
	--rj-rv-star: #ffb400;

	--rj-rv-ink: #10141a;
	--rj-rv-ink-2: #4b5563;
	--rj-rv-ink-3: #8b93a1;
	--rj-rv-line: #e6e9ee;
	--rj-rv-line-2: #f1f3f7;
	--rj-rv-surface: #ffffff;
	--rj-rv-surface-2: #f7f9fc;
	--rj-rv-radius: 14px;
	--rj-rv-radius-sm: 10px;
	--rj-rv-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px -12px rgba(16, 24, 40, .18);
	--rj-rv-shadow-lg: 0 24px 60px -24px rgba(16, 24, 40, .35);
	--rj-rv-clamp: 6;

	box-sizing: border-box;
	color: var(--rj-rv-ink);
	font-size: 15px;
	line-height: 1.6;
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 0 40px;
	-webkit-font-smoothing: antialiased;
}

.rj-rv *,
.rj-rv *::before,
.rj-rv *::after {
	box-sizing: border-box;
}

/* Reset only what the theme distorts. Colour is left to each button variant —
   setting it here would out-specify .rj-rv-btn--primary and black out its label. */
.rj-rv button,
.rj-rv-modal button {
	font: inherit;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}

/* --------------------------------------------------------------- heading */

.rj-rv__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.rj-rv__title {
	margin: 0;
	font-size: clamp(20px, 2.4vw, 27px);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.25;
	color: var(--rj-rv-ink);
}

/* --------------------------------------------------------------- buttons */

.rj-rv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}

.rj-rv-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	flex: none;
}

.rj-rv .rj-rv-btn--primary,
.rj-rv-modal .rj-rv-btn--primary {
	background: var(--rj-rv-accent);
	color: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .12);
}

.rj-rv .rj-rv-btn--primary:hover,
.rj-rv-modal .rj-rv-btn--primary:hover {
	filter: brightness(1.07);
	transform: translateY(-1px);
}

.rj-rv .rj-rv-btn--ghost,
.rj-rv-modal .rj-rv-btn--ghost {
	background: var(--rj-rv-surface);
	border-color: var(--rj-rv-line);
	color: var(--rj-rv-ink);
}

.rj-rv .rj-rv-btn--ghost:hover,
.rj-rv-modal .rj-rv-btn--ghost:hover {
	border-color: var(--rj-rv-ink-3);
	background: var(--rj-rv-surface-2);
}

/* Impreza styles button[type="submit"]:not(.w-btn) with uppercase + its own
   background (specificity 0,2,1). Out-specify it for our submit button. */
.rj-rv .rj-rv-form button[type="submit"].rj-rv-btn,
.rj-rv-modal .rj-rv-form button[type="submit"].rj-rv-btn {
	background: var(--rj-rv-accent);
	color: #fff;
	text-transform: none;
	letter-spacing: normal;
	border-radius: 999px;
}

.rj-rv-btn--block {
	width: 100%;
}

.rj-rv-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}

.rj-rv-btn:focus-visible,
.rj-rv-chip:focus-visible,
.rj-rv-thumb:focus-visible,
.rj-rv-bar:focus-visible {
	outline: 2px solid var(--rj-rv-accent);
	outline-offset: 2px;
}

/* ----------------------------------------------------------------- stars */

.rj-rv-stars {
	position: relative;
	display: inline-block;
	white-space: nowrap;
	line-height: 0;
	vertical-align: middle;
}

.rj-rv-stars svg {
	width: 1em;
	height: 1em;
	display: inline-block;
}

.rj-rv-stars--sm { font-size: 14px; }
.rj-rv-stars--md { font-size: 18px; }
.rj-rv-stars--lg { font-size: 22px; }

.rj-rv-stars__bg svg { fill: #dfe3ea; }

.rj-rv-stars__fg {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	white-space: nowrap;
}

.rj-rv-stars__fg svg { fill: var(--rj-rv-star); }

/* --------------------------------------------------------------- summary */

.rj-rv-summary {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	background: var(--rj-rv-surface);
	border: 1px solid var(--rj-rv-line);
	border-radius: var(--rj-rv-radius);
	box-shadow: var(--rj-rv-shadow);
	padding: 26px 28px;
	margin-bottom: 22px;
}

.rj-rv-summary--empty {
	grid-template-columns: 1fr;
	text-align: center;
}

.rj-rv-summary__blank p {
	margin: 10px 0 0;
	color: var(--rj-rv-ink-2);
}

.rj-rv-summary__score {
	text-align: center;
	padding-right: 28px;
	border-right: 1px solid var(--rj-rv-line-2);
}

.rj-rv-summary__avg {
	font-size: 52px;
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1;
	margin-bottom: 8px;
}

.rj-rv-summary__count {
	margin-top: 8px;
	font-size: 13px;
	color: var(--rj-rv-ink-2);
}

.rj-rv-summary__media {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--rj-rv-surface-2);
	font-size: 12px;
	font-weight: 600;
	color: var(--rj-rv-ink-2);
}

.rj-rv-summary__media svg {
	width: 14px;
	height: 14px;
	fill: var(--rj-rv-accent);
}

.rj-rv-summary__bars {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.rj-rv-summary__cta {
	margin-top: 10px;
	max-width: 240px;
}

.rj-rv-bar {
	display: grid;
	grid-template-columns: 40px 1fr 42px;
	align-items: center;
	gap: 12px;
	background: none;
	border: 0;
	padding: 3px 0;
	text-align: left;
	border-radius: 6px;
	transition: opacity .15s ease;
}

.rj-rv-bar:disabled {
	cursor: default;
	opacity: .45;
}

.rj-rv-bar:not(:disabled):hover .rj-rv-bar__fill {
	filter: brightness(1.1);
}

.rj-rv-bar__label {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rj-rv-ink-2);
}

.rj-rv-bar__label svg {
	width: 12px;
	height: 12px;
	fill: var(--rj-rv-star);
}

.rj-rv-bar__track {
	height: 8px;
	border-radius: 999px;
	background: var(--rj-rv-line-2);
	overflow: hidden;
}

.rj-rv-bar__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--rj-rv-star);
	background: linear-gradient(90deg, var(--rj-rv-star), color-mix(in srgb, var(--rj-rv-star) 70%, #ff8a00));
	transition: width .6s cubic-bezier(.22, 1, .36, 1);
}

.rj-rv-bar__pct {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--rj-rv-ink-3);
	text-align: right;
}

/* --------------------------------------------------------- media gallery */

.rj-rv-gallery {
	margin-bottom: 22px;
}

.rj-rv-gallery__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.rj-rv-gallery__head h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.rj-rv-gallery__all {
	background: none;
	border: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--rj-rv-accent);
}

.rj-rv-gallery__all:hover { text-decoration: underline; }

.rj-rv-gallery__strip {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.rj-rv-gallery__strip::-webkit-scrollbar { height: 6px; }
.rj-rv-gallery__strip::-webkit-scrollbar-thumb { background: #d7dbe2; border-radius: 999px; }

.rj-rv-gallery__strip .rj-rv-thumb {
	width: 104px;
	height: 104px;
	flex: none;
	scroll-snap-align: start;
}

/* ---------------------------------------------------------------- thumbs */

.rj-rv-thumb {
	position: relative;
	display: block;
	width: 76px;
	height: 76px;
	padding: 0;
	border: 1px solid var(--rj-rv-line);
	border-radius: var(--rj-rv-radius-sm);
	overflow: hidden;
	background: var(--rj-rv-surface-2);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.rj-rv-thumb:hover {
	transform: translateY(-2px);
	box-shadow: var(--rj-rv-shadow);
	border-color: var(--rj-rv-ink-3);
}

.rj-rv-thumb img,
.rj-rv-thumb video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}

.rj-rv-thumb__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(to top, rgba(0, 0, 0, .38), rgba(0, 0, 0, .06));
}

.rj-rv-thumb__play::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 13px solid #fff;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	margin-left: 3px;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

/* --------------------------------------------------------------- toolbar */

.rj-rv-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 12px 0 16px;
	border-top: 1px solid var(--rj-rv-line-2);
	margin-top: 4px;
}

.rj-rv-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}

.rj-rv-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 1px solid var(--rj-rv-line);
	background: var(--rj-rv-surface);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rj-rv-ink-2);
	white-space: nowrap;
	transition: all .16s ease;
}

.rj-rv-chip svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	opacity: .8;
}

.rj-rv-chip__star { fill: var(--rj-rv-star) !important; opacity: 1 !important; }

.rj-rv-chip em {
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 999px;
	background: var(--rj-rv-surface-2);
	color: var(--rj-rv-ink-3);
}

.rj-rv-chip:hover {
	border-color: var(--rj-rv-ink-3);
	color: var(--rj-rv-ink);
}

.rj-rv-chip.is-active {
	background: var(--rj-rv-accent);
	border-color: var(--rj-rv-accent);
	color: #fff;
}

.rj-rv-chip.is-active em {
	background: rgba(255, 255, 255, .22);
	color: #fff;
}

.rj-rv-chip.is-active .rj-rv-chip__star { fill: #fff !important; }

.rj-rv-sort__select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--rj-rv-line);
	background: var(--rj-rv-surface) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238b93a1'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5z'/%3E%3C/svg%3E") no-repeat right 10px center/16px;
	border-radius: 999px;
	padding: 8px 34px 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rj-rv-ink-2);
	cursor: pointer;
	max-width: 100%;
}

.rj-rv-sort__select:focus {
	outline: none;
	border-color: var(--rj-rv-accent);
}

/* ------------------------------------------------------------------ list */

.rj-rv-list-wrap {
	position: relative;
	min-height: 120px;
}

.rj-rv-list {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rj-rv-list[data-layout="list"] {
	grid-template-columns: minmax(0, 1fr);
}

.rj-rv-list__veil {
	position: absolute;
	inset: 0;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding-top: 60px;
	background: rgba(255, 255, 255, .72);
	backdrop-filter: blur(1.5px);
	border-radius: var(--rj-rv-radius);
	z-index: 2;
}

.rj-rv-list-wrap.is-busy .rj-rv-list__veil { display: flex; }

.rj-rv-spin {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0, 0, 0, .15);
	border-top-color: var(--rj-rv-accent);
	border-radius: 50%;
	display: inline-block;
	animation: rj-rv-spin .7s linear infinite;
}

.rj-rv-btn--primary .rj-rv-spin {
	border-color: rgba(255, 255, 255, .35);
	border-top-color: #fff;
}

@keyframes rj-rv-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ card */

.rj-rv-card {
	background: var(--rj-rv-surface);
	border: 1px solid var(--rj-rv-line);
	border-radius: var(--rj-rv-radius);
	padding: 18px 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
	animation: rj-rv-in .35s cubic-bezier(.22, 1, .36, 1) both;
}

.rj-rv-card:hover {
	box-shadow: var(--rj-rv-shadow);
	border-color: #d7dce4;
}

@keyframes rj-rv-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.rj-rv-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rj-rv-avatar {
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .01em;
}

.rj-rv-card__who { min-width: 0; }

.rj-rv-card__name {
	display: flex;
	align-items: center;
	gap: 7px;
	font-weight: 650;
	font-size: 14.5px;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rj-rv-verified {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 11px;
	font-weight: 700;
	color: #0f7b3f;
	background: #e8f7ee;
	border-radius: 999px;
	padding: 2px 8px 2px 5px;
	flex: none;
}

.rj-rv-verified svg {
	width: 13px;
	height: 13px;
	fill: #12a45c;
}

.rj-rv-card__meta {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 3px;
	font-size: 12.5px;
	color: var(--rj-rv-ink-3);
}

.rj-rv-card__text {
	color: var(--rj-rv-ink-2);
	font-size: 14.5px;
	overflow: hidden;
}

.rj-rv-card__text p { margin: 0 0 .6em; }
.rj-rv-card__text p:last-child { margin-bottom: 0; }

.rj-rv-card__text.is-clamped {
	display: -webkit-box;
	-webkit-line-clamp: var(--rj-rv-clamp);
	-webkit-box-orient: vertical;
}

.rj-rv-readmore {
	background: none;
	border: 0;
	padding: 2px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--rj-rv-accent);
}

.rj-rv-readmore:hover { text-decoration: underline; }

.rj-rv-card__media {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.rj-rv-card__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-top: 10px;
	border-top: 1px solid var(--rj-rv-line-2);
	margin-top: auto;
}

.rj-rv-helpful {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1px solid var(--rj-rv-line);
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--rj-rv-ink-2);
	transition: all .16s ease;
}

.rj-rv-helpful svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.rj-rv-helpful:hover {
	border-color: var(--rj-rv-accent);
	color: var(--rj-rv-accent);
}

.rj-rv-helpful.is-voted {
	background: color-mix(in srgb, var(--rj-rv-accent) 10%, #fff);
	border-color: var(--rj-rv-accent);
	color: var(--rj-rv-accent);
	cursor: default;
}

.rj-rv-helpful__count {
	font-variant-numeric: tabular-nums;
	padding-left: 5px;
	border-left: 1px solid currentColor;
	opacity: .75;
}

/* ----------------------------------------------------------- empty state */

.rj-rv-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 20px;
	border: 1px dashed var(--rj-rv-line);
	border-radius: var(--rj-rv-radius);
	background: var(--rj-rv-surface-2);
}

.rj-rv-empty svg {
	width: 42px;
	height: 42px;
	fill: #c8cdd6;
}

.rj-rv-empty p {
	margin: 8px 0 16px;
	color: var(--rj-rv-ink-2);
}

/* ------------------------------------------------------------- load more */

.rj-rv-more {
	display: flex;
	justify-content: center;
	margin-top: 22px;
}

.rj-rv-more {
	flex-direction: column;
	gap: 10px;
}

.rj-rv-more .rj-rv-btn { min-width: 220px; }

.rj-rv-capnote {
	margin: 0;
	font-size: 13px;
	color: var(--rj-rv-ink-3);
}

/* ------------------------------------------------------------------ form */

.rj-rv-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.rj-rv-modal[hidden] { display: none; }

.rj-rv-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 16, 24, .55);
	backdrop-filter: blur(3px);
	animation: rj-rv-fade .2s ease both;
}

@keyframes rj-rv-fade { from { opacity: 0; } to { opacity: 1; } }

.rj-rv-modal__panel {
	position: relative;
	width: min(620px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: var(--rj-rv-surface);
	border-radius: 18px;
	box-shadow: var(--rj-rv-shadow-lg);
	padding: 28px 30px 26px;
	animation: rj-rv-pop .28s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes rj-rv-pop {
	from { opacity: 0; transform: translateY(18px) scale(.98); }
	to { opacity: 1; transform: none; }
}

.rj-rv-modal__x {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: var(--rj-rv-surface-2);
	font-size: 22px;
	line-height: 1;
	color: var(--rj-rv-ink-2);
}

.rj-rv-modal__x:hover { background: #e9edf3; }

.rj-rv-modal__title {
	margin: 0;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.rj-rv-modal__sub {
	margin: 4px 0 20px;
	font-size: 13.5px;
	color: var(--rj-rv-ink-3);
}

.rj-rv-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rj-rv-field { margin-bottom: 18px; }

.rj-rv-grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.rj-rv-label {
	display: block;
	font-size: 13px;
	font-weight: 650;
	margin-bottom: 7px;
	color: var(--rj-rv-ink);
}

.rj-rv-label b { color: #d92d20; font-weight: 700; }

.rj-rv-hint {
	display: block;
	margin-top: 5px;
	font-size: 11.5px;
	color: var(--rj-rv-ink-3);
}

.rj-rv-form input[type="text"],
.rj-rv-form input[type="email"],
.rj-rv-form textarea {
	width: 100%;
	border: 1px solid var(--rj-rv-line);
	border-radius: var(--rj-rv-radius-sm);
	padding: 11px 14px;
	font-size: 14.5px;
	font-family: inherit;
	color: var(--rj-rv-ink);
	background: var(--rj-rv-surface);
	transition: border-color .16s ease, box-shadow .16s ease;
}

.rj-rv-form textarea { resize: vertical; min-height: 108px; }

.rj-rv-form input:focus,
.rj-rv-form textarea:focus {
	outline: none;
	border-color: var(--rj-rv-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rj-rv-accent) 16%, transparent);
}

.rj-rv-form .rj-rv-invalid {
	border-color: #d92d20 !important;
	box-shadow: 0 0 0 3px rgba(217, 45, 32, .12) !important;
}

/* star picker */

.rj-rv-rate {
	display: flex;
	align-items: center;
	gap: 4px;
}

.rj-rv-rate__star {
	background: none;
	border: 0;
	padding: 2px;
	line-height: 0;
}

.rj-rv-rate__star svg {
	width: 30px;
	height: 30px;
	fill: #dfe3ea;
	transition: fill .12s ease, transform .12s ease;
}

.rj-rv-rate__star:hover svg { transform: scale(1.12); }
.rj-rv-rate__star.is-on svg { fill: var(--rj-rv-star); }

.rj-rv-rate__hint {
	margin-left: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rj-rv-ink-2);
}

/* dropzone */

.rj-rv-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
	border: 1.5px dashed var(--rj-rv-line);
	border-radius: var(--rj-rv-radius);
	background: var(--rj-rv-surface-2);
	padding: 22px 16px;
	cursor: pointer;
	transition: border-color .16s ease, background-color .16s ease;
}

.rj-rv-drop:hover,
.rj-rv-drop.is-over {
	border-color: var(--rj-rv-accent);
	background: color-mix(in srgb, var(--rj-rv-accent) 5%, #fff);
}

.rj-rv-drop input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.rj-rv-drop svg {
	width: 26px;
	height: 26px;
	fill: var(--rj-rv-accent);
}

.rj-rv-drop__title { font-size: 13.5px; font-weight: 650; }
.rj-rv-drop__hint { font-size: 11.5px; color: var(--rj-rv-ink-3); }

.rj-rv-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.rj-rv-preview {
	position: relative;
	width: 82px;
	height: 82px;
	border-radius: var(--rj-rv-radius-sm);
	overflow: hidden;
	border: 1px solid var(--rj-rv-line);
	background: #0d1117;
}

.rj-rv-preview img,
.rj-rv-preview video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rj-rv-preview__x {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: rgba(11, 16, 24, .72);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rj-rv-preview__x:hover { background: #d92d20; }

.rj-rv-preview__tag {
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #fff;
	background: rgba(11, 16, 24, .65);
	padding: 2px 5px;
	text-align: center;
}

.rj-rv-form__msg {
	border-radius: var(--rj-rv-radius-sm);
	padding: 11px 14px;
	font-size: 13.5px;
	margin-bottom: 16px;
}

.rj-rv-form__msg.is-error {
	background: #fdeceb;
	color: #a4231b;
}

.rj-rv-form__msg.is-ok {
	background: #e8f7ee;
	color: #0f7b3f;
}

.rj-rv-form__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 4px;
}

.rj-rv-progress {
	height: 4px;
	border-radius: 999px;
	background: var(--rj-rv-line-2);
	overflow: hidden;
	margin-top: 14px;
}

.rj-rv-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--rj-rv-accent);
	transition: width .2s ease;
}

/* ------------------------------------------------------------- lightbox */

.rj-rv-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	background: rgba(6, 9, 14, .94);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: rj-rv-fade .2s ease both;
}

.rj-rv-lightbox[hidden] { display: none; }

.rj-rv-lightbox__stage {
	max-width: min(1100px, 92vw);
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rj-rv-lightbox__stage img,
.rj-rv-lightbox__stage video {
	max-width: min(1100px, 92vw);
	max-height: 80vh;
	border-radius: 10px;
	display: block;
	background: #000;
}

.rj-rv-lightbox__close,
.rj-rv-lightbox__nav {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .16s ease, transform .16s ease;
	backdrop-filter: blur(4px);
}

.rj-rv-lightbox__close:hover,
.rj-rv-lightbox__nav:hover { background: rgba(255, 255, 255, .22); }

.rj-rv-lightbox__close {
	top: 18px;
	right: 20px;
	width: 42px;
	height: 42px;
	font-size: 26px;
	line-height: 1;
}

.rj-rv-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	font-size: 32px;
	line-height: 1;
	padding-bottom: 4px;
}

.rj-rv-lightbox__nav--prev { left: 18px; }
.rj-rv-lightbox__nav--next { right: 18px; }

.rj-rv-lightbox__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: rgba(255, 255, 255, .82);
	font-size: 13px;
	pointer-events: none;
}

.rj-rv-lightbox__by { font-weight: 650; }
.rj-rv-lightbox__count { font-variant-numeric: tabular-nums; opacity: .7; }

body.rj-rv-locked { overflow: hidden; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
	.rj-rv-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
	.rj-rv { font-size: 14.5px; }

	.rj-rv-summary {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 20px 18px;
	}

	.rj-rv-summary__score {
		padding-right: 0;
		padding-bottom: 18px;
		border-right: 0;
		border-bottom: 1px solid var(--rj-rv-line-2);
	}

	.rj-rv-summary__avg { font-size: 44px; }
	.rj-rv-summary__cta { max-width: none; }

	.rj-rv-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.rj-rv-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.rj-rv-chips::-webkit-scrollbar { display: none; }

	.rj-rv-sort { align-self: flex-end; }

	.rj-rv-gallery__strip .rj-rv-thumb { width: 88px; height: 88px; }

	.rj-rv-modal { padding: 0; }

	.rj-rv-modal__panel {
		width: 100%;
		max-height: 100vh;
		height: 100%;
		border-radius: 0;
		padding: 24px 20px 22px;
	}

	.rj-rv-grid2 { grid-template-columns: 1fr; }

	.rj-rv-lightbox__nav { width: 40px; height: 40px; font-size: 26px; }
	.rj-rv-lightbox__nav--prev { left: 8px; }
	.rj-rv-lightbox__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.rj-rv *,
	.rj-rv-modal *,
	.rj-rv-lightbox * {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
