.toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 9999;
	transform: translateX(-50%);
	pointer-events: none;
}

.toast__item {
	width: 371px;
	min-height: 51px;
	padding: 0 18px;
	border-radius: 74px;
	background: #1b1b1b;
	display: flex;
	align-items: center;
	gap: 13px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
	animation: toastShow 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	pointer-events: auto;
	font-family: Arial, Helvetica, sans-serif;
}

.toast__item--closing {
	animation: toastHide 0.35s cubic-bezier(0.64, 0, 0.78, 0) forwards;
}

.toast__item--clickable {
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.toast__icon {
	width: 18px;
	height: 18px;
	min-width: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.toast__icon svg {
	width: 12px;
	height: 12px;
	display: block;
}

.toast__icon--success {
	background: #0fdd5e;
}

.toast__icon--warning,
.toast__icon--error {
	background: #ff8a00;
}

.toast__message {
	flex: 1;
	min-width: 0;
	color: #f5f5f5;
	font-size: 16px;
	line-height: 19px;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.toast__action {
	margin-left: auto;
	padding: 0;
	border: none;
	background: transparent;
	color: #f5f5f5;
	font-size: 13px;
	line-height: 19px;
	font-weight: 400;
	font-family: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

@keyframes toastShow {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes toastHide {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(28px);
	}
}

@media (max-width: 767px) {
	.toast {
		left: 24px;
		right: 24px;
		bottom: 20px;
		transform: none;
	}

	.toast__item {
		width: 100%;
		min-height: 51px;
		padding: 0 18px;
		gap: 13px;
	}

	.toast__action--hide-mobile {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.toast__item {
		animation: none !important;
	}
}
