/**
 * Lift the QuadLayers WhatsApp button above the theme mobile CTA bar.
 *
 * Bar: nav.mcta (Co.Space 2026 theme, hidden at min-width: 900px)
 *   padding: 10px 12px calc(10px + env(safe-area-inset-bottom))
 *   links: min-height 48px
 *   content height without safe-area: 10 + 48 + 10 = 68px
 * Bubble: .qlwapp .qlwapp__container--bottom-right (wp-whatsapp-chat / Social Chat 8.4.0)
 *   position: fixed; bottom: 0; button margin-bottom: 24px
 *
 * Only applies below 900px, and only when the bar is in the document.
 * JS may set --cospace-mcta-clearance to the measured bar height + 8px gap
 * (already includes safe-area). Fallback matches the known 68px + safe-area + 8px.
 */
@media (max-width: 899px) {
	body:has(nav.mcta) .qlwapp .qlwapp__container.qlwapp__container--bottom-right,
	body:has(nav.mcta) .qlwapp .qlwapp__container.qlwapp__container--bottom-left {
		bottom: var(--cospace-mcta-clearance, calc(68px + env(safe-area-inset-bottom, 0px) + 8px));
	}

	/* Default plugin margin is 24px; sit the pill on the raised container edge. */
	body:has(nav.mcta) .qlwapp .qlwapp__container.qlwapp__container--bottom-right .qlwapp__button,
	body:has(nav.mcta) .qlwapp .qlwapp__container.qlwapp__container--bottom-left .qlwapp__button {
		margin-bottom: 0;
	}
}
