/**
 * General styling for menu. Styling that is connected to the header and menu button can be found in the archive of Sitevision
 */
.ahx-mobile-menu {
  font-family: avenir, sans-serif;
  font-size: 1.125rem;
  font-weight: bold;
  color: #313130;
  list-style-type: none;
}
.ahx-mobile-menu a{
  text-transform: uppercase;
  text-decoration: none;
}
.ahx-mobile-menu--hidden {
  display: none;
}
.ahx-mobile-menu__subsublist .ahx-mobile-menu__link,
.ahx-mobile-menu__subsublist .ahx-mobile-menu__sublink {
  padding: 0.75rem 0;
  font-size: 1rem;
  text-indent: 3rem;
}

/* First level */
.mobile-menu-wrapper > nav > ul > li > div > a {
  padding-left: 1rem;
}

/* Second level */
.ahx-mobile-menu.active > ul > li > ul > li > div > a {
  /* margin-right: 1rem; */
  margin-left: 2rem;
  font-size: 0.95rem;
}

/**
 * Active links 
 */
a.ahx-mobile-menu--active,
a.ahx-menu__link--active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}
.ahx-mobile-menu__subsublist a.ahx-sub__menu__link--active{
  text-decoration: underline;
  text-transform: unset;
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}
.ahx-mobile-menu.active > ul > li > ul > li:last-of-type .ahx-mobile-menu__sublink {
  border-bottom: 0;
}
.ahx-mobile-menu__link.ahx-mobile-menu--active {
  border-bottom: 0px #d6d6d6 solid;
}

/**
 * Menu links, all levels 
 */
.ahx-mobile-menu__link {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  /* border-bottom: 1px #d6d6d6 solid; */
}

/**
 * List containers 
 */
 .ahx-mobile-menu__list {
  margin: -1px 0 0 0;
  padding: 0;
}
.ahx-mobile-menu__sublist {
  background: #ededed;
  margin: -1px 0 0 0;
  padding: 0;
}
.ahx-mobile-menu__subsublist {
  background: #d6d6d6;
  text-indent: 2.5rem;
}

.ahx-mobile-menu__item {
  display: flex;
  flex-direction: column;
}

.ahx-mobile-menu__item__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px #d6d6d6 solid;
}

/**
 * Second and third level links 
 */
.ahx-mobile-menu__sublink {
  flex: 1 0 auto;
  display: block;
  padding-top: 1rem;
  padding-bottom: 1rem;
  /* border-bottom: 1px #d6d6d6 solid; */
}

/**
 * Third level links 
 */
.ahx-mobile-menu__subsublist .ahx-mobile-menu__sublink {
  text-transform: unset;
  border-bottom: 1px #d6d6d6 solid;
  font-weight: normal;
}

/***
 * Icons
 */
.ahx-mobile-menu.active > ul > li > ul > li > div > a > span {
  margin-right: 0;
}
.ahx-mobile-plus {
  /* float: right;
  margin-top: -52px; */
  display: flex;
  border: 0;
  padding: 1.2rem .5rem 1rem 1.1rem;
  background: none;
}
.ahx-mobile-menu__icon {
  position: relative;
  width: 16px;
  height: 16px;
  margin-right: 16px;
  transition: 0.2s all;
}
.ahx-mobile-menu__icon:before,
.ahx-mobile-menu__icon:after {
  content: "";
  display: block;
  background-color: #333;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}
.ahx-mobile-menu__icon:before {
  transform: translateY(-50%);
}
.ahx-mobile-menu__icon:after {
  transform: translateY(-50%) rotate(90deg);
}
.ahx-mobile-menu--active .ahx-mobile-menu__icon:before {
  transform: translateY(-50%) rotate(-90deg);
  opacity: 0;
}
.ahx-mobile-menu--active .ahx-mobile-menu__icon:after {
  transform: translateY(-50%) rotate(0);
}
/* active icon */
.ahx-mobile-plus.active .ahx-mobile-menu__icon:after {
  width: 0;
  height: 0;
  transition: none;
}
