/**
 * Mobile menu UI (split-row links, submenus, mega flatten).
 * Panel layout and trigger: css/header-mobile-desktop.css
 */

/* Top-level shell */
#mobile-menu .menu-hlavne-menu-container > ul.menu > li {
  border-bottom: 0 !important;
  background-color: #f2f0f8;
}

#mobile-menu .menu-hlavne-menu-container > ul.menu > li.openlist {
  background-color: #fff;
}

#mobile-menu .menu-hlavne-menu-container > ul.menu > li > ul {
  padding: 0 !important;
  margin: 0;
  background-color: #fff;
}

#mobile-menu .mega-menu-groups .cell:last-child {
  padding-bottom: 0;
}

/* Split row (parent + leaf) */
#mobile-menu .mobile-menu-row {
  display: flex !important;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  border-bottom: 1px solid #e6e6e6 !important;
  box-sizing: border-box;
}

#mobile-menu .mobile-menu-row > a,
#mobile-menu .mobile-menu-row > a.dropdown-toggle {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  padding: 12px 15px !important;
  margin: 0;
  display: flex !important;
  align-items: center;
  text-decoration: none !important;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: #3c3c3b;
  background: transparent !important;
  box-shadow: none !important;
}

#mobile-menu .mobile-menu-row--link-only > a {
  width: 100% !important;
  font-weight: 600;
  color: #3c3c3b !important;
}

#mobile-menu .mobile-menu-row > a::after,
#mobile-menu .mobile-menu-row > a.dropdown-toggle::after {
  display: none !important;
  content: none !important;
}

#mobile-menu .mobile-menu-row > a i,
#mobile-menu .mobile-menu-row > a .zanada-icon {
  display: none !important;
}

#mobile-menu .mobile-menu-row .menu-toggle {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

#mobile-menu .mobile-menu-row .menu-toggle:hover,
#mobile-menu .mobile-menu-row .menu-toggle:focus {
  background-color: rgba(132, 104, 199, 0.08) !important;
  outline: none;
}

#mobile-menu .mobile-menu-row .menu-toggle i {
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: block !important;
  padding: 0 !important;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1;
  color: #3c3c3b !important;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

#mobile-menu .mobile-menu-row .menu-toggle i.spinnx {
  transform: rotate(90deg);
}

/* Active / expanded */
#mobile-menu li.openlist > .mobile-menu-row > a,
#mobile-menu .menu-hlavne-menu-container > ul.menu > li.current-menu-ancestor > .mobile-menu-row > a,
#mobile-menu .menu-hlavne-menu-container > ul.menu > li.current > .mobile-menu-row > a {
  color: #8468c7;
  font-weight: 700;
}

#mobile-menu .menu-hlavne-menu-container > ul.menu > li.current-menu-ancestor > .mobile-menu-row > a,
#mobile-menu .menu-hlavne-menu-container > ul.menu > li.current > .mobile-menu-row > a {
  text-decoration: underline;
}

#mobile-menu .mega-menu-groups .cell.current-menu-ancestor .menu-item-mega > .mobile-menu-row > a,
#mobile-menu .mega-menu-groups .cell.current-menu-item .menu-item-mega > .mobile-menu-row > a,
#mobile-menu .mega-menu-groups .cell.current .menu-item-mega > .mobile-menu-row > a,
#mobile-menu .mega-menu-groups .cell.openlist .menu-item-mega > .mobile-menu-row > a,
#mobile-menu .mega-menu-groups .cell.current-menu-ancestor .menu-item-mega > .mobile-menu-row--link-only > a,
#mobile-menu .mega-menu-groups .cell.current-menu-item .menu-item-mega > .mobile-menu-row--link-only > a,
#mobile-menu .mega-menu-groups .cell.current .menu-item-mega > .mobile-menu-row--link-only > a {
  font-weight: 700;
  color: #8468c7 !important;
}

#mobile-menu li.openlist > .mobile-menu-row .menu-toggle {
  background-color: #f7f5fc !important;
}

#mobile-menu .mega-menu-submenu ul > li.current-menu-item > .mobile-menu-row--link-only > a,
#mobile-menu .mega-menu-submenu ul > li.current-menu-ancestor > .mobile-menu-row--link-only > a,
#mobile-menu .dropdown-submenu > li.current-menu-item > .mobile-menu-row--link-only > a,
#mobile-menu .dropdown-submenu > li.current-menu-ancestor > .mobile-menu-row--link-only > a {
  color: #8468c7 !important;
}

#mobile-menu .mobile-menu-row > a:hover,
#mobile-menu .mobile-menu-row > a:focus {
  color: #8468c7 !important;
}

/* Mega grid (mobile stack) */
#mobile-menu .mega-menu-content,
#mobile-menu .mega-menu-content > .grid-x,
#mobile-menu .mega-menu-groups {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

#mobile-menu .mega-menu-groups .cell {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  float: none !important;
  padding: 0 !important;
}

#mobile-menu .menu-item-mega {
  border-bottom: 0;
}

#mobile-menu .menu-item-mega > .mobile-menu-row > a,
#mobile-menu .menu-item-mega > .mobile-menu-row--link-only > a {
  padding-left: 20px !important;
}

#mobile-menu .dropdown-submenu > li > .mobile-menu-row--link-only > a {
  padding-left: 20px !important;
}

#mobile-menu .mega-menu-submenu ul > li,
#mobile-menu .dropdown-submenu > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#mobile-menu .menu-item-mega > .mega-menu-submenu > ul,
#mobile-menu .menu-hlavne-menu-container > ul.menu > li.hasmenu > .dropdown-submenu {
  margin: 0 !important;
  padding: 0 !important;
  border-left: 0 !important;
}

/* Footer links (Blog, Kontakt, O nás) */
#mobile-menu .mobile-menu-custom-item {
  display: block;
  padding: 14px 15px;
  font-size: 0.9375rem;
  color: #3c3c3b;
  text-decoration: none;
  border-bottom: 1px solid #e6e6e6;
  background-color: #f9f9f9;
}

#mobile-menu .mobile-menu-custom-item:hover,
#mobile-menu .mobile-menu-custom-item:focus {
  color: #8468c7;
  background-color: #f7f5fc;
}

/* Utilities */
#mobile-menu .mobile_allcategory {
  display: none !important;
}
