/* Refreshed mobile bottom navigation */
.mit-m-footer-menu {
    display: none;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .mit-mini-cart,
    .mit-m-category {
        z-index: 1045;
    }

    .mit-m-footer-menu {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1036;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        width: 100%;
        min-height: calc(72px + env(safe-area-inset-bottom));
        padding: 7px 7px calc(6px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid #e4e7eb;
        box-shadow: 0 -10px 30px rgba(25, 30, 37, .12);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .mit-m-footer-menu .mobile-footer-item {
        position: relative;
        display: grid;
        grid-template-rows: 35px 15px;
        align-items: center;
        justify-items: center;
        gap: 3px;
        min-width: 0;
        min-height: 57px;
        margin: 0;
        padding: 2px 2px 0;
        color: #747c86;
        text-decoration: none;
        background: transparent;
        border: 0;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }

    .mit-m-footer-menu .mobile-footer-icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 34px;
        padding: 0;
        color: #626a74;
        line-height: 1;
        background: transparent;
        border-radius: 11px;
        transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .mit-m-footer-menu .mobile-footer-icon i {
        margin: 0;
        color: inherit;
        font-size: 16px;
        line-height: 1;
        text-shadow: none;
    }

    .mit-m-footer-menu .mobile-footer-label {
        display: block;
        width: 100%;
        overflow: hidden;
        padding: 0;
        color: inherit;
        font-size: 10px;
        font-weight: 700;
        line-height: 14px;
        letter-spacing: .01em;
        text-align: center;
        text-overflow: ellipsis;
        text-transform: none;
        white-space: nowrap;
    }

    .mit-m-footer-menu .mobile-footer-item:hover,
    .mit-m-footer-menu .mobile-footer-item:focus-visible,
    .mit-m-footer-menu .mobile-footer-item.is-active {
        color: #20242b;
        outline: none;
    }

    .mit-m-footer-menu .mobile-footer-item:hover .mobile-footer-icon,
    .mit-m-footer-menu .mobile-footer-item:focus-visible .mobile-footer-icon,
    .mit-m-footer-menu .mobile-footer-item.is-active .mobile-footer-icon {
        color: #20242b;
        background: #fff0d5;
        transform: translateY(-1px);
    }

    .mit-m-footer-menu .mobile-footer-item.is-active .mobile-footer-icon {
        color: #fff;
        background: #20242b;
        box-shadow: 0 5px 12px rgba(28, 33, 40, .16);
    }

    .mit-m-footer-menu .mobile-footer-item.is-active .mobile-footer-label {
        color: #ad6500;
    }

    .mit-m-footer-menu .mobile-footer-item:focus-visible {
        box-shadow: 0 0 0 3px rgba(245, 166, 35, .22);
    }

    .mit-m-footer-menu .mobile-footer-icon sup {
        position: absolute;
        top: -6px;
        right: -7px;
        left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 19px;
        width: auto;
        height: 19px;
        padding: 0 5px;
        color: #22272e;
        font-size: 9px;
        font-weight: 800;
        line-height: 1;
        background: #ffad27;
        border: 2px solid #fff;
        border-radius: 99px;
        transform: none;
    }

    .mit-m-footer-menu .mobile-footer-cart {
        overflow: visible;
    }

    .mit-m-footer-menu .mobile-footer-cart-icon {
        width: 50px;
        height: 50px;
        color: #20242b;
        background: #ffad27;
        border: 4px solid #fff;
        border-radius: 16px;
        box-shadow: 0 9px 22px rgba(226, 139, 0, .3);
        transform: translateY(-13px);
    }

    .mit-m-footer-menu .mobile-footer-cart-icon i {
        font-size: 17px;
    }

    .mit-m-footer-menu .mobile-footer-cart .mobile-footer-label {
        color: #545c66;
        transform: translateY(-9px);
    }

    .mit-m-footer-menu .mobile-footer-cart:hover .mobile-footer-cart-icon,
    .mit-m-footer-menu .mobile-footer-cart:focus-visible .mobile-footer-cart-icon {
        color: #fff;
        background: #20242b;
        transform: translateY(-15px);
    }

    .mit-m-footer-menu .mobile-footer-cart-icon sup {
        top: -8px;
        right: -9px;
    }

    .mit-back-top {
        right: 14px;
        bottom: calc(88px + env(safe-area-inset-bottom));
        z-index: 1028;
        width: 46px;
        height: 46px;
        color: #20242b;
        font-size: 14px;
        line-height: 46px;
        background: #ffad27;
        border: 2px solid #fff;
        box-shadow: 0 8px 22px rgba(226, 139, 0, .28);
        animation: none;
    }
}

@media (max-width: 374.98px) {
    .mit-m-footer-menu {
        padding-right: 4px;
        padding-left: 4px;
    }

    .mit-m-footer-menu .mobile-footer-label {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mit-m-footer-menu .mobile-footer-icon {
        transition: none;
    }
}
