
/* NUJIZ CATEGORY MOBILE MENU V3 */

#ncmButton,
#ncmDialog{
    display:none!important;
}

@media(max-width:1199px){

    html body.nujiz-unified-mobile #ncmButton{
        display:flex!important;
        position:fixed!important;
        inset-inline-start:12px!important;
        top:calc(15px + env(safe-area-inset-top,0px))!important;
        z-index:10000!important;
        align-items:center;
        justify-content:center;
        width:46px!important;
        height:46px!important;
        padding:10px!important;
        border:1px solid #a68aff!important;
        border-radius:13px!important;
        background:linear-gradient(135deg,#5530c7,#8157ed)!important;
        color:#fff!important;
        -webkit-text-fill-color:#fff!important;
        box-shadow:0 5px 20px #5834bb40;
        cursor:pointer;
    }

    #ncmButton svg{
        width:25px;
        height:25px;
        stroke:#fff!important;
    }

    html body.nujiz-unified-mobile
    .site-header .menu-toggle,
    html body.nujiz-unified-mobile
    #nujizMainMobileMenu{
        display:none!important;
    }

    html body.nujiz-unified-mobile
    .site-header .header-inner{
        padding-inline-start:66px!important;
    }

    html body.nujiz-unified-mobile #ncmDialog[open]{
        display:flex!important;
        flex-direction:column;
        position:fixed!important;
        inset:0!important;
        margin:0!important;
        margin-inline-end:auto!important;
        width:min(320px,88vw)!important;
        max-width:88vw!important;
        height:100dvh!important;
        max-height:100dvh!important;
        padding:0!important;
        border:0!important;
        border-radius:0!important;
        background:#fff!important;
        color:#182238!important;
        box-shadow:0 0 50px #0005;
        overflow:hidden;
        animation:ncmSlide .25s ease-out;
    }

    #ncmDialog::backdrop{
        background:rgba(8,12,24,.65);
        backdrop-filter:blur(3px);
    }

    html[data-theme="dark"] body #ncmDialog[open]{
        background:#141923!important;
        color:#f1f5f9!important;
    }

    #ncmDialog .ncm-head{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        padding:22px 18px;
        background:linear-gradient(135deg,#43249e,#7950df)!important;
    }

    html body #ncmDialog .ncm-head strong{
        font-size:23px!important;
        font-weight:900!important;
        color:#fff!important;
        -webkit-text-fill-color:#fff!important;
    }

    html body #ncmDialog .ncm-head small{
        display:block;
        margin-top:4px;
        font-size:13px!important;
        color:#eee7ff!important;
        -webkit-text-fill-color:#eee7ff!important;
    }

    html body #ncmClose{
        display:flex!important;
        align-items:center;
        justify-content:center;
        width:40px;
        height:40px;
        border:1px solid #ffffff55;
        border-radius:11px;
        background:#ffffff20!important;
        color:#fff!important;
        -webkit-text-fill-color:#fff!important;
        font-size:25px!important;
        cursor:pointer;
    }

    #ncmDialog .ncm-links{
        display:flex!important;
        flex-direction:column;
        flex:1;
        min-height:0;
        gap:7px;
        padding:16px 12px;
        overflow-y:auto;
        overscroll-behavior:contain;
    }

    html body #ncmDialog .ncm-link{
        display:flex!important;
        align-items:center;
        gap:13px;
        min-height:54px;
        padding:10px 13px;
        border:1px solid #e3e7ef;
        border-radius:12px;
        background:#f7f8fc!important;
        color:#263247!important;
        -webkit-text-fill-color:#263247!important;
        font-size:15px!important;
        font-weight:800!important;
        text-decoration:none!important;
    }

    html[data-theme="dark"] body #ncmDialog .ncm-link{
        background:#202633!important;
        border-color:#353e50!important;
        color:#f1f5f9!important;
        -webkit-text-fill-color:#f1f5f9!important;
    }

    #ncmDialog .ncm-icon{
        display:grid;
        place-items:center;
        flex:0 0 36px;
        height:36px;
        border-radius:10px;
        background:var(--ncm-color);
        color:#fff!important;
        -webkit-text-fill-color:#fff!important;
    }

    #ncmDialog .ncm-icon svg{
        width:21px;
        height:21px;
        stroke:#fff!important;
    }

    html body #ncmDialog .ncm-link[aria-current="page"]{
        border-color:#9674ed!important;
        background:#eee7ff!important;
        color:#5129bb!important;
        -webkit-text-fill-color:#5129bb!important;
    }

    html[data-theme="dark"] body
    #ncmDialog .ncm-link[aria-current="page"]{
        background:#362654!important;
        color:#e2d5ff!important;
        -webkit-text-fill-color:#e2d5ff!important;
    }

    html body #ncmDialog .ncm-language{
        display:block;
        padding:15px;
        margin:10px 12px;
        margin-bottom:calc(12px + env(safe-area-inset-bottom,0px));
        text-align:center;
        border:1px solid #a68aff;
        border-radius:12px;
        color:#7045d8!important;
        -webkit-text-fill-color:#7045d8!important;
        font-weight:800!important;
        text-decoration:none;
    }

    html[data-theme="dark"] body
    #ncmDialog .ncm-language{
        color:#d5c4ff!important;
        -webkit-text-fill-color:#d5c4ff!important;
    }

    html:has(#ncmDialog[open]){
        overflow:hidden!important;
    }

    @keyframes ncmSlide{
        from{opacity:0;transform:translateX(var(--ncm-slide))}
        to{opacity:1;transform:translateX(0)}
    }
}

