/* Max Mobile Bottom Menu v1.1.2 */
:root{
  --mmbm-bg:#fff;
  --mmbm-text:#111;
  --mmbm-icon:#111;
  --mmbm-border:#111;
  --mmbm-border-width:2px;
}

/* Container */
.mmbm-wrap{ position:relative; width:100%; }

/* Bottom bar - mobile only */
.mmbm-bar{
  position:fixed;
  left:12px; right:12px; bottom:max(12px, env(safe-area-inset-bottom));
  background:var(--mmbm-bg);
  border: var(--mmbm-border-width, 2px) solid var(--mmbm-border) !important;
  border-radius:14px;
  padding:10px;
  display:flex; align-items:center; justify-content:space-between;
  gap:8px;
  z-index:2147483000;
  transition: transform .22s ease, opacity .18s ease;
}
.mmbm-bar.is-hidden{ transform: translateY(160%); opacity:0; pointer-events:none; }

.mmbm-item{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; text-decoration:none; color:var(--mmbm-text,#111) !important;
  background:transparent; border:0; cursor:pointer; min-width:56px;
}
.mmbm-item i{ font-size:20px; color:var(--mmbm-icon,#111) !important; }
.mmbm-item span{ font-size:11px; font-weight:600; color:var(--mmbm-text,#111) !important; }

/* Mini search */
.mmbm-search{
  position:fixed;
  left:12px; right:12px; bottom:calc(78px + env(safe-area-inset-bottom));
  background:#fff; border: var(--mmbm-border-width, 2px) solid var(--mmbm-border) !important; border-radius:12px;
  display:flex; gap:8px; align-items:center; padding:8px 10px;
  z-index:2147483001;
}
.mmbm-search input[type="search"]{
  flex:1; border:0; outline:0; font-size:14px;
}
.mmbm-search[hidden]{ display:none !important; }
/* Hide browser built-in search clear icons */
.mmbm-search input[type="search"]::-webkit-search-decoration,
.mmbm-search input[type="search"]::-webkit-search-cancel-button,
.mmbm-search input[type="search"]::-webkit-search-results-button,
.mmbm-search input[type="search"]::-webkit-search-results-decoration{ display:none; }

/* Overlay & Panel */
.mmbm-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:2147483002; opacity:0; transition:opacity .2s ease;
}
.mmbm-overlay.is-open{ opacity:1; }

.mmbm-panel{
  position:fixed; top:0; bottom:0; left:0; width:80vw; max-width:360px;
  background:#fff; border-right:2px solid var(--mmbm-border,#111);
  transform:translateX(-105%); transition:transform .25s ease;
  z-index:2147483003; display:flex; flex-direction:column;
}
.mmbm-panel.is-open{ transform:translateX(0); }
.mmbm-panel[hidden]{ display:none !important; }
.mmbm-panel-top{ display:flex; align-items:center; justify-content:space-between; padding:10px; border-bottom:1px solid #eee; }
.mmbm-back, .mmbm-close{ background:transparent; border:1px solid #ddd; border-radius:10px; padding:8px 10px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.mmbm-nav{ padding:6px 10px; overflow:auto; flex:1; }

/* Drilldown */
.mmbm-menu, .mmbm-menu .children{ list-style:none; margin:0; padding:0; }
.mmbm-menu > li{ border-bottom:1px dashed #eee; }
.mmbm-menu a{ display:flex; justify-content:space-between; padding:12px 6px; color:var(--mmbm-text,#111); text-decoration:none; font-weight:600; }
.mmbm-menu .children{ display:none; }
.mmbm-menu.is-active{ display:block; }
.mmbm-nav .mmbm-menu:not(.is-active){ display:none; }

/* Only show on small screens */
@media (min-width: 992px){
  .mmbm-bar, .mmbm-search, .mmbm-overlay, .mmbm-panel{ display:none !important; }
}

/* Elementor container edge fit */
.elementor-widget-container .mmbm-bar{ left:0; right:0; }
