.nsg-sp-popup {
	position: fixed;
	z-index: 99998;
	width: 320px;
	max-width: calc(100vw - 32px);
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 14px 16px 14px 14px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 13px;
	color: #1a1a1a;
	cursor: pointer;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	pointer-events: none;
}

.nsg-sp-popup.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.nsg-sp-popup.position-bottom-left {
	bottom: 24px;
	left: 24px;
}

.nsg-sp-popup.position-bottom-right {
	bottom: 24px;
	right: 24px;
}

.nsg-sp-popup.position-bottom-left.show {
	animation: nsgSlideInLeft 0.4s ease;
}

.nsg-sp-popup.position-bottom-right.show {
	animation: nsgSlideInRight 0.4s ease;
}

@keyframes nsgSlideInLeft {
	from { opacity: 0; transform: translateX(-30px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes nsgSlideInRight {
	from { opacity: 0; transform: translateX(30px); }
	to   { opacity: 1; transform: translateX(0); }
}

.nsg-sp-popup:hover {
	box-shadow: 0 14px 50px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.nsg-sp-inner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nsg-sp-avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nsg-sp-body {
	flex: 1;
	min-width: 0;
	line-height: 1.45;
}

.nsg-sp-name {
	font-weight: 600;
	color: #0a2540;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nsg-sp-message {
	color: #4b5563;
	font-size: 12.5px;
	margin-top: 1px;
}

.nsg-sp-amount {
	display: inline-block;
	background: #FEF3C7;
	color: #92400E;
	font-weight: 700;
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 4px;
	margin-left: 4px;
}

.nsg-sp-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 11px;
	color: #6b7280;
}

.nsg-sp-meta .dot {
	width: 3px;
	height: 3px;
	background: #d1d5db;
	border-radius: 50%;
}

.nsg-sp-badge {
	display: inline-block;
	background: #ecfdf5;
	color: #10b981;
	font-size: 10.5px;
	font-weight: 600;
	padding: 1px 6px;
	border-radius: 3px;
}

.nsg-sp-badge.payment {
	background: #fef2f2;
	color: #dc2626;
}

.nsg-sp-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 18px;
	height: 18px;
	border: none;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0;
	border-radius: 50%;
}

.nsg-sp-close:hover {
	background: #f3f4f6;
	color: #1a1a1a;
}

@media (max-width: 600px) {
	.nsg-sp-popup {
		width: calc(100vw - 32px);
		left: 16px !important;
		right: 16px !important;
		bottom: 16px !important;
	}
}
