/* Recommended Product Promo — shared accent, matches the Blocksy palette like the other affiliate plugins on this site. */
#rpp-popup,
.rpp-floating {
	--rpp-accent: var(--theme-palette-color-1, #f59e0b);
}

html.rpp-popup-open {
	overflow: hidden;
}

/* ── Popup ─────────────────────────────────────────────────────────────── */

#rpp-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

#rpp-popup[hidden] {
	display: none;
}

.rpp-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 20, 0.6);
}

.rpp-popup__panel {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: #fff;
	border-radius: 14px;
	padding: 28px 24px 24px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: rpp-pop-in 0.2s ease-out;
}

@keyframes rpp-pop-in {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.rpp-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
	padding: 4px;
}
.rpp-popup__close:hover { color: #374151; }

.rpp-popup__eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rpp-accent);
}

.rpp-popup__title {
	margin: 0 0 16px;
	font-size: 19px;
	line-height: 1.3;
	color: #111827;
}

.rpp-popup__media {
	display: block;
	cursor: pointer;
}

.rpp-popup__image {
	max-width: 100%;
	max-height: 160px;
	object-fit: contain;
	margin: 0 auto 14px;
}

.rpp-popup__name {
	margin: 0 0 8px;
	font-weight: 600;
	color: #111827;
}

.rpp-popup__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 14px;
	color: #4b5563;
}

.rpp-popup__score {
	font-weight: 700;
	color: var(--rpp-accent);
}

.rpp-star--full  { color: var(--rpp-accent); }
.rpp-star--empty { color: #d1d5db; }

.rpp-popup__cta,
.rpp-floating__cta {
	display: block;
	background: var(--rpp-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border-radius: 8px;
	padding: 12px 18px;
	cursor: pointer;
}
.rpp-popup__cta:hover,
.rpp-floating__cta:hover { filter: brightness(0.94); color: #fff; }

.rpp-popup__dismiss {
	display: block;
	width: 100%;
	margin-top: 10px;
	background: none;
	border: none;
	font-size: 13px;
	color: #9ca3af;
	cursor: pointer;
	text-decoration: underline;
}
.rpp-popup__dismiss:hover { color: #6b7280; }

/* ── Floating sidebar widget (desktop only) ───────────────────────────── */

.rpp-floating {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* .rpp-floating--sticky carries no positioning of its own — sticky-widget.js
   toggles position:fixed/absolute inline once the widget scrolls into view,
   since Blocksy's #main-container overflow:hidden breaks native CSS sticky. */

.rpp-floating__placeholder {
	width: 100%;
}

.rpp-floating__eyebrow {
	margin: 14px 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--rpp-accent);
}

.rpp-floating__media {
	display: block;
	cursor: pointer;
}

.rpp-floating__image {
	max-width: 100%;
	max-height: 130px;
	object-fit: contain;
	margin: 0 auto 10px;
}

.rpp-floating__name {
	margin: 0 0 4px;
	font-weight: 600;
	font-size: 14px;
	color: #111827;
}

.rpp-floating__score {
	margin: 0 0 12px;
	font-size: 13px;
	color: #4b5563;
}

/* This widget is a desktop placement only — collapse it entirely on smaller
   viewports rather than let it compete with the single-column layout. */
@media (max-width: 999px) {
	.rpp-floating {
		display: none !important;
	}
}
