/* Menu */

.menu--desktop {
  display: block;
}

.menu--mobile {
  display: none;
}


@media (max-width:1225px) and (min-width:1141px) {
  .menu__item--depth-1,
.menu__item--depth-2 {
  padding: 25px 0px;
}
}

@media (max-width: 1140px) {
  .menu--desktop {
    display: none;
  }

  .menu--mobile {
    display: block;
  }
}

/* Menu items */

.menu__item {
  position: relative;
}

.menu__link {
  font-size: 0.917rem;
  line-height: 1.667rem;
  text-decoration: none;
}

.menu__link:hover,
.menu__link:focus,
.menu__link:active {
  text-decoration: none;
}

.menu__link--active-link,
.menu__link--active-branch {
  font-weight: bold;
}

@media (min-width: 768px) and (max-width: 1150px) {
  .menu__link {
    font-size: 0.833rem;
  }
}

@media (max-width: 1140px) {
  .menu__item {
    display: block;
    width: 100%;
  }

  .menu__link {
    display: block;
    font-size: 1.083rem;
  }
}

/* Menu items - top level */

.menu__item--depth-1,
.menu__item--depth-2 {
  cursor: pointer;
  display: inline-block;
  padding: 10px 5px;
  text-transform: uppercase;
}

.menu__item.menu__item--depth-1.menu__item--has-submenu.hs-skip-lang-url-rewrite {
  padding-right: 25px;
}

@media (max-width: 1140px) {
  .menu__item--depth-1,
  .menu__item--depth-2 {
    padding: 0;
  }

  .menu__item--depth-1:not(:last-child),
  .menu__item--depth-2:not(:last-child) {
    border-bottom: 1px solid #D7D9E3;
  }

  .menu__item--depth-1>.menu__link,
  .menu__item--depth-2>.menu__link {
    padding: 16px 0;
  }

  .menu__item--depth-1>.menu__link--active-link:after,
  .menu__item--depth-2>.menu__link--active-link:after {
    content: none;
  }

  .menu__item.menu__item--depth-1.menu__item--has-submenu.hs-skip-lang-url-rewrite {
    padding-right: 0;
  }
}

/* Menu items - submenus */

.menu__submenu {
  border-radius: 4px;
  box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  position: absolute;
  text-align: left;
  text-transform: none;
  top: 46px;
  width: 270px;
  z-index: 9;
}

.menu__item--open>.menu__submenu {
  display: block;
}
/* commented to keep menu open to right */ 
/*
.menu__submenu--level-2 {
  transform: translateX(-50%);
} 
*/

/* Keeps the first menu item's drop down menu aligned to the left of the top level menu item */

.menu__item--depth-1:first-child .menu__submenu--level-2 {
  transform: unset;
}

.menu__submenu .menu__item {
  padding: 0;
  width: 100%;
}

.menu__submenu .menu__item:not(:last-child) {
  border-bottom: 1px solid #D1D6DC;
}

.menu__submenu .menu__link {
  display: block;
  padding: 10px;
  transition: background-color 0.3s;
  width: 100%;
}

.menu__submenu--level-3 {
  left: 100%;
  top: 0;
}

/* Flyouts for the last two top level menu items go left to keep page responsive */

.menu__item--depth-1:nth-last-child(-n+2) .menu__submenu--level-3 {
  left: auto;
  right: 100%;
  top: 0;
}

/* Accounts for child toggle */

.menu__submenu .menu__item--has-submenu>.menu__link {
  padding-right: 3rem;
}

/* Creates the triangle at the top of the submenu drop down */

@media (min-width: 1141px) {

  /* Keeps triangle to the left for the first menu item's drop down menu */

  .menu__item--depth-1:first-child>.menu__submenu--level-2>.menu__item:first-child:before {
    left: 0;
  }

  .menu__submenu--level-2>.menu__item:first-child>.menu__link {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 1140px) {
  .menu__submenu {
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: static;
    transform: unset;
    width: 100%;
  }

  .menu__submenu .menu__item {
    background-color: transparent;
    padding: 0;
  }

  .menu__submenu .menu__link {
    transition: none;
  }

  .menu__submenu .menu__item .menu__link:hover,
  .menu__submenu .menu__item .menu__link:focus {
    background-color: inherit;
    transition: none;
  }

  .menu__submenu--level-3 .menu__item .menu__link {
    padding: 10px 10px 10px 20px;
  }
}

/* Menu icons */

.menu__submenu .menu__child-toggle {
  margin-left: auto;
  padding: 0 1.05rem;
}

.menu__child-toggle {
  position: absolute;
  right: 5px;
  top: 30px;
  z-index: 2;
}

.menu__item--depth-1>.menu__child-toggle,
.menu__item--depth-2>.menu__child-toggle {
  border: none;
  margin-left: 6px;
  padding: 0;
  position: absolute;
  right: 13px;
  top: 48%;
  transform: translateY(-50%);
  vertical-align: middle;
}

.menu__child-toggle-icon {
  cursor: pointer;
  display: block;
  height: 8px;
  position: absolute;
  right: -5px;
  top: 48%;
  transform: translateY(-50%) rotate(45deg);
  transition: transform .25s ease-in-out;
  width: 8px;
}

.menu__item--depth-2 .menu__child-toggle-icon {
  right: 10px;
  top: 0px;
}


@media (max-width: 1140px) {
  .st-header .st-menu-open {
    height: 0;
    overflow: hidden;
    transition: 0.3s linear all;
  }

  .st-header .row-fluid.show-menu .st-menu-open {
    height: auto;
  }

  .st-header .st-menu-open>.menu.menu--mobile {
    transform: translateY(calc(-100%));
    transition: 0.3s linear all;
  }

  .st-header .row-fluid.show-menu .st-menu-open>.menu.menu--mobile {
    transform: translateY(0);
    padding-top: 3.5em;
    padding-bottom: 1em;
  }

  .menu__item--depth-2 .menu__child-toggle-icon {
    top: 0;
  }
}


@media only screen and (max-width: 1140px) {
  .st-header .menu__item--depth-1 {
    position: relative;
  }

  .menu__item--depth-1>.menu__child-toggle,
  .menu__item--depth-2>.menu__child-toggle {
    position: absolute;
    top: 24px;
  }

  .menu__child-toggle-icon {
    right: 10px;
    transform: translateY(-50%) rotate(-45deg);
  }

  .menu__child-toggle--open+.menu__child-toggle>.menu__child-toggle-icon {
    transform: translateY(-50%) rotate(45deg);
  }
}

/*
@media (max-width:768px) {
  .menu__item--depth-1,
.menu__item--depth-2 {
  padding: 15px 0px;
} */
}