/*
 *  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;
	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);
	}
}

#toaster .alert {
	pointer-events: auto;
	position: relative;
	will-change: transform, opacity;
	transform-origin: bottom;
	overflow: visible;
	padding-right: 2.5rem;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: var(--bs-border-radius-lg);
	border-width: 2px !important;
}

[data-bs-theme="dark"] #toaster .alert-primary {
	background-color: rgba(26, 36, 51, 0.7) !important;
}

[data-bs-theme="dark"] #toaster .alert-secondary {
	background-color: rgba(39, 44, 50, 0.7) !important;
}

[data-bs-theme="dark"] #toaster .alert-success {
	background-color: rgba(32, 45, 37, 0.7) !important;
}

[data-bs-theme="dark"] #toaster .alert-info {
	background-color: rgba(26, 47, 50, 0.7) !important;
}

[data-bs-theme="dark"] #toaster .alert-warning {
	background-color: rgba(50, 46, 26, 0.7) !important;
}

[data-bs-theme="dark"] #toaster .alert-danger {
	background-color: rgba(47, 30, 30, 0.7) !important;
}

[data-bs-theme="dark"] #toaster .alert-light {
	background-color: rgba(61, 63, 67, 0.7) !important;
}

[data-bs-theme="dark"] #toaster .alert-dark {
	background-color: rgba(27, 30, 34, 0.7) !important;
}

#toaster .alert-primary {
	background-color: rgba(230, 240, 255, 0.7) !important;
}

#toaster .alert-secondary {
	background-color: rgba(242, 242, 243, 0.7) !important;
}

#toaster .alert-success {
	background-color: rgba(236, 249, 241, 0.7) !important;
}

#toaster .alert-info {
	background-color: rgba(230, 251, 254, 0.7) !important;
}

#toaster .alert-warning {
	background-color: rgba(254, 250, 230, 0.7) !important;
}

#toaster .alert-danger {
	background-color: rgba(251, 234, 234, 0.7) !important;
}

#toaster .alert-light {
	background-color: rgba(248, 249, 249, 0.7) !important;
}

#toaster .alert-dark {
	background-color: rgba(198, 203, 210, 0.7) !important;
}

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

#toaster .toast_close {
	cursor: pointer;
	background-color: transparent;
	border: none;
	position: absolute;
	opacity: 0.7;
	outline: none;
	z-index: 10;
	right: 0 !important;
	top: 0% !important;
	padding-top: 7px !important;
	padding-right: 7px !important;
	width: auto;
	height: auto;
}

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