/*
 *  Toaster CSS
 *  Module to show toasts notifications
 */

#toaster {
	position: fixed;
	right: 1rem;
	top: 0;
	pointer-events: none;
	width: 450px;
	padding-top: 1rem;
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	z-index: 99999;
	height: auto !important;
	max-height: 80vh;
	overflow-y: auto;
	overflow-x: clip;
	transition: transform 0.1s ease;
}

#toaster.toaster-bottom {
	bottom: 0;
	top: auto;
	justify-content: flex-end;
}

@media (max-width: 768px) {
	#toaster {
		width: calc(100% - 2rem);
	}
}

.alert {
	pointer-events: auto;
	position: relative;
	will-change: transform, opacity;
	transform-origin: bottom;
	overflow: visible;
	padding-right: 2rem;
}

.alert-heading {
	user-select: none;
}

.close-x {
	cursor: pointer;
	background-color: transparent;
	border: none;
	position: absolute;
	line-height: 1;
	opacity: 0.7;
	outline: none;
	top: 7px !important;
	right: 7px !important;
	z-index: 10;
	padding: 4px !important;
}

.close-x:hover {
	opacity: 1;
}
