/* Menu */
.menu--mobile {
  display: none;
}

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

  .header__navigation.header--element.open .menu--mobile {
    display: block;
  }

  .menu--mobile {
    display: ;
    padding-top: 32px;
  }
}

/* Menu items */

.menu__item {
  position: relative;
}

.menu__link {
  font-size: 16px;
  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: 1024px) and (max-width: 1150px) {
  .menu__link {
    font-size: 0.833rem;
  }
}

@media (max-width: 1024px) {

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

.menu__item--depth-1 .menu__link--active-link:after {
  bottom: -3px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}

@media (max-width: 1024px) {
  .menu__item--depth-1 {
    border-bottom: none;
    padding: 0;
    padding-right: 33px;
    height: unset;
    margin: unset;
    margin-bottom: 24px;
    display: flex;
    flex-flow: column;
    align-items: flex-end;
    padding: 10px 32px;
  }

  .menu__item--open .menu__submenu {
    visibility: visible;
    opacity: 100%;
    background: transparent;
    border: none;
  }

  .menu__submenu {
    padding: 24px 0 0 !important;
  }

  .menu__item--depth-2 {
    margin: 0 0 24px;
  }

  .menu__submenu .menu__item--depth-2:last-of-type {
    margin: 0;
  }

  .menu__item--depth-2 .menu__link--container {
    padding: 0;
  }

  .header-cta__wrapper {
    margin-bottom: 24px;
  }

  .menu__cta .button--primary:hover {
    border-radius: 20px !important;
  }

  .header__language-switcher--label-current {
    margin-top: 18px !important;
  }

  .menu__item--depth-1:last-of-type {
    border: none;
  }

  .menu__item--depth-1 .menu__link {
    color: #f4f4f4;
    font-family: Nunito;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    padding: 10px 20px;
    text-align: right;
    max-width: 190px;
    margin-left: auto;
  }

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

/* Menu items - submenus */

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

.menu__item--open > .menu__submenu {
  display: block;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  left: 50%;
  transform: translateX(-50%);
}
/*
.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 {
left: 50%;
transform: translateX(-50%);
}
*/

.menu__submenu .menu__item {
  border-bottom: 1px solid #D1D6DC;
  padding: 0;
  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 (max-width: 1024px) {
  .menu--desktop {
    display: none;
  }

  .menu--mobile {
    display: block;
  }

  .menu__submenu {
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: static;
    transform: unset;
    width: 100%;
  }

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

  .menu__item--has-submenu .menu__link {
    width: 100%;
  }

  .menu__submenu--level-3 .menu__item .menu__link {
    padding: 0.7rem 3rem;
  }
}

/* Menu icons */

@media(min-width: 1024px) {
  .menu__submenu .menu__child-toggle {
    margin-left: auto;
    padding: 0 1.05rem;
  }

  .menu__item--depth-1 > .menu__child-toggle {
    position: static;
    right: 0;
    top: 0;
    vertical-align: middle;
  }

  /*
  .menu__child-toggle-icon {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top-style: solid;
  border-top-width: 7px;
  display: block;
  height: 0;
  margin-left: 1px;
  width: 0;


}
  */
}

@media (max-width: 1024px) {
  .menu__item--open > .menu__child-toggle .menu__child-toggle-icon {
    transform: rotate(45deg);
    transition: transform 0.4s;
  }
}

/* Menu icons */

@media(min-width: 1024px) {
  .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 {
    position: static;
    right: 0;
    top: 0;
    vertical-align: middle;
  }

  .menu__child-toggle-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="8" viewBox="0 0 11 8" fill="none"><path d="M5.95141 7.09479L10.9614 2.08479L9.78351 0.905228L5.95141 4.73984L2.12013 0.905228L0.941406 2.08395L5.95141 7.09479Z" fill="%23353750"/></svg>');
    background-repeat: no-repeat;
    display: block;
    height: 8px;
    margin-left: auto;
    transition: transform 0.4s;
    width: 11px;
  }
}

@media (max-width: 1024px) {
  .menu__child-toggle {
    background-position: center right 30px;
    background-repeat: no-repeat;
    background-size: 20px;
    border: none;
    cursor: pointer;
    height: 50px;
    padding: 7px 0;
    position: absolute;
    right: 0;
    top: -3px;
    width: 20px;
  }

  .menu__child-toggle-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="8" viewBox="0 0 11 8" fill="none"><path d="M5.98998 7.09477L11 2.08477L9.82209 0.905212L5.98998 4.73982L2.15871 0.905212L0.97998 2.08394L5.98998 7.09477Z" fill="%23F4F4F4"/></svg>');
    background-repeat: no-repeat;
    display: block;
    height: 8px;
    margin-left: auto;
    margin-right: 1.05rem;
    transition: transform 0.4s;
    width: 11px;
  }

  .menu__item--open > .menu__child-toggle .menu__child-toggle-icon {
    transform: rotate(-90deg);
    transition: transform 0.4s;
  }

  .menu__item--open > .menu__submenu {
    transform: none;
    margin-right: unset;
  }

  .menu__item--depth-1 .menu__submenu li {
    margin-bottom: 16px;
  }

  .menu__item--depth-1 .menu__submenu li a {
    font-size: 16px;
  }
}
