.wrapper {
	z-index: 6;
}

.mobile_panel { 
    background: rgba(255,255,255,0.9); 
    position: fixed; 
    bottom: 0; left: 0; right: 0; 
    padding: 10px 10px 5px;
    z-index: 5; 
    display: none; 
    justify-content: space-between; 
    align-items: baseline;
    border-top: 1px solid #fff;
}

/* Применение CSS переменных для иконок */
.item_icon { 
    text-align: center; 
    cursor: pointer;
    position: relative;
    color: var(--fp-icon-color);
}
.item_icon.active, 
.item_icon.active2 { 
    color: var(--fp-icon-active); 
}
.item_icon .title { 
    font-size: 13px;
    font-family: var(--font2);
    font-weight: var(--font2_500);
    color: currentColor;
}
.item_icon img { max-height: 22px; }

/* Обертки для всплывающих меню */
.popup_add_mobile_wrap,   
.popup_categor_mobile_wrap {
    display: none;
    position: fixed;
    top: 95px; bottom: 57px;
    left: 0; right: 0;
    z-index: 1000;
    background: #fff;
    padding: 0 15px;
}
.popup_categor_mobile_wrap {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Каталог и Модалки */
.popup_categor_mobile { 
    overflow: auto;
    min-height: calc(75vh - 64px);
    max-height: calc(75vh - 64px);
    display: flex; 
    flex-wrap: wrap;
    text-align: center;
    padding-bottom: 0;
    width: 100%;
}
.popup_categor_mobile a { 
    display: flex;
    margin: 0; 
    width: 100%; 
    text-decoration: none; 
    color: #000; 
    align-items: flex-start;
    flex-direction: column; 
    justify-content: center;
    padding: 4px 0;
    font-size: 14px;
    height: 100%;
    gap: 6px;
}
.popup_categor_mobile a .folder_f_l_text {
	margin-top: auto;
}
.popup_categor_mobile a .folder_f_l_icon {
	height: 100%;
}
.popup_categor_mobile a:hover,
.popup_categor_mobile a:focus,
.popup_categor_mobile a:active { color: #000; }
.popup_categor_mobile span { 
    display: block; 
    padding-top: 0; 
    font-size: 16px;
    color: #000;
    font-weight: bold;
}
.popup_categor_mobile img { max-width: 160px; max-height: 160px;width: 100%;height: 100%;object-fit: contain; }

.popup_add_mobile_wrap.animate__backInUp,
.popup_categor_mobile_wrap.animate__backInUp { 
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
}

.inner_wr {
    background: #fff;
    position: relative;
    z-index: 2;
    border-radius: 20px 20px 0 0;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.animate__backInUp .title, 
.popup_categor_mobile_wrap .title { 
    font-size: 20px; 
    text-align: left;
    padding: 5px 0 15px;
    color: #000;
    width: 100%;
}
.popup_categor_mobile_wrap .title { border-bottom: 1px solid #000; margin-bottom: 20px; }

/* Кнопки закрытия */
.close_panel {
    background: url('close.svg') center center / 15px 15px no-repeat;
    height: 30px; width: 30px;
    position: absolute;
    top: 15px; right: 20px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close_panel.close_panel_cat { background: none; }

.popup_add_mobile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: 100%;
  justify-content: center;
}
.popup_add_mobile .item_icon { margin: 12px; position: relative; }
.popup_add_mobile .item_icon .title { font-size: 14px; padding-top: 6px; }

.animate__animated .close_wrap {
    content:'';
    background: rgba(0,0,0,0.5);
    position: fixed;
    top: -100px; bottom: 100%;
    left: 0; right: 0;
}
.popup_categor_mobile_wrap .close_wrap {
    left: -10px; right: -10px; bottom: 0;
}

/* Структура каталога */
.popup_categor_mobile ul {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr;gap: 10px; width: 100%;height: 100%;
}
.popup_categor_mobile ul ul { flex-direction: column; }
.popup_categor_mobile ul ul ul { display: none; }

.popup_categor_mobile > ul > li { 
    display: inline-block; vertical-align: top; 
    width: 100%;  
    border-radius: 0px; margin: 0;
    text-align: left;
}
.popup_categor_mobile > ul > li > ul { display: none !important; }

.popup_categor_mobile ul.subLevel { width: 100%; flex-direction: column; }
.popup_categor_mobile ul.subLevel li { display: block; width: auto; }
.popup_categor_mobile ul.subLevel li a {
    flex-direction: row; justify-content: flex-start; width: auto; padding: 4px 15px;
}
.popup_categor_mobile ul.subLevel li a img { width: 100%; max-width: 90px; margin-right: 20px; }
.popup_categor_mobile ul.subLevel li a span { padding-top: 0; }

.cat-back-but {
    position: absolute; bottom: 15px; left: 20px; 
    cursor: pointer; width: 40px; height: 30px;
    border-radius: 2px; display: none;
}
.noscroll .mobile_panel { z-index: 100; }

.item_icon .total-count {
  position: absolute; top: -10px; left: 50%;
  display: flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  border: 1px solid #000; border-radius: 50%;
  color: #000; background: #fff;
  box-sizing: border-box; font-size: 10px;
  padding: 0 2px; line-height: normal;
}
.menu-100 .menu-item-image { display: none !important; }

@media screen and (max-width: 960px) {
	.mobile_panel {display: flex;}
    .__jivoMobileButton { bottom: 45px !important; }
    body #s3-cookie-message { bottom: 68px !important; }
    .footer-bottom {padding-bottom: 60px;}
}