/* Review Plus - Journal3 */
.rp-summary,
.rp-upload,
.rp-review-extra,
.rp-lb {
	--rp-star: #f5a623;
	--rp-star-empty: #dcdcdc;
	--rp-border: rgba(0, 0, 0, .1);
	--rp-soft: rgba(0, 0, 0, .035);
	--rp-muted: rgba(0, 0, 0, .55);
	--rp-accent: #2b7a4b;
	--rp-radius: 6px;
	box-sizing: border-box;
}

.rp-summary *,
.rp-upload *,
.rp-review-extra *,
.rp-lb * {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- stars */
.rp-stars {
	position: relative;
	display: inline-block;
	line-height: 1;
	font-size: 16px;
	color: var(--rp-star-empty);
	white-space: nowrap;
	vertical-align: middle;
}

.rp-stars::before,
.rp-stars-fill::before {
	content: "\2605\2605\2605\2605\2605";
	letter-spacing: 2px;
}

.rp-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--rp-star);
}

.rp-stars-lg {
	font-size: 22px;
}

/* -------------------------------------------------------------- summary */
.rp-summary {
	border: 1px solid var(--rp-border);
	border-radius: var(--rp-radius);
	padding: 18px 20px;
	margin: 0 0 20px;
}

.rp-summary-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
}

.rp-summary-score {
	flex: 0 0 auto;
	min-width: 140px;
	text-align: center;
}

.rp-avg {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.05;
	margin-bottom: 6px;
}

.rp-avg-max {
	font-size: 16px;
	font-weight: 400;
	color: var(--rp-muted);
	margin-left: 2px;
}

.rp-count {
	margin-top: 6px;
	font-size: 13px;
	color: var(--rp-muted);
}

.rp-summary-bars {
	flex: 1 1 260px;
	min-width: 0;
}

.rp-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 1;
	padding: 3px 0;
}

.rp-bar-label {
	flex: 0 0 34px;
	white-space: nowrap;
}

.rp-bar-star {
	color: var(--rp-star);
}

.rp-bar {
	flex: 1 1 auto;
	height: 8px;
	border-radius: 4px;
	background: var(--rp-soft);
	box-shadow: inset 0 0 0 1px var(--rp-border);
	overflow: hidden;
}

.rp-bar-fill {
	display: block;
	height: 100%;
	background: var(--rp-star);
	border-radius: 4px;
}

.rp-bar-count {
	flex: 0 0 36px;
	text-align: right;
	color: var(--rp-muted);
	font-variant-numeric: tabular-nums;
}

.rp-gallery {
	border-top: 1px solid var(--rp-border);
	margin-top: 16px;
	padding-top: 14px;
}

.rp-gallery-title {
	font-weight: 600;
	margin-bottom: 10px;
}

.rp-gallery-items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ------------------------------------------------------------ thumbnails */
.rp-thumb {
	position: relative;
	display: inline-block;
	border-radius: var(--rp-radius);
	overflow: hidden;
	border: 1px solid var(--rp-border);
	line-height: 0;
	cursor: zoom-in;
	transition: opacity .15s ease;
}

.rp-thumb:hover {
	opacity: .85;
}

.rp-thumb img {
	display: block;
	max-width: 100%;
	height: auto;
	object-fit: cover;
}

.rp-thumb-gallery img {
	width: 80px;
	height: 80px;
}

.rp-more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
}

.rp-hidden {
	display: none !important;
}

/* --------------------------------------------- per-review images + reply */
.rp-review-extra {
	display: block;
	clear: both;
}

.rp-review-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 4px;
}

.rp-review-images .rp-thumb img {
	width: 72px;
	height: 72px;
}

.rp-reply {
	display: block;
	margin: 12px 0 4px;
	padding: 10px 14px;
	border-left: 3px solid var(--rp-accent);
	border-radius: 0 var(--rp-radius) var(--rp-radius) 0;
	background: var(--rp-soft);
	font-style: normal;
}

.rp-reply-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: 4px;
	font-size: 13px;
}

.rp-reply-icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--rp-accent);
	position: relative;
	flex: 0 0 14px;
}

.rp-reply-icon::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 2px;
	width: 4px;
	height: 7px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.rp-reply-title {
	font-weight: 600;
	color: var(--rp-accent);
}

