/**
 * LS Social Proof — live viewer counter.
 * Sits between the price and the add-to-cart form on single product pages.
 * Radius follows the LS Fabrication standard: 6px for inner elements.
 */

.lsv {
	--lsv-accent: #ff0044;
	display: none;
	align-items: center;
	gap: 9px;
	box-sizing: border-box;
	width: -moz-fit-content;
	width: fit-content;
	max-width: 100%;
	margin: -4px 0 18px;
	padding: 8px 13px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.86);
	font-family: var(--ls-font-body, Inter, Helvetica, Arial, sans-serif);
	font-size: var(--ls-small, 14px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.lsv.is-mounted {
	display: flex;
}

.lsv.is-visible {
	opacity: 1;
}

.lsv--plain {
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.lsv__dot {
	position: relative;
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lsv-accent);
	box-shadow: 0 0 0 0 rgba(255, 0, 68, 0.55);
	animation: lsv-pulse 2.4s ease-out infinite;
}

.lsv__text {
	display: block;
	transition: opacity 0.18s ease;
}

.lsv.is-ticking .lsv__text {
	opacity: 0.35;
}

@keyframes lsv-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 0, 68, 0.55); }
	70%  { box-shadow: 0 0 0 7px rgba(255, 0, 68, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 0, 68, 0); }
}

/* Light backgrounds — keep it readable if the summary is ever inverted. */
.et_pb_bg_layout_light .lsv,
.lsv--on-light {
	background: rgba(0, 0, 0, 0.04);
	border-color: rgba(0, 0, 0, 0.10);
	color: rgba(0, 0, 0, 0.75);
}

/* Divi drops to 30px module spacing at its 980px breakpoint, and the price
   paragraph loses its 4px of trailing space there. */
@media (max-width: 980px) {
	.lsv {
		margin: 0 0 30px;
		font-size: var(--ls-small, 14px);
		font-family: var(--ls-font-body, Inter, Helvetica, Arial, sans-serif);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lsv__dot {
		animation: none;
	}
	.lsv,
	.lsv__text {
		transition: none;
	}
}