@media(prefers-reduced-motion:reduce){
    #ncmDialog{
        animation:none!important;
    }
}

/* NUJIZ CATEGORY MOBILE V31 LAYER FIX */

@media(max-width:1199px){

    html body.nujiz-unified-mobile #ncmButton{
        z-index:2147483647!important;
        pointer-events:auto!important;
        visibility:visible!important;
        opacity:1!important;
        touch-action:manipulation!important;
        isolation:isolate!important;
        cursor:pointer!important;
    }

    html body.nujiz-unified-mobile #ncmButton svg,
    html body.nujiz-unified-mobile #ncmButton svg *{
        pointer-events:none!important;
    }

    html body.nujiz-unified-mobile #ncmDialog[open]{
        position:fixed!important;
        inset-block-start:0!important;
        inset-block-end:0!important;
        inset-inline-start:0!important;
        inset-inline-end:auto!important;
        margin:0!important;
        transform:none!important;
        animation:none!important;
        pointer-events:auto!important;
    }

    html body.nujiz-unified-mobile #ncmClose{
        pointer-events:auto!important;
        touch-action:manipulation!important;
    }

    html body.nujiz-unified-mobile #ncmDialog .ncm-link{
        pointer-events:auto!important;
        touch-action:manipulation!important;
    }
}

/* NUJIZ CATEGORY MOBILE V32 COMPACT */

@media(max-width:1199px){

    html body.nujiz-unified-mobile #ncmButton{
        width:34px!important;
        height:34px!important;
        min-width:34px!important;
        min-height:34px!important;
        padding:7px!important;
        border-radius:9px!important;
        top:calc(18px + env(safe-area-inset-top,0px))!important;
        inset-inline-start:10px!important;
    }

    html body #ncmButton svg{
        width:19px!important;
        height:19px!important;
    }

    html body.nujiz-unified-mobile
    .site-header .header-inner{
        padding-inline-start:49px!important;
    }

    html body.nujiz-unified-mobile #ncmDialog[open]{
        width:min(280px,85vw)!important;
        max-width:85vw!important;
        height:100dvh!important;
        max-height:100dvh!important;
        box-sizing:border-box!important;
    }

    html body #ncmDialog .ncm-head{
        position:relative!important;
        flex:0 0 auto!important;
        padding:12px 14px!important;
        min-height:0!important;
        gap:8px!important;
    }

    html body #ncmDialog .ncm-head strong{
        font-size:19px!important;
        line-height:1.3!important;
    }

    html body #ncmDialog .ncm-head small{
        font-size:10px!important;
        line-height:1.5!important;
        margin-top:3px!important;
    }

    html body #ncmClose{
        width:30px!important;
        height:30px!important;
        min-width:30px!important;
        min-height:30px!important;
        padding:0!important;
        font-size:20px!important;
        line-height:1!important;
        border-radius:8px!important;
    }

    html body #ncmDialog .ncm-links{
        position:relative!important;
        flex:1 1 0!important;
        min-height:0!important;
        padding:10px!important;
        margin:0!important;
        gap:5px!important;
        overflow-y:auto!important;
        overflow-x:hidden!important;
        scrollbar-width:thin;
        -webkit-overflow-scrolling:touch;
    }

    html body #ncmDialog .ncm-link{
        flex:0 0 auto!important;
        min-height:42px!important;
        height:auto!important;
        padding:6px 9px!important;
        gap:9px!important;
        border-radius:9px!important;
        font-size:13px!important;
        line-height:1.4!important;
        font-weight:700!important;
        box-sizing:border-box!important;
    }

    html body #ncmDialog .ncm-link span{
        font-size:13px!important;
        line-height:1.4!important;
    }

    html body #ncmDialog .ncm-icon{
        flex:0 0 28px!important;
        width:28px!important;
        height:28px!important;
        border-radius:7px!important;
    }

    html body #ncmDialog .ncm-icon svg{
        width:17px!important;
        height:17px!important;
    }

    html body #ncmDialog #ncmLogin{
        display:flex!important;
        position:relative!important;
        flex:0 0 auto!important;
        align-items:center!important;
        justify-content:center!important;
        gap:8px!important;
        width:calc(100% - 20px)!important;
        min-height:40px!important;
        height:auto!important;
        padding:9px!important;
        margin:8px 10px!important;
        margin-bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
        border:1px solid #8c6de5!important;
        border-radius:10px!important;
        background:linear-gradient(135deg,#5530c7,#7951df)!important;
        color:#fff!important;
        -webkit-text-fill-color:#fff!important;
        font-size:13px!important;
        font-weight:800!important;
        cursor:pointer!important;
        box-sizing:border-box!important;
    }

    html body #ncmDialog #ncmLogin *{
        color:#fff!important;
        -webkit-text-fill-color:#fff!important;
    }

    #ncmLogin svg{
        width:17px!important;
        height:17px!important;
    }

}


