/**
 * Notifiche in vetro (assets/notices.js): in alto sotto l'header su tutti i dispositivi (Nicco 30/10/2026: sempre
 * nello stesso punto; in basso le copriva la tastiera del telefono). Computer a destra, tablet/telefono larghe quanto
 * lo schermo meno 16px per lato.
 * Vetro come la barra con nome e prezzo della pagina prodotto, un po' piu' scuro: i messaggi sono piu' lunghi.
 */

/* Con lo script attivo i banner di WooCommerce non si vedono mai (neanche per un attimo). */
.goccia-notices-js .woocommerce-notices-wrapper > :is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
.goccia-notices-js .woocommerce-NoticeGroup :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	display: none;
}

.goccia-toasts {
	position: fixed;
	top: calc(var(--goccia-header-bottom, 73px) + 12px);
	right: 24px;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	width: min(380px, calc(100vw - 32px));
	pointer-events: none;
}

.goccia-toast {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding: 14px 44px 14px 18px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	background: rgba(20, 20, 20, 0.55);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	box-shadow: 0 8px 32px rgba(20, 20, 20, 0.12);
	color: #fff;
	font-family: var(--e-global-typography-text-font-family, "Jost"), sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: auto;
}

/* Errori un po' piu' scuri, per farli notare. */
.goccia-toast--error {
	background: rgba(20, 20, 20, 0.7);
}

.goccia-toast.is-visible {
	opacity: 1;
	transform: none;
}

/* I link e i pulsanti dei messaggi (es. "view cart", "undo") diventano link sottolineati
   (all: unset toglie lo stile dei pulsanti di WooCommerce e di Site Settings). */
.goccia-toasts .goccia-toast .goccia-toast__text a {
	all: unset;
	margin-left: 6px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.goccia-toasts .goccia-toast .goccia-toast__close,
.goccia-toasts .goccia-toast .goccia-toast__close:hover,
.goccia-toasts .goccia-toast .goccia-toast__close:focus {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
}

.goccia-toast__close svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

@media (max-width: 1024px) {
	.goccia-toasts {
		right: 16px;
		align-items: stretch;
	}
}
