.pb-sales {
	position: fixed;
	left: 22px;
	bottom: 22px;
	z-index: 130;
	width: min(340px, calc(100vw - 140px));
	pointer-events: none;
}

.pb-sales.is-on {
	pointer-events: auto;
}

.pb-sales__card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 40px 12px 10px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
	text-decoration: none;
	color: inherit;
	transform: translateX(-28px) scale(0.96);
	opacity: 0;
	filter: blur(2px);
	transition:
		transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 420ms ease,
		filter 420ms ease,
		box-shadow 220ms ease;
}

.pb-sales.is-on .pb-sales__card {
	transform: translateX(0) scale(1);
	opacity: 1;
	filter: blur(0);
}

.pb-sales.is-on .pb-sales__card:hover {
	box-shadow: 0 20px 46px rgba(15, 23, 42, 0.18);
	transform: translateY(-2px) scale(1);
}

.pb-sales__media {
	position: relative;
	width: 58px;
	height: 58px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #f3f4f6;
}

.pb-sales__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pb-sales__pulse {
	position: absolute;
	top: 6px;
	left: 6px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pb-action-blue, #2563EB);
	box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.65);
	animation: pb-sales-pulse 1.8s ease-out infinite;
}

.pb-sales__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pb-sales__kicker {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--pb-action-blue, #2563EB);
}

.pb-sales__title {
	font-size: 14px;
	line-height: 1.3;
	font-weight: 800;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pb-sales__meta {
	font-size: 12px;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pb-sales__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #4b5563;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.pb-sales.is-on .pb-sales__close {
	opacity: 1;
	transform: scale(1);
}

.pb-sales__close:hover {
	background: #e5e7eb;
	color: #111827;
}

.pb-sales__close .pb-icon {
	width: 12px;
	height: 12px;
}

.pb-sales__bar {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 6px;
	height: 3px;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
	opacity: 0;
}

.pb-sales.is-on .pb-sales__bar {
	opacity: 1;
}

.pb-sales__bar::after {
	content: "";
	display: block;
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, var(--pb-action-blue, #2563EB), #1E4FD6);
	transform-origin: left center;
	transform: scaleX(0);
}

.pb-sales.is-on .pb-sales__bar::after {
	animation: pb-sales-bar 6.4s linear forwards;
}

@keyframes pb-sales-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55); }
	70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@keyframes pb-sales-bar {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

@media (max-width: 900px) {
	.pb-sales {
		left: 12px;
		bottom: calc(var(--pb-bottom-nav-h, 64px) + 16px + env(safe-area-inset-bottom));
		width: min(300px, calc(100vw - 132px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.pb-sales__card,
	.pb-sales__close,
	.pb-sales__pulse,
	.pb-sales__bar::after {
		animation: none !important;
		transition: none !important;
		filter: none;
	}
	.pb-sales.is-on .pb-sales__card {
		opacity: 1;
		transform: none;
	}
}
