/* Bloc Social Proof: community proof on reward cards. */
.bloc-sp {
	--bloc-sp-green: #1e8a4c;
	--bloc-sp-ink: #1c1c1c;
	--bloc-sp-muted: #7a7a7a;
	--bloc-sp-line: #ececec;
	--bloc-sp-avatar-bg: #f2f2f2;

	display: none;
	margin-top: 10px;
	text-align: left;
	line-height: 1.3;
}
.bloc-sp.is-ready {
	display: block;
	animation: bloc-sp-in 0.35s ease-out both;
}

/* "✓ 182 times redeemed" */
.bloc-sp__count {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--bloc-sp-green);
}
.bloc-sp__check {
	display: inline-flex;
	flex: none;
}

/* Divider between the two rows, only when both are shown. */
.bloc-sp.has-both .bloc-sp__recent {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--bloc-sp-line);
}

/* Avatar + "Michelle R. claimed this" / "Yesterday" */
.bloc-sp__recent {
	display: flex;
	align-items: center;
	gap: 10px;
}
.bloc-sp__avatar {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bloc-sp-avatar-bg);
	color: #555;
}
/* Claims under an hour old get a small live dot on the avatar. */
.bloc-sp__avatar.is-live::after {
	content: "";
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--bloc-sp-green);
	box-shadow: 0 0 0 2px #fff;
	animation: bloc-sp-pulse 2s infinite;
}
.bloc-sp__who {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}
.bloc-sp__name {
	font-size: 13px;
	font-weight: 700;
	color: var(--bloc-sp-ink);
	overflow-wrap: anywhere;
}
.bloc-sp__time {
	margin-top: 1px;
	font-size: 12px;
	color: var(--bloc-sp-muted);
}

/* Single reward page: a touch larger, under the price.
   The theme centres everything in the summary, so the block is centred as a unit
   while the name and time stay left-aligned beside the avatar. */
.bloc-sp--single {
	margin: 6px auto 18px;
	max-width: 360px;
}
.bloc-sp--single .bloc-sp__count,
.bloc-sp--single .bloc-sp__recent {
	justify-content: center;
}
.product-info .bloc-sp--single .bloc-sp__who,
.product-info .bloc-sp--single .bloc-sp__who > span,
.bloc-sp--single .bloc-sp__who {
	text-align: left;
}
.bloc-sp--single .bloc-sp__count,
.bloc-sp--single .bloc-sp__name { font-size: 14px; }
.bloc-sp--single .bloc-sp__avatar { width: 34px; height: 34px; }

/* Flatsome dark sections. */
.dark .bloc-sp {
	--bloc-sp-green: #4cc785;
	--bloc-sp-ink: #fff;
	--bloc-sp-muted: rgba(255, 255, 255, 0.65);
	--bloc-sp-line: rgba(255, 255, 255, 0.15);
	--bloc-sp-avatar-bg: rgba(255, 255, 255, 0.12);
}
.dark .bloc-sp__avatar { color: rgba(255, 255, 255, 0.8); }

@keyframes bloc-sp-in {
	from { opacity: 0; transform: translateY(2px); }
	to { opacity: 1; transform: none; }
}
@keyframes bloc-sp-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
	.bloc-sp.is-ready, .bloc-sp__avatar.is-live::after { animation: none; }
}
