#autocategorymega.autocategorymega,
#autocategorymega-header.autocategorymega {
  position: relative;
  z-index: 20;
}

#autocategorymega .block_title {
  margin-bottom: 10px;
  font-weight: 700;
}

#autocategorymega .acm-level-1 {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

#autocategorymega .acm-level-1-item {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#autocategorymega .acm-level-1-item:last-child {
  border-bottom: 0;
}

#autocategorymega .acm-level-1-link {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 600;
}

#autocategorymega .acm-level-1-item.has-panel > .acm-level-1-link::after {
  content: '›';
  float: right;
}

#autocategorymega .acm-panel {
  position: absolute;
  top: -1px;
  left: calc(100% - 1px);
  min-width: 720px;
  max-width: min(980px, 76vw);
  display: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

#autocategorymega .acm-level-1-item:hover > .acm-panel,
#autocategorymega .acm-level-1-item:focus-within > .acm-panel,
#autocategorymega .acm-level-1-item.is-open > .acm-panel {
  display: block;
}

#autocategorymega .acm-panel-inner {
  display: grid;
  grid-template-columns: repeat(var(--acm-columns, 3), minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
}

#autocategorymega .acm-col {
  min-width: 0;
}

#autocategorymega .acm-level-2-link {
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  font-weight: 700;
}

#autocategorymega .acm-level-3 {
  list-style: none;
  margin: 0;
  padding: 0;
}

#autocategorymega .acm-level-3 li + li {
  margin-top: 6px;
}

#autocategorymega .acm-level-3-link {
  display: block;
  text-decoration: none;
}

@media (max-width: 1199px) {
  #autocategorymega .acm-panel {
    min-width: 640px;
    max-width: min(820px, 72vw);
  }
}

@media (max-width: 991px) {
  #autocategorymega .acm-panel {
    position: static;
    display: none;
    min-width: 0;
    max-width: 100%;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  #autocategorymega .acm-panel-inner {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  #autocategorymega .acm-level-1-item.is-open > .acm-panel {
    display: block;
  }
}

#autocategorymega-header.autocategorymega {
  z-index: 45;
  flex: 0 0 auto;
  margin-right: 22px;
}

#autocategorymega-header .acm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 18px;
  min-height: 56px;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

#autocategorymega-header .acm-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

#autocategorymega-header:hover .acm-toggle::after,
#autocategorymega-header:focus-within .acm-toggle::after,
#autocategorymega-header.is-open .acm-toggle::after {
  transform: rotate(225deg) translateY(-1px);
}

#autocategorymega-header .acm-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  display: none;
  padding-top: 8px;
}

#autocategorymega-header:hover .acm-menu,
#autocategorymega-header:focus-within .acm-menu,
#autocategorymega-header.is-open .acm-menu {
  display: block;
}

#autocategorymega-header .acm-level-1 {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

#autocategorymega-header .acm-level-1-item {
  position: static;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#autocategorymega-header .acm-level-1-item:last-child {
  border-bottom: 0;
}

#autocategorymega-header .acm-level-1-link {
  position: relative;
  display: block;
  padding: 13px 48px 13px 20px;
  text-decoration: none;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

#autocategorymega-header .acm-level-1-item.has-panel > .acm-level-1-link::after {
  content: '\203A';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

#autocategorymega-header .acm-level-1-item:hover > .acm-level-1-link,
#autocategorymega-header .acm-level-1-item:focus-within > .acm-level-1-link,
#autocategorymega-header .acm-level-1-item.is-open > .acm-level-1-link {
  background: #f5f7fa;
}

#autocategorymega-header .acm-panel {
  position: absolute;
  top: 8px;
  left: calc(100% - 1px);
  min-width: 720px;
  max-width: min(980px, 70vw);
  display: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

#autocategorymega-header .acm-level-1-item:hover > .acm-panel,
#autocategorymega-header .acm-level-1-item:focus-within > .acm-panel,
#autocategorymega-header .acm-level-1-item.is-open > .acm-panel {
  display: block;
}

#autocategorymega-header .acm-panel-inner {
  display: grid;
  grid-template-columns: repeat(var(--acm-columns, 3), minmax(0, 1fr));
  gap: 20px;
  padding: 24px;
}

#autocategorymega-header .acm-col {
  min-width: 0;
}

#autocategorymega-header .acm-level-2-link {
  display: block;
  margin-bottom: 10px;
  color: #222;
  font-weight: 700;
  text-decoration: none;
}

#autocategorymega-header .acm-level-3 {
  list-style: none;
  margin: 0;
  padding: 0;
}

#autocategorymega-header .acm-level-3 li + li {
  margin-top: 6px;
}

#autocategorymega-header .acm-level-3-link {
  display: block;
  color: #555;
  text-decoration: none;
}

@media (max-width: 1199px) {
  #autocategorymega-header {
    margin-right: 14px;
  }

  #autocategorymega-header .acm-toggle {
    min-height: 52px;
    padding: 0 14px;
    font-size: 14px;
  }

  #autocategorymega-header .acm-panel {
    min-width: 620px;
    max-width: min(760px, 65vw);
  }
}

@media (max-width: 991px) {
  #autocategorymega-header {
    width: 100%;
    margin: 0 0 12px;
  }

  #autocategorymega-header .acm-toggle {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
  }

  #autocategorymega-header .acm-menu {
    position: static;
    min-width: 0;
    padding-top: 0;
  }

  #autocategorymega-header .acm-level-1 {
    box-shadow: none;
    border-top: 0;
  }

  #autocategorymega-header .acm-panel {
    position: static;
    min-width: 0;
    max-width: 100%;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  #autocategorymega-header .acm-panel-inner {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }
}
