/* Patch H: full-row submenu targets on mobile and laptop. */
@media (max-width: 1024px) {
  #mobile-menu .navigation .menu-item.active > .submenu {
    width: min(86vw, 340px) !important;
    max-width: 340px !important;
    background: #fff;
    z-index: 2;
  }

  #mobile-menu .navigation > .menu-item {
    min-height: 44px;
    cursor: pointer;
  }

  #mobile-menu .navigation > .menu-item > .menu-item__link {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 22px;
  }

  #mobile-menu .navigation > .menu-item > .menu-item__link [data-toggle-submenu] {
    flex: 0 0 30px;
    margin-left: auto;
  }
}

@media (min-width: 1025px) {
  .hy-desktop-nav__cascade-item.has-children > .hy-desktop-nav__cascade-link,
  .hy-desktop-nav__flyout-item.has-children > .hy-desktop-nav__flyout-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    cursor: pointer;
  }
}

/* Isolated mobile panels: no shared desktop navigation selectors. */
@media (max-width: 1024px) {
  #mobile-menu .hy-mobile-menu-panels [hidden] { display: none !important; }
  #mobile-menu .hy-mobile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    color: inherit;
    font: inherit;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    touch-action: manipulation;
  }
  #mobile-menu .hy-mobile-row > span:first-child { min-width: 0; }
  #mobile-menu .hy-mobile-row img { flex: 0 0 24px; object-fit: contain; }
  #mobile-menu .hy-mobile-arrow { margin-left: auto; pointer-events: none; }
  #mobile-menu .hy-mobile-back { background: #f4f4f4; }
  #mobile-menu .hy-mobile-row:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
}
