/* MAMA Mobile Bar — replaces the bar/WhatsApp button injected by the theme script */

/* hide the old theme-injected versions so there are never two */
.mama-bottom-nav,
.mama-whatsapp-float { display: none !important; }

.mmb-bar { display: none; }

.mmb-wa {
	position: fixed;
	right: 18px;
	bottom: 92px;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25D366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
	z-index: 9990;
	text-decoration: none;
}

@media (max-width: 767px) {
	.mmb-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		align-items: stretch;
		justify-content: space-around;
		gap: 4px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
		background: var(--mama-pal-cocoa, #38251B);
		border-top: 1px solid var(--mama-pal-gold, #F0A91E);
		z-index: 9980;
	}
	.mmb-item {
		flex: 1 1 0;
		min-width: 0;
		min-height: 52px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		border-radius: 12px;
		color: var(--mama-pal-cream, #FBF7EF);
		opacity: .85;
		font-size: 11px;
		letter-spacing: .02em;
		text-decoration: none;
	}
	.mmb-item.is-active {
		background: var(--mama-pal-gold, #F0A91E);
		color: var(--mama-pal-cocoa, #38251B);
		opacity: 1;
		font-weight: 700;
	}
	/* WhatsApp always clear of the bar */
	.mmb-wa {
		bottom: calc(88px + env(safe-area-inset-bottom, 0px));
		right: 14px;
		width: 50px;
		height: 50px;
	}
	body.has-mmb-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
