/* =========================================================
   Rehnumaa Floating Reviews - Styles
   ========================================================= */

:root {
	--rfr-accent: #ed8936;
	--rfr-accent-dark: #c2670f;
	--rfr-text: #222;
	--rfr-muted: #777;
	--rfr-border: #e6e6e6;
	--rfr-bg: #ffffff;
}

/* ---------- Floating Tab Button ---------- */
.rfr-floating-btn {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%) translateX(0);
	background: var(--rfr-accent);
	color: #fff;
	padding: 14px 10px;
	border-radius: 8px 0 0 8px;
	box-shadow: -2px 2px 10px rgba(0,0,0,0.18);
	cursor: pointer;
	z-index: 99998;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	transition: background 0.2s ease, transform 0.2s ease;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	user-select: none;
}

.rfr-floating-btn:hover {
	background: var(--rfr-accent-dark);
}

.rfr-floating-btn .rfr-btn-label {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
}

.rfr-floating-btn .rfr-btn-rating {
	writing-mode: horizontal-tb;
	font-size: 11px;
	background: rgba(255,255,255,0.25);
	border-radius: 20px;
	padding: 2px 8px;
	display: flex;
	align-items: center;
	gap: 3px;
}

/* ---------- Overlay + Slide-in Panel ---------- */
.rfr-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.rfr-overlay.rfr-open {
	opacity: 1;
	pointer-events: auto;
}

.rfr-panel {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 380px;
	max-width: 92vw;
	background: var(--rfr-bg);
	box-shadow: -6px 0 24px rgba(0,0,0,0.2);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--rfr-text);
}

.rfr-overlay.rfr-open .rfr-panel {
	transform: translateX(0);
}

.rfr-panel-header {
	padding: 18px 20px;
	border-bottom: 1px solid var(--rfr-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rfr-panel-header h3 {
	margin: 0 0 4px;
	font-size: 18px;
}

.rfr-panel-summary {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--rfr-muted);
}

.rfr-panel-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--rfr-muted);
	padding: 4px 8px;
}

.rfr-panel-close:hover {
	color: var(--rfr-text);
}

.rfr-panel-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
}

.rfr-panel-footer {
	padding: 14px 20px;
	border-top: 1px solid var(--rfr-border);
	text-align: center;
}

.rfr-panel-footer a {
	display: inline-block;
	background: var(--rfr-accent);
	color: #fff;
	padding: 10px 20px;
	border-radius: 24px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.rfr-panel-footer a:hover {
	background: var(--rfr-accent-dark);
}

/* ---------- Review Cards (shared by panel + shortcode) ---------- */
.rfr-reviews-wrapper.rfr-layout-list .rfr-review-card {
	margin-bottom: 16px;
}

.rfr-reviews-wrapper.rfr-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.rfr-review-card {
	border: 1px solid var(--rfr-border);
	border-radius: 10px;
	padding: 16px;
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--rfr-text);
}

.rfr-review-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.rfr-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--rfr-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
}

.rfr-review-meta {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.rfr-author {
	font-weight: 600;
	font-size: 14px;
}

.rfr-stars {
	color: var(--rfr-accent);
	font-size: 13px;
	letter-spacing: 1px;
}

.rfr-date {
	font-size: 12px;
	color: var(--rfr-muted);
	white-space: nowrap;
}

.rfr-content {
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 10px;
	color: var(--rfr-text);
}

.rfr-product-link {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	border-top: 1px solid var(--rfr-border);
	padding-top: 10px;
	margin-top: 6px;
}

.rfr-product-thumb img {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.rfr-product-name {
	font-size: 12px;
	color: var(--rfr-accent-dark);
	font-weight: 600;
}

.rfr-empty {
	color: var(--rfr-muted);
	font-size: 14px;
	text-align: center;
	padding: 30px 0;
}

.rfr-rating-number {
	font-weight: 700;
}

.rfr-rating-count {
	color: var(--rfr-muted);
}

.rfr-badge-empty {
	font-size: 13px;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.rfr-floating-btn {
		padding: 10px 8px;
	}
	.rfr-floating-btn .rfr-btn-label {
		font-size: 12px;
	}
	.rfr-panel {
		width: 100vw;
		max-width: 100vw;
	}
}
