.wnp-toast-container {
	position: fixed;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: calc(100vw - 32px);
	pointer-events: none;
}

.wnp-pos-top-right    { top: 24px; right: 24px; align-items: flex-end; }
.wnp-pos-top-left     { top: 24px; left: 24px; align-items: flex-start; }
.wnp-pos-top-center   { top: 24px; left: 50%; transform: translateX(-50%); align-items: center; }
.wnp-pos-bottom-right { bottom: 24px; right: 24px; align-items: flex-end; flex-direction: column-reverse; }
.wnp-pos-bottom-left  { bottom: 24px; left: 24px; align-items: flex-start; flex-direction: column-reverse; }
.wnp-pos-bottom-center{ bottom: 24px; left: 50%; transform: translateX(-50%); align-items: center; flex-direction: column-reverse; }

.wnp-toast {
	pointer-events: auto;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: var(--wnp-max-width, 380px);
	max-width: 100%;
	box-sizing: border-box;
	background: var(--wnp-bg, #fff);
	color: var(--wnp-text, #1e293b);
	border-radius: var(--wnp-radius, 12px);
	padding: 14px 40px 14px 16px;
	box-shadow: 0 10px 30px -8px rgba(15, 23, 42, .25), 0 2px 8px rgba(15, 23, 42, .08);
	border-left: 4px solid var(--wnp-accent, #2563eb);
	overflow: hidden;
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease;
}

.wnp-anim-slide.wnp-toast { transform: translateY(-8px) scale(.98); }
.wnp-pos-bottom-right .wnp-anim-slide.wnp-toast,
.wnp-pos-bottom-left .wnp-anim-slide.wnp-toast,
.wnp-pos-bottom-center .wnp-anim-slide.wnp-toast { transform: translateY(8px) scale(.98); }
.wnp-anim-fade.wnp-toast { transform: none; }

.wnp-toast.wnp-toast-in { opacity: 1; transform: translateY(0) scale(1); }
.wnp-toast.wnp-toast-out { opacity: 0; transform: translateY(-8px) scale(.96); }

.wnp-toast-success { --wnp-accent: var(--wnp-success, #16a34a); }
.wnp-toast-error   { --wnp-accent: var(--wnp-error, #dc2626); }
.wnp-toast-info    { --wnp-accent: var(--wnp-info, #2563eb); }

.wnp-toast-icon {
	flex: none;
	display: flex;
	color: var(--wnp-accent);
	margin-top: 1px;
}

.wnp-toast-body {
	flex: 1;
	font-size: 14px;
	line-height: 1.5;
	min-width: 0;
	word-wrap: break-word;
}

.wnp-toast-body p,
.wnp-toast-body ul {
	margin: 0;
	padding: 0;
}

.wnp-toast-body ul { list-style: none; }
.wnp-toast-body li + li { margin-top: 6px; }

.wnp-toast-body a.button.wc-forward {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wnp-accent);
	text-decoration: underline;
}

.wnp-toast-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 0;
	background: transparent;
	color: currentColor;
	opacity: .45;
	cursor: pointer;
	border-radius: 6px;
	transition: opacity .15s, background .15s;
}

.wnp-toast-close:hover { opacity: 1; background: rgba(15, 23, 42, .06); }

.wnp-toast-progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 100%;
	background: var(--wnp-accent);
	opacity: .35;
	transform-origin: left;
	animation-name: wnp-progress;
	animation-timing-function: linear;
	animation-fill-mode: forwards;
}

@keyframes wnp-progress {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

@media (max-width: 600px) {
	.wnp-toast-container.wnp-mobile-full {
		left: 12px !important;
		right: 12px !important;
		top: auto !important;
		bottom: 12px !important;
		transform: none !important;
		align-items: stretch !important;
		max-width: none;
	}
	.wnp-toast-container.wnp-mobile-full .wnp-toast { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.wnp-toast { transition: opacity .15s linear; transform: none !important; }
	.wnp-toast-progress { animation: none; opacity: 0; }
}
