/*
*  Toaster CSS
*  Module to show toasts notifications
*/

#toaster {
	position: fixed;
	right: 1rem;
	height: 100%;
	top: 0;
	pointer-events: none;
	width: 450px;
	padding-top: 1rem;
	padding-bottom: 0rem;
	display: flex;
	box-sizing: border-box;
	justify-content: flex-end;
	flex-direction: column;
	align-items: stretch;
	gap: 0.3rem;
	z-index: 9999;
	height: auto !important;
	max-height: 80vh;
	overflow-y: auto;
	overflow-x: clip;
	gap: 0.5rem;
	transition: transform 0.1s ease;
}

#toaster.toaster-bottom {
	bottom: 0;
	top: auto;
}

@media (max-width: 768px) {
	#toaster {
		width: calc(100% - 2rem);
		justify-content: flex-start;
	}
}

.alert {
	pointer-events: auto;
	position: relative;
	will-change: transform, opacity;
	transform-origin: bottom;
	overflow: visible;
}

.alert-heading {
	user-select: none;
}

.close-x {
	cursor: pointer;
	background-color: transparent;
	border: none;
	position: absolute;
	font-size: 20px;
	line-height: 1;
	opacity: 0.8;
	outline: none;
	top: 12px !important;
	right: 12px !important;
	z-index: 10;
	padding: 0px !important;
}

.close-x:hover {
	opacity: 1;
}
