/* BIMXEI MOBILE MENU Z-INDEX FIX - SENIOR ENGINEER APPROACH */

/* Step 1: Remove the negative z-index from cart on mobile */
@media (max-width: 768px) {
  div[class*="woolentor_mini_cart"] {
    z-index: 9998 !important;
    position: fixed !important;
  }
}

/* Step 2: Ensure ElementsKit menu is above cart */
@media (max-width: 768px) {
  div[class*="ekit-menu-overlay"],
  div[class*="elementkit-menu-overlay"] {
    z-index: 9999 !important;
  }
  
  nav[class*="ekit-menu"],
  div[class*="ekit-menu-container"] {
    z-index: 10000 !important;
  }
}

/* Step 3: Kill form/select overlap */
@media (max-width: 768px) {
  /* Select2 library selects (checkout page) */
  .select2-container {
    z-index: 9997 !important;
  }
  
  /* Native selects */
  select {
    z-index: auto;
  }
}

/* Step 4: Disable SpeedyCache minification interference */
* {
  box-sizing: border-box;
}