/* Siegel Social Proof Popups — matches the Siegel theme: white, black hairlines, Barlow Condensed + Jost */
.sgl-sp {
	--sgl-ink: #111111;
	--sgl-paper: #ffffff;
	--sgl-muted: #6b6b6b;
	--sgl-warm: #e9d9c4;
	--sgl-star: #111111;
	position: fixed;
	z-index: 99990;
	bottom: 20px;
	width: 340px;
	max-width: calc(100vw - 24px);
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px 34px 14px 12px;
	background: var(--sgl-paper);
	color: var(--sgl-ink);
	border: 1px solid var(--sgl-ink);
	box-shadow: 0 10px 30px rgba(17, 17, 17, .12);
	font-family: Jost, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s;
	box-sizing: border-box;
	overflow: hidden;
}
.sgl-sp * { box-sizing: border-box; }
.sgl-sp--sale   { left: 20px;  transform: translateX(-24px); }
.sgl-sp--review { right: 20px; bottom: 88px; transform: translateX(24px); } /* sits above the WhatsApp button */

.sgl-sp.is-on {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}

.sgl-sp__img {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	object-fit: cover;
	background: var(--sgl-warm);
	display: block;
}
.sgl-sp__body { min-width: 0; flex: 1; }

.sgl-sp__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: "Barlow Condensed", Jost, system-ui, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sgl-muted);
	margin-bottom: 3px;
	white-space: nowrap;
}
.sgl-sp__tick {
	width: 12px; height: 12px; flex: 0 0 12px;
	border-radius: 50%;
	background: var(--sgl-ink);
	position: relative;
}
.sgl-sp__tick::after {
	content: ""; position: absolute; left: 4px; top: 2px;
	width: 3px; height: 6px;
	border: solid #fff; border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}
.sgl-sp__title {
	font-weight: 600;
	font-size: 14px;
	color: var(--sgl-ink);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sgl-sp__line {
	color: var(--sgl-ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sgl-sp__line b { font-weight: 600; }
.sgl-sp__quote { font-style: italic; }
.sgl-sp__by {
	margin-top: 3px;
	font-size: 12px;
	color: var(--sgl-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sgl-sp__stars { color: var(--sgl-star); letter-spacing: 1px; font-size: 12px; }

.sgl-sp__close {
	position: absolute; top: 6px; right: 6px;
	width: 22px; height: 22px;
	border: 0; padding: 0; margin: 0;
	background: transparent; color: var(--sgl-ink);
	font: 400 18px/22px Jost, system-ui, sans-serif;
	cursor: pointer; opacity: .55;
}
.sgl-sp__close:hover { opacity: 1; }

.sgl-sp__bar {
	position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
	background: var(--sgl-ink);
	transform-origin: left center;
	transform: scaleX(0);
}
.sgl-sp.is-on .sgl-sp__bar { animation: sgl-sp-bar var(--sgl-dur, 6s) linear forwards; }
@keyframes sgl-sp-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Mobile: one popup at a time, centred above the WhatsApp button */
@media (max-width: 600px) {
	.sgl-sp,
	.sgl-sp--sale,
	.sgl-sp--review {
		left: 10px; right: 10px; width: auto; max-width: none;
		bottom: 76px;
		transform: translateY(16px);
		padding: 10px 32px 12px 10px;
	}
	.sgl-sp__img { flex-basis: 52px; width: 52px; height: 52px; }
	.sgl-sp.is-on { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sgl-sp, .sgl-sp.is-on { transition: opacity .2s; transform: none; }
	.sgl-sp.is-on .sgl-sp__bar { animation: none; }
}
