/* Toast Notification — bottom-right stack */
.admin-toast-stack {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 3000;
	display: flex;
	flex-direction: column-reverse;
	gap: 10px;
	width: min(380px, calc(100vw - 32px));
	pointer-events: none;
}

.admin-toast {
	pointer-events: auto;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px 14px;
	background: #fff;
	color: #1a2332;
	border: 1.5px solid #d8dee6;
	border-left-width: 4px;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
	overflow: hidden;
	opacity: 0;
	transform: translateX(24px);
	transition: opacity .25s ease, transform .25s ease;
}

.admin-toast.is-show {
	opacity: 1;
	transform: translateX(0);
}

.admin-toast.is-hide {
	opacity: 0;
	transform: translateX(24px);
}

.admin-toast__icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.admin-toast__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.admin-toast__body {
	flex: 1;
	min-width: 0;
	font-size: .88rem;
	font-weight: 500;
	line-height: 1.45;
	padding-right: 4px;
	white-space: pre-line;
}

.admin-toast__close {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin: -2px -4px 0 0;
	border: none;
	background: transparent;
	color: #5c6b7a;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	padding: 0;
	transition: background .15s, color .15s;
}

.admin-toast__close:hover {
	background: rgba(0, 0, 0, .06);
	color: #1a2332;
}

.admin-toast__progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 100%;
	transform-origin: left center;
	transform: scaleX(1);
	will-change: transform;
}

.admin-toast--success {
	border-left-color: #067647;
	background: #ecfdf3;
}

.admin-toast--success .admin-toast__icon {
	color: #067647;
}

.admin-toast--success .admin-toast__progress {
	background: #067647;
}

.admin-toast--danger {
	border-left-color: #b42318;
	background: #fef3f2;
}

.admin-toast--danger .admin-toast__icon {
	color: #b42318;
}

.admin-toast--danger .admin-toast__progress {
	background: #b42318;
}

.admin-toast--warning {
	border-left-color: #d97706;
	background: #fffbeb;
}

.admin-toast--warning .admin-toast__icon {
	color: #d97706;
}

.admin-toast--warning .admin-toast__progress {
	background: #d97706;
}

.admin-toast--info {
	border-left-color: #175cd3;
	background: #eff6ff;
}

.admin-toast--info .admin-toast__icon {
	color: #175cd3;
}

.admin-toast--info .admin-toast__progress {
	background: #175cd3;
}
