.spb-popup {
	position: fixed;
	bottom: 20px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 340px;
	max-width: calc(100vw - 30px);
	padding: 10px 14px 10px 10px;
	background: var(--spb-bg, #fff);
	color: var(--spb-color, #222);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
	border-left: 4px solid var(--spb-accent, #e63946);
	font-size: 13px;
	line-height: 1.4;
	opacity: 0;
	visibility: hidden;
	transition: transform .45s ease, opacity .45s ease, visibility .45s;
	box-sizing: border-box;
}
.spb-popup.spb-left  { left: 20px;  transform: translateX(-120%); }
.spb-popup.spb-right { right: 20px; transform: translateX(120%); }
.spb-popup.spb-show  { opacity: 1; visibility: visible; transform: translateX(0); }

.spb-popup .spb-img {
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	border-radius: 8px;
	overflow: hidden;
	display: block;
	background: #f2f2f2;
}
.spb-popup .spb-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}
.spb-popup .spb-body { min-width: 0; flex: 1; }
.spb-popup .spb-text strong { font-weight: 700; }
.spb-popup .spb-product {
	display: block;
	font-weight: 700;
	color: var(--spb-accent, #e63946);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 2px 0;
}
.spb-popup .spb-product:hover { text-decoration: underline; }
.spb-popup .spb-meta { font-size: 12px; opacity: .7; }
.spb-popup .spb-verified { font-size: 11px; color: #1a9b4b; margin-top: 2px; }

.spb-popup .spb-close {
	position: absolute;
	top: 2px;
	right: 6px;
	border: 0;
	background: transparent;
	color: inherit;
	opacity: .5;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 4px;
}
.spb-popup .spb-close:hover { opacity: 1; }

@media (max-width: 600px) {
	.spb-popup { bottom: 12px; width: calc(100vw - 24px); }
	.spb-popup.spb-left  { left: 12px; }
	.spb-popup.spb-right { right: 12px; }
	.spb-popup.spb-hide-mobile { display: none; }
}

/* Product page badge */
.spb-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 14px;
	padding: 8px 14px;
	background: #fff4f4;
	border: 1px dashed var(--spb-accent, #e63946);
	border-radius: 8px;
	color: #222;
	font-size: 14px;
	font-weight: 500;
}
.spb-badge strong { color: var(--spb-accent, #e63946); font-weight: 700; }
.spb-badge-icon {
	font-size: 18px;
	display: inline-block;
	animation: spb-pulse 1.4s ease-in-out infinite;
}
@keyframes spb-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
}

/* Badge "In stock" ke right side me */
.spb-stock-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 1em;
}
.spb-stock-row .stock,
.spb-stock-row p.stock { margin: 0; }
.spb-stock-row .spb-badge { margin: 0; padding: 6px 12px; font-size: 13px; }
