/**
 * Loox / Fansidea floating review popup — right side, current product.
 */

.fi-rp {
	position: fixed;
	right: 24px;
	top: auto;
	bottom: 120px;
	left: auto;
	z-index: 99990;
	width: 280px;
	max-width: calc(100vw - 32px);
	font-family: Outfit, "Segoe UI", sans-serif;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.28s ease, transform 0.28s ease;
	pointer-events: none;
}

.fi-rp.is-ready {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.fi-rp.is-hiding {
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.fi-rp.is-gone {
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
}

.fi-rp__viewport {
	position: relative;
}

.fi-rp__slide {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.fi-rp__slide.is-in {
	opacity: 1;
	transform: translateY(0);
}

.fi-rp__slide.is-out {
	opacity: 0;
	transform: translateY(-6px);
}

.fi-rp__card {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
	padding: 14px 14px 12px;
	box-sizing: border-box;
}

.fi-rp__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: #ececec;
	color: #666;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.fi-rp__close:hover {
	background: #e0e0e0;
	color: #111;
}

.fi-rp__top {
	padding-right: 26px;
	margin-bottom: 8px;
}

.fi-rp__author {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #111;
	line-height: 1.25;
	margin-bottom: 4px;
}

.fi-rp__stars {
	display: flex;
	gap: 1px;
	color: #e8c24a;
	line-height: 1;
}

.fi-rp__star {
	color: #ddd;
	display: block;
}

.fi-rp__star.is-on {
	color: #e8c24a;
}

.fi-rp__text {
	margin: 0 0 12px;
	font-size: 12.5px;
	line-height: 1.5;
	color: #333;
	font-weight: 400;
}

.fi-rp__product {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 11px;
	border-top: 1px solid #ececec;
	text-decoration: none;
	color: inherit;
}

a.fi-rp__product:hover .fi-rp__pname {
	text-decoration: underline;
}

.fi-rp__thumb {
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 3px;
	object-fit: cover;
	background: #f3f3f3;
	flex: 0 0 auto;
}

.fi-rp__thumb--empty {
	background: #f0f0f0;
}

.fi-rp__pname {
	font-size: 12px;
	font-weight: 500;
	color: #555;
	line-height: 1.35;
	min-width: 0;
}

.fi-rp__brand {
	margin-top: 5px;
	text-align: right;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #b5b5b5;
	line-height: 1;
	user-select: none;
}

@media (max-width: 640px) {
	.fi-rp {
		right: 12px;
		bottom: 100px;
		width: min(260px, calc(100vw - 24px));
	}
}

body.fi-rm-open .fi-rp {
	opacity: 0;
	pointer-events: none;
}
