/* Keep the v5.4.1 fixes + make label spans behave like links */
@media (max-width:1024px){
  /* Raise anchors above decorative SVGs; disable pointer events on SVGs */
  #qodef-mobile-header-navigation a,
  .qodef-mobile-header-navigation a,
  .qodef-mobile-nav a,
  .qodef-mobile-menu a { position:relative; z-index:2; }
  #qodef-mobile-header-navigation svg,
  .qodef-mobile-header-navigation svg,
  .qodef-mobile-nav svg,
  .qodef-mobile-menu svg,
  #qodef-mobile-header-navigation .qodef-svg--custom-shape-4,
  .qodef-mobile-header-navigation .qodef-svg--custom-shape-4,
  .qodef-mobile-nav .qodef-svg--custom-shape-4,
  .qodef-mobile-menu .qodef-svg--custom-shape-4 { pointer-events:none !important; z-index:1; }

  /* Parent row layout (works for <a> or "hide link" span) */
  .qodef-mobile-header-navigation li.menu-item-has-children > a,
  .qodef-mobile-nav li.menu-item-has-children > a,
  .qodef-mobile-menu li.menu-item-has-children > a,
  .qodef-mobile-header-navigation li.menu-item-has-children > span,
  .qodef-mobile-nav li.menu-item-has-children > span,
  .qodef-mobile-menu li.menu-item-has-children > span{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    width:100%;
    cursor:pointer;
  }

  /* Submenus closed by default; open when .is-open */
  .qodef-mobile-header-navigation .sub-menu,
  .qodef-mobile-nav .sub-menu,
  .qodef-mobile-menu .sub-menu{ display:none; margin:8px 0 0 0; }
  .qodef-mobile-header-navigation li.menu-item-has-children.is-open > .sub-menu,
  .qodef-mobile-nav li.menu-item-has-children.is-open > .sub-menu,
  .qodef-mobile-menu li.menu-item-has-children.is-open > .sub-menu{ display:block; }
}