.stcm-flyout-portal { display: none; }
@media (min-width: 1025px) {
    .wd-header-cats .wd-dropdown-cats > .wd-nav-vertical.stcm-managed {
        height: auto !important; min-height: 0 !important; max-height: var(--stcm-root-max, 70vh) !important;
        overflow-y: auto !important; overflow-x: hidden !important; overscroll-behavior: contain; scrollbar-width: thin;
        flex: 0 1 auto !important;
    }
    .wd-header-cats .wd-dropdown-cats > .wd-nav-vertical.stcm-managed > li.stcm-category-menu-item > .wd-dropdown-menu,
    .wd-header-cats .wd-dropdown-cats > .wd-nav-vertical.stcm-managed > li.stcm-category-menu-item > .sub-menu { display: none !important; }
    .wd-header-cats .wd-dropdown-cats > .wd-nav-vertical.stcm-managed > li.stcm-hover-open > a { background-color: #f3f6f9; }
    /* Same geometry on native hover and while the pointer is in the portal.
       WoodMart's hidden dropdown transform must not return on hover loss. */
    .wd-header-cats:hover > .wd-dropdown-cats.stcm-dropdown-managed,
    .wd-header-cats.stcm-menu-hover-guard > .wd-dropdown-cats.stcm-dropdown-managed {
        transform: none !important; translate: none !important; transition: none !important;
    }
    .wd-header-cats.stcm-menu-hover-guard > .wd-dropdown-cats.stcm-dropdown-managed {
        display: var(--stcm-visible-display, block) !important;
        visibility: visible !important; opacity: 1 !important; pointer-events: auto !important;
    }
    .stcm-flyout-portal { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 100001; }
    .stcm-flyout-panel {
        position: fixed; display: block; pointer-events: auto; overflow-y: auto; overflow-x: hidden;
        height: auto; min-height: 0; margin: 0; box-sizing: border-box; background: #fff; color: #242424;
        border: 1px solid #e8e8e8; border-radius: 6px; box-shadow: 0 2px 9px rgba(0,0,0,.09);
        scrollbar-width: thin; overscroll-behavior: contain; font-family: inherit;
    }
    .stcm-flyout-panel ul { display: block; list-style: none; padding: 3px 0; margin: 0; height: auto; min-height: 0; }
    .stcm-flyout-panel li { display: block; list-style: none; padding: 0; margin: 0; }
    .stcm-flyout-panel a { display: flex; align-items: center; gap: 8px; padding: 7px 14px; min-height: 31px; box-sizing: border-box; font-size: 13px; font-weight: 400; line-height: 1.35; color: #151515; text-decoration: none; overflow-wrap: anywhere; }
    .stcm-flyout-panel a > span:first-of-type { flex: 1; min-width: 0; }
    .stcm-flyout-panel a:hover, .stcm-flyout-panel a:focus-visible, .stcm-flyout-panel li.stcm-hover-open > a { background: #f3f6f9; color: #007032; }
    .stcm-flyout-panel img { width: var(--stcm-panel-icon,20px); height: var(--stcm-panel-icon,20px); object-fit: contain; flex: 0 0 var(--stcm-panel-icon,20px); }
    .stcm-flyout-panel .stcm-flyout-arrow { margin-left: auto; color: #888; font-size: 16px; flex: 0 0 auto; }
}
