/**
 * Seller dashboard sidebar corrections.
 *
 * Webkul's own sidebar template, Webkul_Marketplace::layout2/account/navigation.phtml,
 * carries an inline <style> block that hides whichever item happens to render last:
 *
 *     #wk-mp-nav > li:last-child,
 *     .menu-list > li:last-child { display: none; }
 *
 * That was presumably aimed at one particular item at the time it was written, but the
 * selector does not name one - it names "last". So the item it hides changes whenever a
 * module is added, removed or reordered, which is why Mass Upload had silently disappeared
 * from the sidebar while still rendering perfectly well in the HTML.
 *
 * These rules replace that behaviour without editing Webkul's template, so an extension
 * update cannot quietly bring it back:
 *
 *   1. the blanket hide is cancelled, so the last item is visible like any other;
 *   2. the item that is actually meant to be hidden is hidden by name.
 *
 * The inline <style> sits in the body and therefore comes after this file in the cascade,
 * so these selectors are written one element deeper - the leading "body" - to win on
 * specificity rather than with !important.
 */

/* 1. Stop hiding the last item. #wk-mp-nav > li sets no display of its own, so list-item
      is the value these items would otherwise have. */
body #wk-mp-nav > li:last-child,
body .menu-list > li:last-child {
    display: list-item;
}

/* 2. Hide Seller Store Pickup instead.

      Webkul_SellerStorePickup renders its item as a bare <li class="level-0"> with no id
      and no distinguishing class, so there is nothing on the element itself to target. The
      links inside it are the stable part: every one of them points at the sellerstorepickup
      front name, and no other sidebar item does.

      Note that this hides the menu only. If the intention is to switch the feature off
      altogether, Stores > Configuration > Seller Store Pickup > Enabled is the real
      control - the template already checks it, and turning it off also removes the
      storefront "Store Pickup" header link and the pickup shipping option. */
body #wk-mp-nav > li.level-0:has(a[href*="/sellerstorepickup/"]),
body .menu-list > li.level-0:has(a[href*="/sellerstorepickup/"]) {
    display: none;
}
