.dzen-toast-container {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 420px;
	width: 100%;
	pointer-events: none;
}

.dzen-toast {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 
	            0 2px 8px rgba(0, 0, 0, 0.08);
	pointer-events: auto;
	width: 100%;
	color: #fff;
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}

.dzen-toast-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	background: rgba(0, 0, 0, 0.15);
}

.dzen-toast-content {
	flex: 1;
	min-width: 0;
	padding-right: 8px;
}

.dzen-toast-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 4px;
	color: #fff;
	letter-spacing: -0.01em;
}

.dzen-toast-message {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.95);
	word-wrap: break-word;
}

.dzen-toast-close {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: #fff;
	transition: all 0.2s ease;
	position: absolute;
	top: 12px;
	right: 12px;
}

.dzen-toast-close:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: scale(1.05);
}

.dzen-toast-close:active {
	transform: scale(0.95);
}

.dzen-toast-enter {
	opacity: 0;
	transform: translateX(100%) scale(0.95);
}

.dzen-toast-show {
	animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dzen-toast-exit {
	animation: toastSlideOut 0.3s cubic-bezier(0.5, 0, 1, 1) forwards;
}
.dzen-toast.with-progress::after {
	animation-duration: var(--toast-duration);
}

@keyframes toastSlideIn {
	0% {
		opacity: 0;
		transform: translateX(100%) scale(0.95);
	}
	100% {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@keyframes toastSlideOut {
	0% {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateX(100%) scale(0.95);
	}
}

.dzen-toast::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.3);
	transform-origin: left;
	animation: toastProgress linear forwards;
}

@keyframes toastProgress {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

@media (max-width: 768px) {
	.dzen-toast-container {
		top: 16px;
		right: 16px;
		left: 16px;
		max-width: none;
	}

	.dzen-toast {
		padding: 14px;
		border-radius: 10px;
	}

	.dzen-toast-icon {
		width: 28px;
		height: 28px;
		font-size: 16px;
	}

	.dzen-toast-title {
		font-size: 14px;
	}

	.dzen-toast-message {
		font-size: 13px;
	}
}

@media (prefers-color-scheme: dark) {
	.dzen-toast {
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 
		            0 2px 8px rgba(0, 0, 0, 0.2);
	}
}