/* LUXE PULSE — Sales Pop (recent sales notifications, bottom-left) */

.lpsp-card {
	position: fixed;
	left: 22px;
	bottom: 22px;
	z-index: 99997;
	display: none;
	width: 336px;
	max-width: calc(100vw - 32px);
	/* Retract towards the left edge, and glide when the bubble pushes it up. */
	transform-origin: left center;
	transition: bottom 0.26s cubic-bezier(0.22, 1, 0.36, 1);
	background: var(--lpsp-bg, #161513);
	border: 1px solid var(--lpsp-bg, #161513);
	border-left: 3px solid var(--lpsp-line, #a98c4e);
	border-radius: 8px;
	overflow: hidden;
	color: var(--lpsp-fg, #ffffff);
	box-shadow: 0 18px 44px rgba(23, 21, 19, 0.34);
	font-family: inherit;
}

.lpsp-card.is-visible {
	display: flex;
	animation: lpsp-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.lpsp-card.is-leaving {
	animation: lpsp-out 0.22s ease forwards;
}

/* Keep clear of the first-order popup bubble when it is on screen. */
.lpsp-card.lpfs-raised {
	bottom: 96px;
}

.lpsp-thumb {
	flex: none;
	width: 72px;
	background: var(--lpsp-thumb, rgba(255, 255, 255, 0.08)) center / cover no-repeat;
}

.lpsp-body {
	flex: 1;
	min-width: 0;
	padding: 11px 13px;
}

.lpsp-name {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--lpsp-fg, #ffffff);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
}

.lpsp-name:hover {
	text-decoration: underline;
}

.lpsp-who {
	margin: 5px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--lpsp-muted, rgba(255, 255, 255, 0.82));
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lpsp-when {
	margin: 3px 0 0;
	font-size: 11.5px;
	color: var(--lpsp-sub, rgba(255, 255, 255, 0.52));
}

.lpsp-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: var(--lpsp-fg, #ffffff);
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lpsp-close:hover {
	background: var(--lpsp-fg, #ffffff);
	color: var(--lpsp-bg, #161513);
}

@keyframes lpsp-in {
	from { opacity: 0; transform: translateY(14px); }
}

/* "Retract": slide back out to the left edge while shrinking — a plain fade
   looked like the card simply froze there. */
@keyframes lpsp-out {
	to { opacity: 0; transform: translateX(-115%) scale(0.86); }
}

@media (max-width: 600px) {
	.lpsp-card {
		left: 12px;
		bottom: 12px;
		width: 272px;
	}

	/* Fallback only — sales-pop.js measures the bubble and sets an inline
	   bottom. The old 78px sat inside the bubble's 22–84px band (overlap). */
	.lpsp-card.lpfs-raised {
		bottom: 96px;
	}

	.lpsp-thumb {
		width: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lpsp-card.is-visible,
	.lpsp-card.is-leaving {
		animation: none;
	}
}
