/* ==========================================================================
   TriKdanG App Shell & Commerce Engine — Fourthwall docking (Module C)

   Re-docks fourthwall-storefront's floating cart tab (default:
   position:fixed; bottom:24px; right:24px; z-index:9998 — see
   fourthwall-storefront/assets/css/storefront.css) so it sits clear of
   the App Navigation bar's fixed bottom bar and never outranks
   trikdang-flex's own drawers/modals (max z-index in that theme: 220).
   ========================================================================== */

.fws-cart-toggle--floating {
	bottom: 120px; /* clears the fixed mobile bottom App Navigation bar */
	z-index: 210;  /* above regular content, below the Pilot/menu drawers (220) and search overlay */
}

/* WooCommerce checkout/cart-drawer overlays from fourthwall-storefront
   itself (.fws-cart-overlay / .fws-modal__overlay, default z-index:9997)
   brought in line the same way, so a theme drawer opened on top of an
   already-open Fourthwall cart drawer still wins. */
.fws-cart-overlay,
.fws-modal__overlay {
	z-index: 205;
}

@media (max-width: 767px) {
	.fws-cart-toggle--floating {
		bottom: 84px;   /* the mobile bottom nav is shorter than the desktop safety margin needs */
		right: 16px;
		transform: scale(0.9);
		transform-origin: bottom right;
	}
}

/* ---- .suppress-fourthwall utility class --------------------------------
   Add to <body> (via a template's body_class filter, a game CPT
   template, or the games.trikdang.com child theme) to hide the widget
   entirely on pages where it would collide with an interactive canvas —
   e.g. full-bleed game embeds. */
.suppress-fourthwall .fws-cart-toggle--floating,
.suppress-fourthwall .fws-cart-toggle--inline {
	display: none !important;
}
