/* ==========================================================================
   CUSTOM MOBILE ISLAND HEADER
   ========================================================================== */

#mobileheader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    z-index: 1000 !important;
    padding: 12px 12px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: padding-top .25s ease, transform .25s ease !important;
    transform-origin: top center !important;
}

#mobileheader.scrolled {
    padding-top: 2px !important;
    transform: scale(.98) !important;
}

#mobileheader .mobileheader {
    width: 100% !important;
    max-width: 100% !important;
    height: 58px !important;
    padding: 0 14px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,.06) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.10) !important;
    box-sizing: border-box !important;
    transition: box-shadow .25s ease, border-color .25s ease !important;
}

#mobileheader.scrolled .mobileheader {
    border-color: rgba(0,0,0,.10) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.12) !important;
}

#mobileheader .mobileheader__inner {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#mobileheader .mobileheader__item {
    min-width: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

#mobileheader .mobileheader .logo {
    max-width: 118px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
}

#mobileheader .mobileheader .logo img {
    max-height: 40px !important;
    width: auto !important;
    display: block !important;
}

#mobileheader .mobileheader__item--right-icons {
    min-width: 48px !important;
    justify-content: flex-end !important;
}

#mobileheader .mobileheader__item--right-icons .line-block {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    min-width: 0 !important;
}

#mobileheader .mobileheader__item--right-icons .line-block > .line-block__item {
    padding-left: 24px !important;
    padding-right: 0 !important;
}

#mobileheader .burger {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#mobileheader svg {
    max-width: 24px !important;
    max-height: 24px !important;
}

body.mmenu_dropdown #mobilemenu {
    top: 82px;
}

.mobilemenu__overlay {
    top: 0 !important;
}

body.mmenu_leftside #mobilemenu {
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh;
}

body.bx-admin-panel #mobileheader,
html.bx-admin-panel #mobileheader,
html.bx-with-bx-panel #mobileheader {
    top: 39px !important;
}

@media (max-width: 360px) {
    #mobileheader {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #mobileheader .mobileheader {
        height: 56px !important;
        padding: 0 12px !important;
    }

    #mobileheader .mobileheader .logo {
        max-width: 100px !important;
    }

    #mobileheader .mobileheader .logo img {
        max-height: 36px !important;
    }
}

/* Убираем зарезервированное место под мобильную шапку */
body #mobileheader + #mobilefilter,
body .body #mobileheader + #mobilefilter {
    margin-top: 0 !important;
}

/* Чтобы баннер начинался от самого верха */
body .main.banner-auto {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Убираем верхний отступ у первого баннера */
body .body > .main,
body .body > .banner-auto,
body .body .top_big_banners,
body .body .banners-big {
    margin-top: 0 !important;
    padding-top: 0 !important;
}



