/* Mobile menu: trigger, overlay/panel, panel contents, submenus, accessibility. */
.inoforest-mobile-menu-widget-wrap {
  position: relative;
}

.inoforest-mobile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  border: 1px solid currentColor;
  --icon-size: 20px;
}

.inoforest-mobile-trigger i {
  font-size: var(--icon-size);
  line-height: 1;
}

.inoforest-mobile-trigger svg,
.inoforest-mobile-trigger .e-font-icon-svg,
.inoforest-mobile-trigger .elementor-icon svg {
  width: var(--icon-size);
  height: var(--icon-size);
  display: inline-block;
  flex: 0 0 var(--icon-size);
  fill: currentColor;
}

.inoforest-mobile-overlay-widget {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s step-end;
  z-index: 9998;
}

.inoforest-mobile-menu-widget.offcanvas {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 80vw;
  max-width: 360px;
  background: #fff;
  transform: translate3d(-100%,0,0);
  transition: transform .3s ease;
  z-index: 9999;
  outline: none;
}

.inoforest-mobile-menu-widget.offcanvas.from-right { left: auto; right: 0; transform: translate3d(100%,0,0); }
.inoforest-mobile-menu-widget.offcanvas.from-top { left: 0; right: 0; width: 100vw; height: 60vh; transform: translate3d(0,-100%,0); }
.inoforest-mobile-menu-widget.offcanvas.from-bottom { left: 0; right: 0; width: 100vw; height: 60vh; bottom: 0; top: auto; transform: translate3d(0,100%,0); }
.inoforest-mobile-menu-widget.offcanvas.from-left { left: 0; right: auto; }

.inoforest-mobile-menu-widget-wrap.is-open .inoforest-mobile-overlay-widget { opacity: 1; visibility: visible; transition-timing-function: ease, step-start; }
.inoforest-mobile-menu-widget-wrap.is-open .inoforest-mobile-menu-widget.offcanvas { transform: translate3d(0,0,0); }

.inoforest-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.inoforest-offcanvas-header .inoforest-close-btn {
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.inoforest-close-btn svg { width: 1em; height: 1em; fill: currentColor; }
/* Content → Top of the Panel / Under the Menu: saved templates; the top one sits beside the close button. */
.inoforest-offcanvas-top { flex: 1 1 auto; min-width: 0; margin-inline-end: 12px; }
.inoforest-offcanvas-bottom { padding: 10px; }
.inoforest-mobile-menu-widget.offcanvas:has(.inoforest-offcanvas-bottom) { overflow-y: auto; }

.inoforest-mobile-nav .menu { list-style: none; margin: 0; padding: 10px; }
.inoforest-mobile-nav .menu > li { border-bottom: 1px solid rgba(0,0,0,.06); }
.inoforest-mobile-nav .menu a { display: block; padding: 12px 10px; color: inherit; text-decoration: none; }
.inoforest-mobile-nav .menu .menu-item-has-children > a { position: relative; }
/* Submenus open in place with the round toggle beside their item (Style → Submenu toggle sets --ino-mm-toggle-*). */
.inoforest-mobile-nav {
  --ino-mm-toggle-size: 36px;
  --ino-mm-toggle-bg: var(--inoforest-color-surface, #f4f8f8);
  --ino-mm-toggle-color: var(--inoforest-color-heading, #0d1b2a);
  --ino-mm-toggle-open-bg: var(--inoforest-color-primary, #0b7a75);
  --ino-mm-toggle-open-color: #ffffff;
}
.inoforest-mobile-nav .menu li { position: relative; }
.inoforest-mobile-nav .menu .menu-item-has-children > a { padding-right: calc(var(--ino-mm-toggle-size) + 12px); }
.inoforest-mobile-nav .inoforest-submenu-toggle {
  position: absolute;
  top: 6px;
  right: 0;
  display: grid;
  place-items: center;
  width: var(--ino-mm-toggle-size);
  height: var(--ino-mm-toggle-size);
  padding: 0;
  color: var(--ino-mm-toggle-color);
  background: var(--ino-mm-toggle-bg);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.inoforest-mobile-nav .inoforest-submenu-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.inoforest-mobile-nav .inoforest-submenu-toggle:focus-visible { outline: 2px solid var(--ino-mm-toggle-open-bg); outline-offset: 2px; }
.inoforest-mobile-nav .submenu-open > .inoforest-submenu-toggle {
  color: var(--ino-mm-toggle-open-color);
  background: var(--ino-mm-toggle-open-bg);
  transform: rotate(180deg);
}
.inoforest-mobile-nav .menu .sub-menu { display: none; margin: 0; padding: 0 0 12px 12px; list-style: none; }
.inoforest-mobile-nav .menu .menu-item-has-children.submenu-open > .sub-menu { display: grid; gap: 4px; }
.inoforest-mobile-nav .menu .sub-menu a {
  padding: 9px 14px;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--inoforest-color-text, #5b6b79);
  border-radius: 10px;
}
.inoforest-mobile-nav .menu .sub-menu a:hover,
.inoforest-mobile-nav .menu .sub-menu a:focus-visible,
.inoforest-mobile-nav .menu .sub-menu .current-menu-item > a {
  color: var(--inoforest-color-primary, #0b7a75);
  background: var(--inoforest-color-primary-light, #e5f3f2);
}
@media (prefers-reduced-motion: reduce) {
  .inoforest-mobile-nav .inoforest-submenu-toggle { transition: none; }
}



html.inoforest-mobile-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .inoforest-mobile-menu-widget.offcanvas,
  .inoforest-mobile-overlay-widget { transition: none; }
}
