/* PS-MENU-02: independent mobile category navigation. Desktop is untouched. */
#ps-category-navigation { display: none; }
#ps-category-navigation summary { list-style: none; }
#ps-category-navigation summary::-webkit-details-marker { display: none; }
@media (max-width: 979px) {
    #ps-category-navigation {
        display: block;
        box-sizing: border-box;
        max-width: 100%;
        margin-top: 8px;
        margin-bottom: 12px;
    }
    body:has(#ps-category-navigation) .moduletable_menu:has([data-ps-desktop-categories="97"]) { display: none; }
    #ps-category-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        padding: 6px 15px;
        border: 1px solid #dc913d;
        border-radius: 3px;
        background: #ffffff !important;
        color: #a35d06 !important;
        font: 600 16px/1.4 Arial, sans-serif;
        text-align: left;
        cursor: pointer;
    }
    #ps-category-toggle:is(:hover, :focus-visible, :active) {
        color: #783500 !important;
        border-color: #a35d06;
    }
    #ps-category-toggle > span { font-size: 24px; transform: rotate(90deg); }
    #ps-category-disclosure[open] > #ps-category-toggle > span { transform: rotate(-90deg); }
    #ps-category-panel {
        box-sizing: border-box;
        max-height: 65vh;
        max-height: 65dvh;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        border: 1px solid #ddd;
        border-top: 0;
        background: #fff;
    }
    #ps-category-navigation ul { list-style: none; margin: 0; padding: 0; }
    #ps-category-navigation li { list-style: none; margin: 0; padding: 0; background: none; }
    #ps-category-navigation .ps-cat-line { display: flex; align-items: stretch; min-width: 0; }
    #ps-category-navigation .ps-category-tree > li > .ps-cat-line {
        background: #fff7ec;
        border-bottom: 1px solid #efd9bc;
    }
    #ps-category-navigation .ps-cat-line > a {
        display: flex;
        align-items: center;
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        padding: 8px 10px;
        box-sizing: border-box;
        font: 650 15px/1.4 Arial, sans-serif;
        color: #783500;
        text-decoration: none;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    #ps-category-navigation li > details > ul {
        margin-inline-start: 12px;
        padding-inline-start: 8px;
        border-inline-start: 1px solid #dc913d;
    }
    #ps-category-navigation .ps-category-tree ul .ps-cat-line > a {
        color: #a35d06;
        font-weight: 500;
    }
    #ps-category-navigation .ps-category-tree ul ul {
        margin-inline-start: 10px;
        padding-inline-start: 7px;
        border-inline-start-color: #efc58f;
    }
    #ps-category-navigation .ps-category-tree ul ul .ps-cat-line {
        position: relative;
    }
    #ps-category-navigation .ps-category-tree ul ul .ps-cat-line::before {
        content: "";
        position: absolute;
        inset-inline-start: -7px;
        top: 22px;
        width: 7px;
        border-top: 1px solid #efc58f;
        pointer-events: none;
    }
    #ps-category-navigation .ps-category-tree ul ul .ps-cat-line > a {
        color: #783500;
        font-weight: 400;
    }
    #ps-category-navigation .ps-cat-has-branch { position: relative; }
    #ps-category-navigation .ps-cat-has-branch > .ps-cat-line { padding-inline-end: 44px; }
    #ps-category-navigation .ps-cat-branch {
        position: absolute;
        inset-block-start: 0;
        inset-inline-end: 0;
        display: grid;
        place-items: center;
        width: 44px;
        min-height: 44px;
        padding: 0 !important;
        border: 0;
        border-radius: 0 !important;
        background: transparent !important;
        color: #783500 !important;
        box-shadow: none;
        cursor: pointer;
    }
    #ps-category-navigation .ps-cat-branch::before {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
    }
    #ps-category-navigation details[open] > .ps-cat-branch::before { transform: rotate(45deg); }
    #ps-category-navigation .ps-cat-branch:hover { background: #ffeed8 !important; }
    #ps-category-navigation .ps-cat-current > .ps-cat-line > a,
    #ps-category-navigation .ps-cat-line > a:hover {
        color: #783500;
        background: #ffeed8;
    }
    #ps-category-navigation .ps-cat-current > .ps-cat-line > a { box-shadow: inset 2px 0 #dc913d; }
    #ps-category-navigation :is(a,summary):focus-visible { outline: 2px solid #783500; outline-offset: -3px; }
}
