/* TSO Social Proof v1.0.1 */
.tso-sp {
	--tso-sp-bg: #121212;
	--tso-sp-fg: #ffffff;
	--tso-sp-muted: rgba(255, 255, 255, 0.62);
	--tso-sp-accent: #ffd400;
	--tso-sp-border: rgba(255, 255, 255, 0.08);
	--tso-sp-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);

	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 99990;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 320px;
	max-width: calc(100vw - 96px); /* leaves room for the chat bubble on the right */
	min-height: 58px;
	padding: 8px 30px 8px 8px;
	border-radius: 14px;
	border: 1px solid var(--tso-sp-border);
	background: var(--tso-sp-bg);
	color: var(--tso-sp-fg);
	box-shadow: var(--tso-sp-shadow);
	font-family: inherit;
	line-height: 1.25;
	text-decoration: none !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;

	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.28s ease, bottom 0.2s ease;
}

.tso-sp.tso-sp--light {
	--tso-sp-bg: #ffffff;
	--tso-sp-fg: #111111;
	--tso-sp-muted: #6b6b6b;
	--tso-sp-accent: #f5c400;
	--tso-sp-border: rgba(0, 0, 0, 0.08);
	--tso-sp-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.tso-sp.is-in {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.tso-sp__img {
	position: relative;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	overflow: hidden;
	background: #f2f2f2;
}

.tso-sp__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0 !important;
}

.tso-sp__text {
	flex: 1 1 auto;
	min-width: 0;
}

.tso-sp__who {
	display: block;
	font-size: 11.5px;
	color: var(--tso-sp-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tso-sp__who b {
	color: var(--tso-sp-fg);
	font-weight: 600;
}

.tso-sp__prod {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 700;
	color: var(--tso-sp-fg);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tso-sp__meta {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 3px;
	font-size: 10.5px;
	color: var(--tso-sp-muted);
	white-space: nowrap;
	overflow: hidden;
}

.tso-sp__meta > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
}

.tso-sp__tick {
	flex: 0 0 12px;
}

.tso-sp__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--tso-sp-accent);
	color: #111;
}

.tso-sp__tick svg {
	width: 8px;
	height: 8px;
}

.tso-sp__close {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--tso-sp-muted);
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.tso-sp__close:hover,
.tso-sp__close:focus-visible {
	color: var(--tso-sp-fg);
	background: var(--tso-sp-border);
}

.tso-sp__close svg {
	width: 10px;
	height: 10px;
}

@media (min-width: 768px) {
	.tso-sp {
		left: 20px;
		max-width: 340px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tso-sp {
		transition: opacity 0.2s linear;
		transform: none;
	}
}
