.mts-toast-container {
	position: fixed;
	top: 150px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: min(450px, calc(100vw - 32px));
	pointer-events: none;
}

.mts-toast {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 28px;
	gap: 12px;
	align-items: start;
	width: 100%;
	padding: 16px;
	background: var(--mts-toast-background, #e8f3ff);
	border: 1px solid var(--mts-toast-border, #c5e2ff);
	border-radius: 6px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
	color: var(--mts-toast-foreground, #0868cf);
	font-size: 14px;
	line-height: 1.45;
	pointer-events: auto;
	animation: mts-toast-enter 180ms ease-out both;
}

.mts-toast--success {
	--mts-toast-background: #ddf7e7;
	--mts-toast-foreground: #087438;
	--mts-toast-border: #b7e8ca;
}

.mts-toast--error {
	--mts-toast-background: #ffe4e7;
	--mts-toast-foreground: #c81729;
	--mts-toast-border: #ffc8cf;
}

.mts-toast--warning {
	--mts-toast-background: #fff4c9;
	--mts-toast-foreground: #8a6800;
	--mts-toast-border: #f2df9d;
}

.mts-toast--info {
	--mts-toast-background: #e8f3ff;
	--mts-toast-foreground: #0868cf;
	--mts-toast-border: #c5e2ff;
}

.mts-toast__symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: transparent;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}

.mts-toast__symbol {
	color: inherit;
}

.mts-toast__content {
	min-width: 0;
}

.mts-toast__title {
	margin: 0 0 2px;
	font-weight: 700;
	line-height: 1.3;
}

.mts-toast__message {
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.mts-toast__close {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: -4px -4px 0 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: 20px;
	line-height: 1;
}

.mts-toast__close:hover,
.mts-toast__close:focus-visible {
	background: rgba(0, 0, 0, 0.06);
	color: inherit;
}

.mts-toast__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.mts-toast--leaving {
	animation: mts-toast-leave 180ms ease-in both;
}

.mts-toast-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

@keyframes mts-toast-enter {
	from {
		opacity: 0;
		transform: translate3d(24px, 0, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes mts-toast-leave {
	from {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
	to {
		opacity: 0;
		transform: translate3d(24px, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mts-toast,
	.mts-toast--leaving {
		animation: none;
	}
}
