#adfuz-toast-wrapper {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	pointer-events: none;
	width: min(100%, calc(100vw - 24px));
}

.adfuz-toast-card {
	width: min(560px, calc(100vw - 32px));
	border-radius: 18px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
	overflow: hidden;
	opacity: 0;
	transform: translateY(-8px) scale(0.985);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: auto;
	background: #fff;
}

.adfuz-toast-card.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.adfuz-toast-top {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 30px;
	align-items: start;
	column-gap: 12px;
	padding: 14px 14px 12px;
}

.adfuz-toast-icon {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.adfuz-toast-body {
	min-width: 0;
	padding-top: 1px;
}

.adfuz-toast-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0;
	color: #0f172a;
}

.adfuz-toast-message {
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.45;
	color: #475569;
	word-break: break-word;
}

.adfuz-toast-close {
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	color: #64748b;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
	flex-shrink: 0;
	margin-top: -2px;
}

.adfuz-toast-close:hover {
	background: rgba(15, 23, 42, 0.05);
	color: #0f172a;
}

.adfuz-toast-promo {
	margin: 0 14px 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.adfuz-toast-promo-copy {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.adfuz-toast-promo-icon {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(1, 105, 111, 0.08);
	color: #01696f;
	flex-shrink: 0;
	margin-top: 1px;
}

.adfuz-toast-promo-text {
	font-size: 13px;
	line-height: 1.5;
	color: #5b6472;
	margin: 0;
}

.adfuz-toast-promo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 12px;
	background: #0f766e;
	color: #fff !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	box-shadow: 0 6px 16px rgba(15, 118, 110, 0.18);
	flex-shrink: 0;
}

.adfuz-toast-promo-btn:hover {
	background: #0b5f59;
	transform: translateY(-1px);
	color: #fff !important;
}

.adfuz-toast-progress {
	height: 3px;
	background: rgba(15, 23, 42, 0.06);
	position: relative;
	overflow: hidden;
}

.adfuz-toast-progress::after {
	content: "";
	position: absolute;
	inset: 0;
	transform-origin: left center;
	animation: adfuzToastProgress var(--adfuz-toast-duration, 5000ms) linear forwards;
	background: currentColor;
	opacity: 0.22;
}

.adfuz-toast-success {
	background: #edf7ef;
	color: #2f6b45;
	border-color: #cfe3d3;
}

.adfuz-toast-error {
	background: #fff5f5;
	color: #b42318;
	border-color: #f2c9c9;
}

.adfuz-toast-warning {
	background: #fff8ee;
	color: #b45309;
	border-color: #f1ddbc;
}

.adfuz-toast-info {
	background: #f4f8ff;
	color: #1d4ed8;
	border-color: #cfe0ff;
}

.adfuz-toast-icon-success {
	background: #d7f0dd;
	color: #15803d;
}

.adfuz-toast-icon-error {
	background: #fee2e2;
	color: #dc2626;
}

.adfuz-toast-icon-warning {
	background: #fef3c7;
	color: #b45309;
}

.adfuz-toast-icon-info {
	background: #dbeafe;
	color: #2563eb;
}

@keyframes adfuzToastProgress {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

@media (max-width: 640px) {
	#adfuz-toast-wrapper {
		top: 16px;
		width: calc(100vw - 16px);
	}

	.adfuz-toast-card {
		width: calc(100vw - 16px);
		border-radius: 16px;
	}

	.adfuz-toast-top {
		grid-template-columns: 36px minmax(0, 1fr) 28px;
		column-gap: 10px;
		padding: 12px 12px 10px;
	}

	.adfuz-toast-icon {
		width: 36px;
		height: 36px;
	}

	.adfuz-toast-title {
		font-size: 14px;
	}

	.adfuz-toast-message {
		font-size: 13px;
	}

	.adfuz-toast-promo {
		margin: 0 12px 12px;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.adfuz-toast-promo-btn {
		width: 100%;
		min-height: 40px;
	}
}
