/**
 * Live chat overlap rules — Atonom (getsignals.ai) and inContact/CXone.
 * Both may be active during the Atonom rollout; keep inContact rules until CXone is fully retired.
 * Hide or reposition chat when site UI occupies the same space.
 * Uses opacity + pointer-events (not z-index) because third-party widget stacking is unreliable.
 */

/* Shared hide pattern — overlay/drawer/modal triggers */
body.dp-header-drawer-open iframe[src*="getsignals.ai"][title="Chat"],
body.dp-header-drawer-open #cxone-guide-container,
body.dp-block-search-form--open iframe[src*="getsignals.ai"][title="Chat"],
body.dp-block-search-form--open #cxone-guide-container,
body.dp-plan-search-filter-drawer-open iframe[src*="getsignals.ai"][title="Chat"],
body.dp-plan-search-filter-drawer-open #cxone-guide-container,
body:has(#dp-edit-location-modal.is-open) iframe[src*="getsignals.ai"][title="Chat"],
body:has(#dp-edit-location-modal.is-open) #cxone-guide-container,
body.page-id-4927 iframe[src*="getsignals.ai"][title="Chat"],
body.page-id-4927 #cxone-guide-container,
body.hide-chat-button iframe[src*="getsignals.ai"][title="Chat"],
body.hide-chat-button #cxone-guide-container {
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Popup promo minimized tab — float chat above bottom-right pill (desktop only; mobile
   keeps hide-chat-button when minimized — see popup-banner.php setChatButtonVisibility). */
@media (min-width: 768px) {
	body.show-chat-button iframe[src*="getsignals.ai"][title="Chat"] {
		bottom: 60px !important;
		right: 20px !important;
	}
}
