/*
 * MA-ZAL Group — floating notifications button of the app (partials/notify-fab.php). Same family as the cart button
 * (cart.css .mzs-fab): the same size, white disc and gold bell where the cart is gold. Owner 2/11: both in the same
 * corner, the bell just above the cart; each shows only when it has something (unread notifications / a cart with items),
 * so the bell drops to the cart's place when the cart is hidden.
 */
.mzs-nfab {
	position: fixed;
	z-index: var(--z-fab);
	inset-inline-start: var(--s-4);
	bottom: calc(var(--mz-app-float-bottom) + var(--safe-bottom));
	display: grid;
	place-items: center;
	width: 3.625rem;
	height: 3.625rem;
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-gold-text);
	box-shadow: var(--shadow-1), 0 0 0 4px var(--c-surface);
	text-decoration: none;
}

body:has(.mzs-fab:not([hidden])) .mzs-nfab {
	bottom: calc(var(--mz-app-float-bottom) + var(--safe-bottom) + 3.625rem + var(--s-3));
}

.mzs-nfab:active {
	transform: scale(0.96);
}

.mzs-nfab__count {
	position: absolute;
	top: -4px;
	inset-inline-start: -4px; /* same side as the cart count */
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: var(--r-pill);
	background: var(--c-bad);
	color: var(--c-on-gold);
	font: var(--fw-bold) var(--fs-micro)/1.25rem var(--f-text);
	text-align: center;
	box-shadow: 0 0 0 2px var(--c-surface);
}
