/*
| Small dashboard toast notifications.
| Shown after creating/editing operations and accounts.
*/

.ifm-toast-stack {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2100;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(360px, calc(100vw - 24px));
	pointer-events: none;
}

.ifm-toast {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	padding: 12px 12px 12px 14px;
	border: 1px solid #e3e8ee;
	border-radius: 14px;
	background: #fff;
	color: #26333f;
	box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
	font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	line-height: 1.35;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease;
	pointer-events: auto;
}

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

.ifm-toast-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	border-radius: 50%;
	background: #e9f6ee;
	color: #1e7a3d;
}

.ifm-toast-icon svg {
	display: block;
	width: 15px;
	height: 15px;
}

.ifm-toast--info .ifm-toast-icon {
	background: #eaf2fc;
	color: #2f6fb0;
}

.ifm-toast--error .ifm-toast-icon {
	background: #fdecec;
	color: #b23b32;
}

.ifm-toast-text {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 2px;
}

.ifm-toast-close {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #9aa4ae;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.ifm-toast-close:hover,
.ifm-toast-close:focus {
	background: #f1f4f8;
	color: #26333f;
}

html.app-theme-dark .ifm-toast {
	border-color: #3a4759;
	background: #252f3f;
	color: #e7edf5;
}

html.app-theme-dark .ifm-toast-close:hover,
html.app-theme-dark .ifm-toast-close:focus {
	background: #334052;
	color: #fff;
}

@media (max-width: 991px) {
	.ifm-toast-stack {
		right: 12px;
		bottom: calc(88px + env(safe-area-inset-bottom, 0px));
		left: 12px;
		width: auto;
	}
}
