/* ── Palette + sizing (override these to match your theme) ── */
.sr-reaction-bar {
	--sr-dark: #2d2f2e;
	--sr-cream: #f2ebe0;
	--sr-accent: #c5a855;
	--sr-accent-dark: #b09545;
	--sr-emoji-size: 18px;
}

/* ── Outer card: flush, no border-radius, stacks under the image ── */
.sr-reaction-bar {
	margin: 0 0 32px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	font-family: inherit;
}

.sr-reaction-bar.sr-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Ribbon: dark strip with a running total on the left ── */
.sr-ribbon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--sr-dark);
	color: #fff;
	padding: 10px 16px;
	font-size: 13px;
	line-height: normal;
}

.sr-ribbon-total {
	color: var(--sr-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ── Emoji strip: cream background directly under the image ── */
.sr-emoji-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 12px 24px;
	background: var(--sr-cream);
	flex-wrap: wrap;
}

.sr-reaction-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	background: transparent;
	padding: 6px 10px;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.15s ease, transform 0.15s ease;
}

.sr-reaction-btn:hover {
	background: rgba(0, 0, 0, 0.06);
}

.sr-reaction-btn:active {
	transform: scale(0.94);
}

.sr-reaction-btn.sr-active {
	background: rgba(197, 168, 85, 0.25);
}

.sr-reaction-btn .sr-emoji {
	font-size: var(--sr-emoji-size);
}

.sr-reaction-btn .sr-count {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: #555;
	min-width: 1ch;
}

.sr-reaction-btn.sr-just-voted .sr-emoji {
	animation: sr-pop 0.35s ease;
}

@keyframes sr-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.4); }
	100% { transform: scale(1); }
}

@media (max-width: 480px) {
	.sr-ribbon {
		padding: 8px 12px;
	}
	.sr-ribbon-total {
		font-size: 11px;
	}
	.sr-emoji-row {
		gap: 3px;
		padding: 10px 12px;
	}
	.sr-reaction-btn {
		padding: 5px 8px;
		font-size: 13px;
	}
}
