.ctrspace-rs {
	--crs-bg: #ffffff;
	--crs-fg: #1d2327;
	--crs-muted: #646970;
	--crs-border: rgba(0, 0, 0, 0.08);
	position: fixed;
	bottom: 20px;
	z-index: 99990;
	display: flex;
	align-items: flex-start;
	width: 340px;
	max-width: calc(100vw - 32px);
	box-sizing: border-box;
	background: var(--crs-bg);
	color: var(--crs-fg);
	border: 1px solid var(--crs-border);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
	font-size: 14px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}
.ctrspace-rs--left { left: 20px; }
.ctrspace-rs--right { right: 20px; }
.ctrspace-rs.is-in {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.ctrspace-rs--preview { outline: 2px dashed #d63638; outline-offset: 2px; }

.ctrspace-rs__body {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	padding: 12px 4px 12px 12px;
	color: inherit !important;
	text-decoration: none !important;
}
.ctrspace-rs__img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
	margin: 0;
}
.ctrspace-rs__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ctrspace-rs__who { color: var(--crs-muted); font-size: 13px; }
.ctrspace-rs__product {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
a.ctrspace-rs__body:hover .ctrspace-rs__product,
a.ctrspace-rs__body:focus-visible .ctrspace-rs__product { text-decoration: underline; }
.ctrspace-rs__meta { color: var(--crs-muted); font-size: 12px; margin-top: 2px; }

.ctrspace-rs__close {
	flex: 0 0 auto;
	margin: 6px 6px 0 0;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--crs-muted);
	font-size: 20px;
	line-height: 28px;
	cursor: pointer;
}
.ctrspace-rs__close:hover,
.ctrspace-rs__close:focus-visible { background: rgba(0, 0, 0, 0.06); color: var(--crs-fg); }

@media (prefers-color-scheme: dark) {
	.ctrspace-rs {
		--crs-bg: #1e1f22;
		--crs-fg: #f0f0f1;
		--crs-muted: #a7aaad;
		--crs-border: rgba(255, 255, 255, 0.1);
	}
	.ctrspace-rs__close:hover,
	.ctrspace-rs__close:focus-visible { background: rgba(255, 255, 255, 0.08); }
}

@media (max-width: 600px) {
	.ctrspace-rs { bottom: 12px; width: auto; left: 16px; right: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ctrspace-rs { transition: opacity 0.2s linear; transform: none; }
}

@media print {
	.ctrspace-rs { display: none !important; }
}
