/*
 * Notifiche a comparsa del gestionale (js/rigenera-toast.js): esito di
 * un'operazione appena fatta. "Pillola" in alto al centro, sotto il menu, col
 * fondo del colore dell'esito; volutamente diversa dalle notifiche dei ticket
 * (card bianca in alto a destra). Sopra modali e veli di attesa.
 */
.rg-toasts {
	position: fixed;
	top: 126px; /* sotto la testata e la barra del menu */
	left: 50%;
	z-index: 2100;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: max-content;
	max-width: min(560px, calc(100vw - 32px));
	transform: translateX(-50%);
	pointer-events: none;
}
.rg-toast {
	--rg-toast-solid: #299cdb;
	--rg-toast-tint: #e9f5fb;
	--rg-toast-line: #b7dcf2;
	--rg-toast-ink: #12506f;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	padding: 8px 8px 8px 8px;
	border: 1px solid var(--rg-toast-line);
	border-radius: 999px;
	background: var(--rg-toast-tint);
	color: var(--rg-toast-ink);
	box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
	pointer-events: auto;
	opacity: 0;
	transform: translateY(-14px) scale(.98);
	transition: opacity .28s ease, transform .28s ease;
}
.rg-toast.is-visible { opacity: 1; transform: none; }
.rg-toast.is-leaving { opacity: 0; transform: translateY(-10px) scale(.98); }
.rg-toast--success { --rg-toast-solid: #0ab39c; --rg-toast-tint: #e7f8f4; --rg-toast-line: #a9e4d9; --rg-toast-ink: #0a5c50; }
.rg-toast--error { --rg-toast-solid: #f06548; --rg-toast-tint: #fdeeea; --rg-toast-line: #f6bfb2; --rg-toast-ink: #8a2c18; }
.rg-toast--warning { --rg-toast-solid: #f7b84b; --rg-toast-tint: #fef6e6; --rg-toast-line: #f8dca6; --rg-toast-ink: #7a5208; }
.rg-toast--info { --rg-toast-solid: #299cdb; --rg-toast-tint: #e9f5fb; --rg-toast-line: #b7dcf2; --rg-toast-ink: #12506f; }
.rg-toast-icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--rg-toast-solid);
	color: #fff;
	font-size: 1.05rem;
}
.rg-toast-body { min-width: 0; padding: 2px 4px 2px 0; }
.rg-toast-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.rg-toast-text { font-size: .9rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.rg-toast-close {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	opacity: .55;
	font-size: 1.1rem;
	line-height: 28px;
	cursor: pointer;
	transition: opacity .15s ease, background-color .15s ease;
}
.rg-toast-close:hover,
.rg-toast-close:focus { opacity: 1; background: rgba(255, 255, 255, .7); outline: 0; }
/* messaggi lunghi: angoli meno tondi, il testo va a capo */
.rg-toast.is-long { border-radius: 16px; align-items: flex-start; }
@media (max-width: 575.98px) {
	.rg-toasts { top: 74px; width: calc(100vw - 32px); }
	.rg-toast { width: 100%; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.rg-toast, .rg-toast.is-leaving { transform: none; transition: opacity .2s ease; }
}
