/* Stack mobile header above page overlays — do not change theme positioning */
.cryptro-mobile-header-wrap {
    z-index: 10050;
}

.cryptro-mobile-header {
    z-index: 10050;
}

/* Theme: .cryptro-mobile-menu-right { position:absolute; right:30px; top:50% } — keep it */
.cryptro-mobile-menu-right {
    z-index: 10051;
}

.cryptro-mobile-menu .cryptro-mobile-menu-button,
.cryptro-mobile-menu .cryptro-mm-menu-button {
    pointer-events: auto;
    touch-action: manipulation;
    cursor: pointer;
}

.elementor-menu-toggle {
    pointer-events: auto;
    touch-action: manipulation;
    cursor: pointer;
}

/* Cart hover zone overlaps the hamburger on narrow screens */
@media (max-width: 999px) {
    .cryptro-main-menu-cart .cryptro-top-cart-hover-area {
        pointer-events: none;
    }
}

/*
 * Start page: RevSlider fullscreen (.rs-go-fullscreen) uses z-index: 9999999
 * and covers the Cryptro mobile header, blocking hamburger taps.
 */
@media (max-width: 999px) {
    body.ie-start-page .cryptro-mobile-header-wrap {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10000001 !important;
    }

    body.ie-start-page .cryptro-body-outer-wrapper {
        padding-top: 75px;
    }

    body.ie-start-page .rs-go-fullscreen {
        z-index: 1 !important;
    }

    /* Theme slides the fixed header off-screen when mmenu opens — keep it put on Start */
    body.ie-start-page html.mm-opening.cryptro-mmenu-right .cryptro-mobile-header-wrap,
    body.ie-start-page html.mm-opening.cryptro-mmenu-right .cryptro-mobile-header,
    body.ie-start-page html.mm-opening.cryptro-mmenu-right .cryptro-mobile-header-wrap .cryptro-top-bar {
        transform: none !important;
        -webkit-transform: none !important;
    }
}

/*
 * Cryptro mmenu panel defaults to z-index: 0 — invisible above RevSlider/page layers.
 * Blocker at z-index: 100 is also far too low.
 */
@media (max-width: 999px) {
    .mm-menu.mm-offcanvas.mm-current,
    #cryptro-mobile-menu.mm-menu {
        z-index: 10000002 !important;
    }

    #mm-blocker {
        z-index: 10000000 !important;
    }
}

/* IE drawer — reliable mobile nav (bypasses broken mmenu stacking on Start / RevSlider) */
.ie-mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 10000004;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ie-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    max-height: 100dvh;
    background: #fff;
    z-index: 10000005;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.14);
}

body.ie-mobile-nav-open {
    overflow: hidden;
}

body.ie-mobile-nav-open .ie-mobile-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.ie-mobile-nav-open .ie-mobile-drawer {
    transform: translateX(0);
}

.ie-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e8edf4;
}

.ie-mobile-drawer__title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.ie-mobile-drawer__close {
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 28px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
}

.ie-mobile-drawer__list,
.ie-mobile-drawer__sublist {
    list-style: none;
    margin: 0;
    padding: 8px 0 24px;
}

.ie-mobile-drawer__list > li > a,
.ie-mobile-drawer__sublist > li > a {
    display: block;
    padding: 14px 22px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.ie-mobile-drawer__list > li > a:hover,
.ie-mobile-drawer__list > li > a:focus-visible,
.ie-mobile-drawer__sublist > li > a:hover,
.ie-mobile-drawer__sublist > li > a:focus-visible {
    background: #f8fafc;
    color: #2563eb;
}

.ie-mobile-drawer__section {
    display: block;
    padding: 16px 22px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ie-mobile-drawer__sublist > li > a {
    padding-left: 34px;
    font-size: 14px;
    font-weight: 500;
}