/* NUJIZ UNIFIED MOBILE MENU V4 */

@media(max-width:1199px){

    html body.nujiz-unified-mobile
    .site-header .header-inner{
        position:relative!important;
        padding-inline-start:49px!important;
    }

    html body.nujiz-unified-mobile #ncmButton{
        position:absolute!important;
        inset-inline-start:9px!important;
        inset-inline-end:auto!important;
        top:50%!important;
        bottom:auto!important;
        transform:translateY(-50%)!important;
        width:34px!important;
        height:34px!important;
        min-width:34px!important;
        min-height:34px!important;
        z-index:2147483647!important;
        pointer-events:auto!important;
        touch-action:manipulation!important;
        flex-shrink:0!important;
    }

    html body.nujiz-unified-mobile
    .site-header .menu-toggle,

    html body.nujiz-unified-mobile
    #nujizMainMobileMenu,

    html body.nujiz-unified-mobile
    button[id*="nujizEdge"],

    html body.nujiz-unified-mobile
    button[class*="nujiz-edge-toggle"],

    html body.nujiz-unified-mobile
    button[class*="nujiz-edge-trigger"]{
        display:none!important;
    }

    html body.nujiz-unified-mobile
    #ncmDialog[open]{
        transform:none!important;
        animation:none!important;
        overflow:hidden!important;
    }

    html body.nujiz-unified-mobile
    #ncmDialog .ncm-head{
        flex-shrink:0!important;
    }

    html body.nujiz-unified-mobile
    #ncmDialog .ncm-links{
        flex:1 1 0!important;
        min-height:0!important;
        overflow-y:auto!important;
    }

    html body.nujiz-unified-mobile
    #ncmDialog #ncmLogin{
        flex-shrink:0!important;
    }

}

@media(min-width:1200px){

    html body.nujiz-unified-mobile #ncmButton,
    html body.nujiz-unified-mobile #ncmDialog{
        display:none!important;
    }

}

/* NUJIZ UNIFIED MOBILE MENU V41 FLOATING */

@media(max-width:1199px){

    html body.nujiz-unified-mobile #ncmButton{

        position:fixed!important;

        inset-inline-start:10px!important;
        inset-inline-end:auto!important;

        top:calc(18px + env(safe-area-inset-top,0px))!important;
        bottom:auto!important;

        transform:none!important;

        width:34px!important;
        height:34px!important;

        min-width:34px!important;
        min-height:34px!important;

        z-index:2147483647!important;

        display:flex!important;
        visibility:visible!important;
        opacity:1!important;

        pointer-events:auto!important;
        touch-action:manipulation!important;

        border-radius:9px!important;

        box-shadow:
            0 3px 12px rgba(0,0,0,.22)!important;

        transition:
            background .15s ease,
            box-shadow .15s ease;
    }

    html body.nujiz-unified-mobile #ncmButton svg,
    html body.nujiz-unified-mobile #ncmButton svg *{
        pointer-events:none!important;
    }

    html body.nujiz-unified-mobile #ncmButton svg{
        width:19px!important;
        height:19px!important;
    }

    html body.nujiz-unified-mobile
    #ncmButton:active{
        background:#43249e!important;
    }

    html body.nujiz-unified-mobile
    .site-header .header-inner{
        padding-inline-start:49px!important;
    }

    html body.nujiz-unified-mobile
    #ncmDialog[open]{
        transform:none!important;
        animation:none!important;
    }
}

@media(min-width:1200px){

    html body.nujiz-unified-mobile #ncmButton,
    html body.nujiz-unified-mobile #ncmDialog{
        display:none!important;
    }
}

/* NUJIZ FLOATING MENU V42 */

@media(max-width:1199px){

    html body.nujiz-unified-mobile #ncmButton{
        position:fixed!important;
        inset:auto!important;
        inset-inline-start:10px!important;
        top:calc(18px + env(safe-area-inset-top,0px))!important;
        margin:0!important;
        transform:none!important;
        width:34px!important;
        height:34px!important;
        box-sizing:border-box!important;
        z-index:2147483647!important;
        pointer-events:auto!important;
    }

    html body.nujiz-unified-mobile
    #ncmButton[popover]:not(:popover-open){
        display:none!important;
    }

    html body.nujiz-unified-mobile
    #ncmButton:popover-open{
        display:flex!important;
        visibility:visible!important;
        opacity:1!important;
        overflow:visible!important;
    }

    #ncmButton::backdrop{
        background:transparent!important;
        pointer-events:none!important;
    }

}

@media(min-width:1200px){

    html body.nujiz-unified-mobile #ncmButton{
        display:none!important;
    }
}
