:root {
    --mobile-footer-menu-height: 58px;
}

.mobile-footer-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    background: #fff;
    border-top: 1px solid #d9d9d9;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-footer-menu__item {
    position: relative;
    flex: 1 1 25%;
    height: var(--mobile-footer-menu-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.mobile-footer-menu__item+.mobile-footer-menu__item {
    border-left: 1px solid #e5e5e5;
}

.mobile-footer-menu__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.mobile-footer-menu__icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

.mobile-footer-menu__item--basket .mobile-footer-menu__icon svg,
.mobile-footer-menu__item--compare .mobile-footer-menu__icon svg {
    width: 25px;
    height: 25px;
}

.mobile-footer-menu__badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 18px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    color: #d7000f;
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .mobile-footer-menu {
        display: flex;
    }

    body {
        padding-bottom: calc(var(--mobile-footer-menu-height) + env(safe-area-inset-bottom, 0));
    }
}

/* Чтобы меню было поверх виджетов */
.mobile-footer-menu {
    z-index: 2147483000;
}

/* При желании можно скрыть стандартные плавающие штуки на мобиле */
@media (max-width: 991px) {
    /*
	.warning {
		bottom: 70px;
	}
	*/
}