.m14-toast-host {
	position: fixed;
	z-index: 1080;
	right: 16px;
	bottom: 16px;
	left: auto;
	top: auto;
	transform: none;
	width: min(360px, calc(100% - 32px));
	pointer-events: none;
	display: flex;
	flex-direction: column-reverse;
	align-items: stretch;
	gap: 8px;
}

.m14-toast {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 12px 11px 14px;
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	font-size: 13px;
	line-height: 1.35;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.m14-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.m14-toast.is-leaving {
	opacity: 0;
	transform: translateY(8px);
}

.m14-toast-body {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.m14-toast-close {
	appearance: none;
	border: 0;
	background: rgba(0, 0, 0, 0.12);
	color: inherit;
	opacity: 0.9;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	font-size: 16px;
	line-height: 1;
	padding: 0 0 2px;
	margin-top: -1px;
	cursor: pointer;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.m14-toast-close:hover,
.m14-toast-close:focus {
	opacity: 1;
	outline: none;
	background: rgba(0, 0, 0, 0.2);
}

.m14-toast--success {
	color: #fff;
	background: #7cbc1b;
}

.m14-toast--info {
	color: #fff;
	background: #5bc0de;
}

.m14-toast--warning {
	color: #8a6d3b;
	background: #fcf8e3;
	border: 1px solid #eddaa0;
}

.m14-toast--danger {
	color: #fff;
	background: #e5563e;
}

.m14-toast--default {
	color: #333;
	background: #fff;
	border: 1px solid #e6e6e6;
}

@media (max-width: 767px) {
	.m14-toast-host {
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
	}

	.m14-toast {
		border-radius: 14px;
		align-items: flex-start;
		padding: 12px 12px 12px 14px;
	}

	.m14-toast-close {
		margin-top: -2px;
	}

	body.signup-flow .m14-toast-host {
		top: max(12px, env(safe-area-inset-top, 0px));
		bottom: auto;
		flex-direction: column;
	}
}

.m14-toast-host--rich {
	width: min(420px, calc(100% - 32px));
}

.m14-toast--rich {
	align-items: flex-start;
	border-radius: 14px;
	max-height: min(40vh, 280px);
	overflow: hidden;
	padding: 14px 12px 14px 16px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
}

.m14-toast--rich .m14-toast-body {
	max-height: min(36vh, 248px);
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.m14-toast--rich .m14-toast-body p {
	margin: 0 0 10px;
}

.m14-toast--rich .m14-toast-body p:last-child {
	margin-bottom: 0;
}

.m14-toast--rich .m14-toast-body strong {
	font-weight: 700;
}

.m14-toast--rich .m14-toast-body ul {
	margin: 0 0 10px;
	padding-left: 1.2em;
}

.m14-toast--rich .m14-toast-close {
	margin-top: 0;
	position: sticky;
	top: 0;
}

@media (max-width: 767px) {
	.m14-toast-host--rich {
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
	}

	.m14-toast--rich {
		max-height: 168px;
		padding: 10px 8px 10px 12px;
		font-size: 13px;
		line-height: 1.4;
	}

	.m14-toast--rich .m14-toast-body {
		max-height: 148px;
	}
}
