/* Commix's toast — slides in from the right with a soft spring, the Commix logo on its left plays its build-in (the
   toast closes when it has finished), a stripe in its kind's color, it pauses on hover and slides back out.
   assets/js/toast.js builds it; until the logo has loaded, an icon and a progress line stand in. */
#commix-toast-stack {
	position: fixed;
	top: 46px;
	right: 20px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	pointer-events: none;
}

.commix-toast {
	--commix-toast-accent: #2271b1;
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 280px;
	max-width: 400px;
	padding: 12px 12px 12px 16px;
	border-radius: 12px;
	background: #ffffff;
	color: #1e1e1e;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.06);
	font-size: 13px;
	line-height: 1.45;
	overflow: hidden;
	pointer-events: auto;
	opacity: 0;
	transform: translateX(calc(100% + 24px)) scale(0.98);
	transition: transform 0.42s cubic-bezier(0.21, 1.02, 0.73, 1), opacity 0.3s ease;
}

.commix-toast.commix-toast-visible {
	opacity: 1;
	transform: translateX(0) scale(1);
}

.commix-toast.commix-toast-leaving {
	opacity: 0;
	transform: translateX(calc(100% + 24px)) scale(0.98);
	transition: transform 0.32s cubic-bezier(0.6, 0, 0.8, 0.2), opacity 0.28s ease;
}

.commix-toast::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--commix-toast-accent);
}

.commix-toast-logo {
	flex: none;
	display: block;
	width: 36px;
	height: 36px;
}

.commix-toast-logo svg {
	display: block;
	width: 100%;
	height: 100%;
}

.commix-toast-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--commix-toast-accent) 14%, transparent);
	color: var(--commix-toast-accent);
	font-size: 14px;
	font-weight: 700;
}

.commix-toast-message {
	flex: 1;
	min-width: 0;
}

.commix-toast-close {
	flex: none;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	opacity: 0.45;
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
}

.commix-toast-close:hover,
.commix-toast-close:focus-visible {
	opacity: 0.9;
	background: rgba(0, 0, 0, 0.06);
}

.commix-toast-progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 100%;
	background: var(--commix-toast-accent);
	opacity: 0.55;
	transform-origin: left center;
}

/* Every kind in the active Style's primary (assets/js/toast.js sets it); this blue only without a Style. */

@media (prefers-reduced-motion: reduce) {
	.commix-toast,
	.commix-toast.commix-toast-leaving {
		transform: none;
		transition: opacity 0.2s ease;
	}
}
