/* ============================================================
 * Telos FOMO — sales notification pop-ups
 * Matches the Telos design system: dark surfaces, lime accent,
 * Inter body, Archivo emphasis.
 * ============================================================ */

#tfomo-root {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 99980;          /* below WP admin bar (99999), above everything else */
	pointer-events: none;
	max-width: 360px;
	width: calc(100vw - 40px);
}

.tfomo-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 38px 12px 14px;
	background: rgba(20, 23, 20, 0.96);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-left: 3px solid #9be000;
	border-radius: 10px;
	box-shadow:
		0 14px 44px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(155, 224, 0, 0.10);
	color: #ffffff;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	pointer-events: auto;
	cursor: pointer;
	transform: translate3d(0, 24px, 0);
	opacity: 0;
	transition:
		transform 0.5s cubic-bezier(0.2, 0.85, 0.25, 1),
		opacity   0.4s cubic-bezier(0.2, 0.85, 0.25, 1),
		border-color 0.2s,
		box-shadow   0.2s;
	will-change: transform, opacity;
}

.tfomo-card.tfomo-in {
	transform: translate3d(0, 0, 0);
	opacity: 1;
}

.tfomo-card.tfomo-out {
	transform: translate3d(0, 24px, 0);
	opacity: 0;
}

.tfomo-card.tfomo-static {
	transition: none;
	transform: none;
	opacity: 1;
	cursor: default;
}

.tfomo-card:hover {
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow:
		0 18px 56px rgba(0, 0, 0, 0.65),
		0 0 0 1px rgba(155, 224, 0, 0.22);
}

/* Product thumbnail */
.tfomo-img {
	flex: 0 0 52px;
	height: 52px;
	border-radius: 6px;
	overflow: hidden;
	background: #0a0c0a;
	border: 1px solid rgba(255, 255, 255, 0.07);
	position: relative;
}

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

.tfomo-img-placeholder {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, #1a1d1a, #0d100d),
		radial-gradient(circle at 30% 30%, rgba(155, 224, 0, 0.08), transparent 70%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tfomo-img-placeholder::after {
	content: "";
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid rgba(155, 224, 0, 0.35);
	background: rgba(155, 224, 0, 0.06);
}

/* Body */
.tfomo-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.tfomo-line1 {
	font-size: 13px;
	color: #ffffff;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
	letter-spacing: 0.005em;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tfomo-line1 strong {
	font-weight: 700;
}

.tfomo-line2 {
	font-size: 12.5px;
	color: #c5cdc5;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 1px;
}

.tfomo-line2 strong {
	color: #9be000;
	font-weight: 700;
	font-family: "Archivo", "Inter", sans-serif;
}

.tfomo-line3 {
	font-size: 10.5px;
	color: #9aa39a;
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 500;
}

/* Pulsing green dot */
.tfomo-dot {
	width: 5px;
	height: 5px;
	background: #9be000;
	border-radius: 50%;
	box-shadow: 0 0 8px rgba(155, 224, 0, 0.6);
	animation: tfomo-pulse 2s ease-in-out infinite;
	flex-shrink: 0;
}

@keyframes tfomo-pulse {
	0%, 100% { opacity: 1;    transform: scale(1); }
	50%      { opacity: 0.45; transform: scale(0.85); }
}

/* Verified checkmark badge */
.tfomo-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	background: rgba(155, 224, 0, 0.16);
	border: 1px solid rgba(155, 224, 0, 0.42);
	border-radius: 50%;
	flex-shrink: 0;
	margin-left: 2px;
}

.tfomo-check::before {
	content: "";
	width: 6px;
	height: 3px;
	border-left: 1.5px solid #9be000;
	border-bottom: 1.5px solid #9be000;
	transform: rotate(-45deg) translate(0px, -1px);
}

/* Close button */
.tfomo-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #6a716a;
	font-size: 18px;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
	border-radius: 5px;
	transition: color 0.15s, background 0.15s;
	font-family: inherit;
	font-weight: 300;
}

.tfomo-close:hover,
.tfomo-close:focus {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	outline: none;
}

/* Lighten link inside card */
.tfomo-card a,
.tfomo-card a:hover,
.tfomo-card a:focus,
.tfomo-card a:visited {
	color: inherit;
	text-decoration: none;
}

/* Mobile */
@media (max-width: 600px) {
	#tfomo-root {
		bottom: 88px; /* leave room for mobile bottom bars */
		left: 12px;
		right: 12px;
		width: auto;
		max-width: none;
	}
	.tfomo-card {
		padding: 11px 36px 11px 12px;
	}
	.tfomo-img {
		flex: 0 0 46px;
		height: 46px;
	}
	.tfomo-line1, .tfomo-line2 {
		font-size: 12px;
	}
	.tfomo-line3 {
		font-size: 10px;
	}
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.tfomo-card,
	.tfomo-dot {
		transition: opacity 0.2s linear !important;
		animation: none !important;
	}
	.tfomo-card.tfomo-in,
	.tfomo-card.tfomo-out {
		transform: none !important;
	}
}