.rp-reply-date {
	color: var(--rp-muted);
	font-size: 12px;
}

.rp-reply-text {
	display: block;
}

/* --------------------------------------------------------- upload widget */
.rp-upload {
	display: block;
	clear: both;
	width: 100%;
	margin: 0 0 15px;
	padding: 0;
	text-align: left;
}

.rp-upload .rp-upload-label {
	display: block;
	margin: 0 0 8px;
	font-weight: 600;
	text-align: left;
}

.rp-upload-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rp-tile,
.rp-upload-add {
	position: relative;
	width: 84px;
	height: 84px;
	border-radius: var(--rp-radius);
	flex: 0 0 84px;
}

.rp-tile {
	border: 1px solid var(--rp-border);
	background: var(--rp-soft) center / cover no-repeat;
}

.rp-upload-add {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	border: 2px dashed var(--rp-border);
	background: transparent;
	color: var(--rp-muted);
	font: inherit;
	font-size: 12px;
	line-height: 1.1;
	cursor: pointer;
	padding: 0;
	transition: border-color .15s ease, color .15s ease;
}

.rp-upload-add:hover,
.rp-upload-add:focus {
	border-color: currentColor;
	color: inherit;
	outline: none;
}

.rp-upload-plus {
	font-size: 26px;
	line-height: 1;
	font-weight: 300;
}

.rp-tile-remove {
	position: absolute;
	top: -7px;
	right: -7px;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #333;
	color: #fff;
	font-size: 15px;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	z-index: 2;
}

.rp-tile-remove:hover {
	background: #c0392b;
}

.rp-spinner {
	display: none;
	position: absolute;
	inset: 0;
	margin: auto;
	width: 26px;
	height: 26px;
	border: 3px solid rgba(255, 255, 255, .6);
	border-top-color: #555;
	border-radius: 50%;
	animation: rp-spin .8s linear infinite;
}

.rp-loading .rp-spinner {
	display: block;
}

.rp-loading::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(255, 255, 255, .55);
}

@keyframes rp-spin {
	to {
		transform: rotate(360deg);
	}
}

.rp-upload-note {
	display: inline-block;
	padding: 10px 14px;
	border: 1px dashed var(--rp-border);
	border-radius: var(--rp-radius);
	font-size: 13px;
	color: var(--rp-muted);
}

.rp-upload-note a {
	font-weight: 600;
	text-decoration: underline;
}

.rp-upload-hint {
	margin-top: 6px;
	font-size: 12px;
	color: var(--rp-muted);
}

.rp-upload-error:not(:empty) {
	margin-top: 6px;
	font-size: 13px;
}

/* -------------------------------------------------------------- lightbox */
html.rp-lb-lock,
html.rp-lb-lock body {
	overflow: hidden;
}

.rp-lb {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .88);
	padding: 48px 56px;
}

.rp-lb.rp-open {
	display: flex;
}

.rp-lb-figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.rp-lb-img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 130px);
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
	background: #fff;
}

.rp-lb-caption {
	margin-top: 12px;
	color: rgba(255, 255, 255, .85);
	font-size: 13px;
	text-align: center;
}

.rp-lb-btn {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	padding: 0;
	border-radius: 50%;
	line-height: 1;
	transition: background .15s ease;
}

.rp-lb-btn:hover,
.rp-lb-btn:focus {
	background: rgba(255, 255, 255, .25);
	outline: none;
}

.rp-lb-close {
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	font-size: 28px;
}

.rp-lb-prev,
.rp-lb-next {
	top: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	font-size: 34px;
}

.rp-lb-prev {
	left: 8px;
}

.rp-lb-next {
	right: 8px;
}

.rp-lb.rp-single .rp-lb-prev,
.rp-lb.rp-single .rp-lb-next {
	display: none;
}

@media (max-width: 600px) {
	.rp-summary {
		padding: 14px;
	}

	.rp-summary-score {
		width: 100%;
	}

	.rp-lb {
		padding: 48px 8px;
	}

	.rp-lb-prev,
	.rp-lb-next {
		top: auto;
		bottom: 10px;
		margin-top: 0;
	}

	.rp-lb-prev {
		left: calc(50% - 54px);
	}

	.rp-lb-next {
		right: calc(50% - 54px);
	}
}
