/**
 * LS Social Proof — front-end notification styling.
 * Radius follows the LS Fabrication standard: 10px panels, 6px inner elements.
 */

.lssp-root {
	position: fixed;
	/* Deliberately low: the site header sits at 500, the mega panel 499, the mobile
	   scrim 900, the drawer 901 and the vehicle-finder dropdown 1000. */
	z-index: var(--lssp-z, 400);
	pointer-events: none;
	max-width: 100%;
}

/* Get out of the way whenever a menu or slide-out panel is open. */
body.ls-drawer-open .lssp-root,
body:has(.dl-slide-sidebar.is-opened) .lssp-root,
body:has(.mobile_nav.opened) .lssp-root,
body:has(.et_pb_menu__wrap.opened) .lssp-root {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.lssp-root--bottom-left  { left: 20px;  bottom: 20px; }
.lssp-root--bottom-right { right: 20px; bottom: 20px; }
.lssp-root--top-left     { left: 20px;  top: 20px; }
.lssp-root--top-right    { right: 20px; top: 20px; }

.lssp-toast {
	--lssp-bg: #101113;
	--lssp-bg-2: #17181b;
	--lssp-accent: #059D58;
	--lssp-radius: 10px;

	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	width: min(360px, calc(100vw - 32px));
	padding: 10px 34px 10px 10px;

	background:
		linear-gradient(160deg, var(--lssp-bg-2), var(--lssp-bg)) padding-box,
		linear-gradient(135deg, var(--lssp-accent), #55e0a0 45%, var(--lssp-accent)) border-box;
	border: 2px solid transparent;
	border-radius: var(--lssp-radius);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.35);

	color: #ffffff;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-align: left;
	text-decoration: none;
	pointer-events: auto;

	opacity: 0;
	transform: translateY(14px) scale(0.98);
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}

.lssp-root--top-left .lssp-toast,
.lssp-root--top-right .lssp-toast {
	transform: translateY(-14px) scale(0.98);
}

.lssp-toast.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

a.lssp-toast:hover,
a.lssp-toast:focus-visible {
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(5, 157, 88, 0.35);
	color: #ffffff;
}

a.lssp-toast:focus-visible {
	outline: 2px solid var(--lssp-accent);
	outline-offset: 3px;
}

/* Media ------------------------------------------------------------------ */

.lssp-toast__media {
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border-radius: 6px;
	overflow: hidden;
	background: #1d1f22;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lssp-toast__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.lssp-toast__placeholder {
	width: 22px;
	height: 22px;
	border-radius: 4px;
	background: var(--lssp-accent);
	opacity: 0.35;
}

/* Body ------------------------------------------------------------------- */

.lssp-toast__body {
	min-width: 0;
	flex: 1 1 auto;
}

.lssp-toast p {
	margin: 0;
	padding: 0;
}

.lssp-toast__title {
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.01em;
	color: #ffffff;
}

.lssp-toast__text {
	margin-top: 2px !important;
	font-size: 13px;
	line-height: 1.35;
	color: #b4b7bb;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.lssp-toast__text span {
	color: #ffffff;
	font-weight: 600;
}

.lssp-toast__meta {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 5px !important;
	font-size: 11px;
	line-height: 1;
	color: #7e8288;
}

.lssp-toast__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-left: 7px;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
	color: #a9adb3;
	font-weight: 600;
	white-space: nowrap;
}

.lssp-toast__verified .lssp-badge {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	display: block;
}

.lssp-toast__ago {
	white-space: nowrap;
}

/* Close ------------------------------------------------------------------ */

.lssp-toast__close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: #8a8d92;
	cursor: pointer;
	line-height: 1;
	transition: color 0.15s ease, background 0.15s ease;
}

.lssp-toast__close:hover,
.lssp-toast__close:focus-visible {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

.lssp-toast__close svg {
	width: 11px;
	height: 11px;
	fill: currentColor;
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 600px) {
	.lssp-root--bottom-left,
	.lssp-root--bottom-right {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.lssp-root--top-left,
	.lssp-root--top-right {
		left: 12px;
		right: 12px;
		top: 12px;
	}

	.lssp-toast {
		width: 100%;
	}

	.lssp-toast__title { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	.lssp-toast {
		transition: opacity 0.2s linear;
		transform: none !important;
	}
}
