@media (min-width: 992px) {
    .needz-mobile-menu-search,
    .needz-mobile-header-drawer__back {
        display: none !important;
    }
}

@media (max-width: 991px) {
    body .needz-header-6-shell,
    body .needz-header-6.tp-header-height {
        height: 70px !important;
    }

    html body.needz-header-6-active .needz-collection-toolbar {
        top: 70px !important;
    }

    html body.show-admin-bar.needz-header-6-active .needz-collection-toolbar {
        top: 110px !important;
    }

    .needz-header-6__right > a.needz-header-6__icon-link:not(.needz-header-6__wishlist) {
        display: inline-flex !important;
    }

    body.needz-mobile-header-ready .offcanvas__area {
        display: none !important;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer {
        display: block !important;
        position: fixed !important;
        top: var(--needz-mobile-header-drawer-top, 70px) !important;
        right: auto !important;
        bottom: auto !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        height: calc(100vh - var(--needz-mobile-header-drawer-top, 70px)) !important;
        height: calc(100dvh - var(--needz-mobile-header-drawer-top, 70px)) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior: contain;
        scroll-behavior: smooth;
        scroll-snap-type: none;
        transform: translate3d(-100%, 0, 0) !important;
        transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
        will-change: transform;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer.is-open {
        transform: translate3d(0, 0, 0) !important;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer:focus {
        outline: none;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer__panels {
        display: flex !important;
        width: max-content !important;
        min-width: 100% !important;
        height: 100% !important;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer__panel {
        flex: 0 0 100vw !important;
        width: 100vw !important;
        height: 100% !important;
        padding: 0 24px max(32px, env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        scrollbar-width: none;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer__panel::-webkit-scrollbar {
        display: none;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer__title {
        margin: 26px 0 10px !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        letter-spacing: 0.22em !important;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer__title--muted {
        margin-top: 12px !important;
        padding-top: 22px !important;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer__menu a,
    body.needz-mobile-header-ready .needz-header-6-drawer__categories a,
    body.needz-mobile-header-ready .needz-header-6-drawer__view-all {
        min-height: 48px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer__menu a:focus-visible,
    body.needz-mobile-header-ready .needz-header-6-drawer__categories a:focus-visible,
    body.needz-mobile-header-ready .needz-header-6-drawer__view-all:focus-visible,
    .needz-mobile-menu-search__button:focus-visible,
    .needz-mobile-header-drawer__back:focus-visible {
        outline: 2px solid #010f1c;
        outline-offset: 3px;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer__menu a:active,
    body.needz-mobile-header-ready .needz-header-6-drawer__categories a:active,
    body.needz-mobile-header-ready .needz-header-6-drawer__view-all:active,
    .needz-mobile-menu-search__button:active,
    .needz-mobile-header-drawer__back:active {
        opacity: 0.55;
    }

    .needz-mobile-menu-search {
        position: relative;
        display: flex;
        width: 100%;
        min-height: 48px;
        margin: 12px 0 16px;
        border: 0;
        border-bottom: 1px solid rgba(1, 15, 28, 0.18);
        background: #fff;
    }

    .needz-mobile-menu-search:focus-within {
        border-bottom-color: #010f1c;
    }

    .needz-mobile-menu-search__input {
        min-width: 0;
        height: 47px !important;
        padding: 0 6px !important;
        border: 0 !important;
        background: transparent !important;
        color: #010f1c;
        font: inherit;
        font-size: 14px !important;
        line-height: 47px !important;
    }

    .needz-mobile-menu-search__input::placeholder {
        color: #777;
        opacity: 1;
    }

    .needz-mobile-menu-search__input:focus-visible {
        outline: none;
    }

    .needz-mobile-menu-search__button {
        display: inline-flex;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        border: 0;
        background: transparent;
        color: #010f1c;
    }

    .needz-mobile-menu-search__button svg {
        width: 19px;
        height: 19px;
    }

    .needz-mobile-header-drawer__back {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 52px;
        margin: 0 0 8px;
        padding: 0;
        border: 0;
        border-bottom: 1px solid rgba(1, 15, 28, 0.14);
        background: transparent;
        color: #010f1c;
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.2em;
        text-align: left;
        text-transform: uppercase;
    }

    .needz-mobile-header-drawer__back svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }

    body.needz-header-6-drawer-open {
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.needz-mobile-header-ready .needz-header-6-drawer {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    body.needz-mobile-header-ready .needz-header-6-drawer__panel {
        animation: none !important;
    }
}
