#wpsn-container {
	position: fixed;
	z-index: 999999;
	pointer-events: none;
	top: 20px;
	left: 20px;
}

#wpsn-container.wpsn-pos-top-right {
	left: auto;
	right: 20px;
}

#wpsn-container.wpsn-pos-bottom-left {
	top: auto;
	bottom: 20px;
	left: 20px;
}

#wpsn-container.wpsn-pos-bottom-right {
	top: auto;
	bottom: 20px;
	right: 20px;
	left: auto;
}

.wpsn-card {
	--wpsn-primary: #3A1B8E;
	--wpsn-text: #222222;
	--wpsn-bg: #ffffff;

	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 320px;
	max-width: 86vw;
	background: var(--wpsn-bg);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
	padding: 14px 16px;
	border-left: 5px solid var(--wpsn-primary);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	position: fixed;
	left: 20px;
	opacity: 0;
	transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, top 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), bottom 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
	text-decoration: none;
}

/* Horizontal placement */
.wpsn-card.wpsn-pos-top-right,
.wpsn-card.wpsn-pos-bottom-right { left: auto; right: 20px; }
.wpsn-card.wpsn-pos-top-left,
.wpsn-card.wpsn-pos-bottom-left { left: 20px; right: auto; }

/* Top positions: slide down from above the viewport */
.wpsn-card.wpsn-pos-top-left,
.wpsn-card.wpsn-pos-top-right {
	top: -140px;
	bottom: auto;
}
.wpsn-card.wpsn-pos-top-left.wpsn-show,
.wpsn-card.wpsn-pos-top-right.wpsn-show {
	top: 20px;
}
.wpsn-card.wpsn-pos-top-left.wpsn-hide,
.wpsn-card.wpsn-pos-top-right.wpsn-hide {
	top: -140px;
}

/* Bottom positions: slide up from below the viewport */
.wpsn-card.wpsn-pos-bottom-left,
.wpsn-card.wpsn-pos-bottom-right {
	bottom: -140px;
	top: auto;
}
.wpsn-card.wpsn-pos-bottom-left.wpsn-show,
.wpsn-card.wpsn-pos-bottom-right.wpsn-show {
	bottom: 20px;
}
.wpsn-card.wpsn-pos-bottom-left.wpsn-hide,
.wpsn-card.wpsn-pos-bottom-right.wpsn-hide {
	bottom: -140px;
}

.wpsn-card.wpsn-show {
	opacity: 1;
}

.wpsn-card.wpsn-hide {
	opacity: 0;
}

.wpsn-icon-wrap {
	position: relative;
	flex: 0 0 auto;
}

.wpsn-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: #f1eefb;
	border: 2px solid var(--wpsn-primary);
}

.wpsn-avatar-fallback {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--wpsn-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 17px;
}

.wpsn-badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 16px;
	height: 16px;
	background: #22c55e;
	border-radius: 50%;
	border: 2px solid var(--wpsn-bg);
}

.wpsn-body {
	flex: 1 1 auto;
	min-width: 0;
}

.wpsn-time {
	margin: 0 0 3px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--wpsn-primary);
	display: flex;
	align-items: center;
	gap: 4px;
}

.wpsn-name {
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 700;
	color: var(--wpsn-text);
}

.wpsn-action {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	color: #555;
}

.wpsn-close {
	position: absolute;
	top: 6px;
	right: 8px;
	border: none;
	background: transparent;
	color: #b7b2c9;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	padding: 2px;
}

.wpsn-close:hover {
	color: var(--wpsn-primary);
}

.wpsn-verified {
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
}

@media (max-width: 480px) {
	.wpsn-card {
		width: calc(100vw - 24px);
		left: 12px !important;
		right: 12px !important;
	}
}
