/* Menu Desktop */
.nav-wrapper {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  float: none;
  width: 100%;
  position: static;
  justify-content: space-between;
}
.nav-wrapper .custom-menu-primary,
.nav-wrapper #hs_cos_wrapper_navigation-primary,
.menu--desktop {
  display: flex;
}
.menu--desktop {
  align-items: center;
}
.menu--mobile {
  display: none;
}
@media (max-width: 1399.98px) {
  .menu--desktop {
    display: none;
  }
}

/* Menu items */
.menu__link {
  font-size: 1rem;
  line-height: 20px;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Gilroy';
}
.menu__item--depth-1 > .button__wrapper .menu__child-toggle > .menu__link {
  font-weight: 600;
}
.menu__item--depth-2 > .button__wrapper .menu__child-toggle > .menu__link {
  padding: 40px 0 16px 0;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  font-family: 'Inter';
}
.menu__submenu a.menu__link.menu__link--toggle {
  color: #1A1B2D;
}
.menu__item {
  position: relative;
}
.menu__link:hover,
.menu__link:focus,
.menu__link:active {
  text-decoration: none;
}
.menu__link--active-link,
.menu__link--active-branch {
  font-weight: bold;
}
a.menu__link {
  color: #1A1B2D;
}

/* Menu items - top level */
.menu__item--depth-1 {
  display: inline-block;
}
.menu__item--depth-1 > .button__wrapper .menu__child-toggle{
  height: 100%;
  display: inline-block;
  line-height: 72px;
  padding: 0 20px;
}
@media (min-width: 1120px) and (max-width: 1199.98px) {
  .menu__item--depth-1 > .button__wrapper .menu__child-toggle{
    padding: 0 6px;
  }
}

/* Menu items - submenus */
.menu__submenu {
  text-align: left;
  text-transform: none;
}
.contactSales-menu img {
  margin-bottom: 16px;
}
.contactSales-menu {
  max-width: 256px;
  display: flex;
  flex-direction: column;
}
.contactSales-menu .purpleArrowLinkMenu {
  color: #7866FE;
  margin-top: 12px;
} 
@media (min-width: 1120px) {
  .menu__item--depth-1.menu__item--open > .button__wrapper .menu__child-toggle::after {
    content: "";
    width: 100%;
    height: 3px;
    background: #7866FE;
    position: absolute;
    bottom: 0;
    left: 0;
  }
  .header-button-text:hover a {
    color: #7866FE;
  }
  .fix.menu__item--depth-1 > .button__wrapper .menu__child-toggle:hover .menu-arrow
  .menu__item--depth-1 > .button__wrapper .menu__child-toggle:hover .menu-arrow {
    filter: invert(56%) sepia(75%) saturate(5945%) hue-rotate(230deg) brightness(103%) contrast(100%);
  }
  .menu__item--depth-1 > .button__wrapper .menu__child-toggle:hover::after,
  .header-button-text:hover::after {
    content: "";
    width: 100%;
    height: 3px;
    background: #7866FE;
    position: absolute;
    bottom: 0;
    left: 0;
  }
}
.menu__item--depth-1 > .button__wrapper .menu__child-toggle .menu-arrow {
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.menu__item--depth-1.menu__item--open > .button__wrapper .menu__child-toggle .menu-arrow {
  transform: rotate(180deg);
}
.menu__submenu__container:first-child {
  margin: 0 auto;
  max-width: 1520px;
  padding: 0 90px;
}
.menu--desktop .menu__item--depth-2 .menu__item.menu__item--depth-3 {
  margin-bottom: 8px;
}
.menu--desktop .menu__item--depth-2:nth-child(2) .menu__item.menu__item--depth-3 {
  margin-right: 16px;
}
@media (min-width: 1400px) {
  .menu--desktop .menu__item--depth-2 .menu__item.menu__item--depth-3 {
    margin-bottom: 16px;
  }
  .menu--desktop .menu__item--depth-2:nth-child(2) .menu__item.menu__item--depth-3 {
    margin-right: 32px;
  }
}
.menu--desktop .menu__submenu.menu__submenu--level-2 {
  overflow: hidden;
  display: grid;
  flex-direction: row;
}
.menu--desktop .menu__item--depth-1 .menu__item.menu__item--depth-2:first-child {
  max-width: 344px;
  grid-area: 1 / 1 / 1 / 1;
}
.menu--desktop .menu__submenu--level-2 .menu__item--depth-2:nth-child(2){
  max-width: 726px;
  grid-area: 1 / 2 / 1 / 2;
}
.menu--desktop .menu__submenu--level-2 .menu__item--depth-2:nth-child(3) {
  padding-left: 40px;
  grid-area: 1 / 3 / 1 / 3;
}
.menu__item.menu__item--depth-2 .menu__submenu__wrapper {
  position: relative;
}
.menu__item--depth-2 .menu__submenu__container {
  padding: 0px;
}
.menu__submenu--level-2 .menu__item--depth-2:nth-child(3) {
  background: #F8F8FD;
  padding-bottom: 16px;
}
.menu__submenu--level-2 .menu__item--depth-2:nth-child(3) .menu__submenu--level-3 {
  flex-direction: column;
}
.menu__item--open > .menu__submenu__wrapper > .menu__submenu {
  display: block;
}
.submenu__open .menu__submenu--level-3 {
  display: block;
}
.menu__item--depth-2:nth-child(2) .menu__submenu.menu__submenu--level-3 {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 8px;
}
.menu__submenu .menu__item--depth-3 .menu__link {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Gilroy';
  display: flex;
  border: 1px solid transparent;
  border-radius: 8px;
  width: fit-content;
  transition: 0.2s;
  padding: 16px;
}
.menu__submenu--level-2 .menu__item--depth-2:nth-child(3) .menu__link {
}
.menu__submenu .menu__item--depth-3 .menu__link p {
  font-size: 14px;
  font-family: 'Inter';
  margin-bottom: 0;
  font-weight: normal;
}
.menu__submenu .menu__item--depth-3 .menu__link:hover {
  border-radius: 8px;
  background: #F8F8FD;
  cursor: pointer;
}
.menu__submenu .menu__item--depth-3 .menu__link:hover .new_tag {
  color: #fff;
}
.new_tag {
  background: #7866FE;
  color: #fff;
  padding: 4px 4px 2px;
  border-radius: 2px;
  margin-left: 10px;
}
.menu--desktop .menu__submenu .menu__item--depth-2 .menu__submenu--level-3 .menu__link {
  max-width: 224px;
}
@media (min-width: 1400px) {
  .menu--desktop .menu__submenu .menu__item--depth-2 .menu__submenu--level-3 .menu__link {
    max-width: 272px;
  }
}
@media (min-width: 1600px) {
  .menu--desktop .menu__submenu .menu__item--depth-2 .menu__submenu--level-3 .menu__link {
    max-width: 290px;
  }
}
.menu__submenu .menu__item--depth-3 .menu__link:hover div > span {
  color: #7866FE;
}
.menu__submenu .menu__item--depth-3 .menu__link .menu_icon {
  filter: invert(36%) sepia(68%) saturate(2767%) hue-rotate(231deg) brightness(106%) contrast(99%);
}
.menu__item--depth-1:first-child .menu__submenu .menu__item--depth-2:first-child .menu__item--depth-3 .menu__link .menu_icon {
  filter: none;
}
.menu__submenu .menu__item--depth-2:nth-child(3) .menu__item--depth-3 .menu__link {
  border: none;
  cursor: pointer;
  padding-left: 0px;
}
.menu__submenu .menu__item--depth-2:nth-child(3) .menu__item--depth-3 .menu__link:hover{
  border: none;
  color: #7866FE;
  cursor: pointer;
}
.menu__submenu .menu__link {
  display: block;
  padding: 0.7rem 1.05rem;
  transition: background-color 0.3s;
  width: 100%;
}
.menu__submenu--level-3 {
  left: 100%;
  top: 0;
}
.menu--desktop .menu__submenu--level-2 .menu__item--depth-2:nth-child(3) .menu__item--depth-3 {
  margin-bottom: 0;
}
.menu__submenu .menu__item--depth-2:nth-child(3) .menu__item--depth-3 .menu__link {
  align-items: center;
  max-width: 472px;
}
.menu__submenu .menu__item--depth-2:nth-child(3) .menu__item--depth-3 .menu__link img {
  margin-right: 32px;
  border-radius: 12px;
}
.menu--desktop .menu__wrapper.no-list {
  display: flex;
}
@media (min-width: 1120px) and (max-width: 1230px) {
  .menu__wrapper .menu__item--depth-1:first-child .menu__item.menu__item--depth-3 {
    max-width: 240px;
  }
}
@media (min-width: 1340px) {
  .menu__item--depth-2:first-child > .menu__submenu__wrapper {
    min-width: 300px;    
  }
}

/* Menu items - Submenu Bottom */
/* Desktop */
.menu__submenu__container.button__submenu__wrapper {
  background-color: #fff;
  border-top: 1px solid #EAEAF3;
}
.menu__submenu__container .button__submenu__container {
  display: flex;
  margin: 0 auto;
  max-width: 1520px;
  padding: 0 90px;
}
.button__submenu-item {
  line-height: 56px;
}
.button__submenu-item a {
  padding: 0 24px;
  color: #1A1B2D;
  text-decoration: none;
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
}
.button__submenu-item:first-child a {
  border-right: 1px solid #a5a4a3;
}
.menu__item--depth-2 .menu__child-toggle.no-button {
  width: 100%;
}
.menu__item--depth-2:first-child > .button__wrapper,
.menu__item--depth-2:nth-child(2) > .button__wrapper {
  margin-left: 16px;
}
.menu__item--depth-2 > .button__wrapper {
  margin-right: 40px;
  border-bottom: 1px solid #EAEAF3;
  margin-bottom: 16px;
}

/* Mobile */
.menu--mobile .menu__item--depth-1 .button__submenu__wrapper {
  display: none;
}
.menu--mobile .button__submenu__wrapper {
  background-color: #fff;
  width: 100%;
  display: flex;
  border-top: 1px solid #EAEAF3;
}

/* 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;
  padding-top: 64px;
}

@media (min-width: 768px) {
  /* 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 > .menu__link {
    border-bottom: 1px solid #EAEAF3;
  }
}

/* Menu Animation Desktop */
.megamenu {
  background: #fff;
  pointer-events: none;
  max-height: 0;
  opacity: 0;
  transform: translateY(0px);
  overflow: hidden;
  z-index: 99;
  border-top: 1px solid #f3f4f6;
  max-height: none;
  transition-property: opacity, transform;
  transition-timing-function: ease-in-out;
  transition-duration: 200ms;
  transform-origin: top;
} 
.fix .megamenu {
  transform: translateY(-10px);
}
.megamenu.submenu__open {
  border-bottom: 1px solid #eaeaf3;
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
  max-height: none;
  background: linear-gradient(90deg, #fff 80%, #F8F8FD 40%);
}

/* Menu Mobile */
@media (max-width: 1119px) {
  .mobile-open main {
    overflow: hidden;
  }
  body.mobile-open {
    overflow: hidden;
  }
  .menu--mobile {
    display: block;
  }
  .menu__item--depth-1 > .button__wrapper .menu__child-toggle{
    line-height: 56px;
    height: 100%;
    border-bottom: 1px solid #EAEAF3;
    width: 95%;
    padding: 0;
    margin: 0 auto;
    display: block;
  }
  .menu__item--depth-1:first-child > .button__wrapper .menu__child-toggle {
    border-top: 1px solid #EAEAF3;
  }
  .menu__item--depth-1 > .menu__child-toggle.menu__child-toggle--open {
    background-color: #F8F8FD;
  }
  .menu--mobile .menu__item--depth-1 {
    width: 100%;
  }
  .menu--mobile .menu__wrapper.no-list {
    width: 100%;
    background-color: #fff;
  }
  .menu--mobile .menu__item--open .megamenu {
    display: block;
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
    cursor: none;
  }
  .menu--mobile .menu__submenu__wrapper {
    position: relative;
  }
  .menu--mobile .menu__submenu {
    display: block;
  }
  .menu--mobile .menu__submenu--level-2 .menu__item--depth-2 {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 64px;
  }
  .menu--mobile .menu__submenu--level-2 .menu__item--depth-2 > .button__wrapper,
  .menu--mobile .menu__submenu--level-2 .menu__item--depth-2 > .menu__submenu__wrapper {
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }
  .menu--mobile .menu__submenu__container {
    padding: 0;
  }
  .menu--mobile .menu__item--open .megamenu {
    border: none;
  }
  .menu--mobile .menu__submenu--level-3 {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .menu--mobile .menu__item--depth-3 .menu__link {
    padding: 16px 0;
    margin-right: 100px;
  }
  .menu--mobile .menu__submenu .menu__item--has-submenu > .menu__link {
    padding-top: 24px;
  }
  .menu--mobile .menu__submenu .menu__item--depth-3 .menu__link {
    border: none;
  }
  .menu--mobile .menu__submenu .menu__item--depth-3 .menu__link:hover {
    border: none;
  }
  .button__menu-purple a {
    font-size: 16px;
    padding: 12px 75px;
    border-left: none;
    padding: 8px 16px;
    color: #fff;
    background-color: #7866FE;
    font-family: 'Gilroy';
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 32px;
    display: inline-block;
  }
  .button__submenu__wrapper-purple {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    min-height: 120px;
  }
  .menu--mobile .menu__item--depth-2>.button__wrapper .menu__child-toggle>.menu__link {
    padding-top: 24px;
  }
  /* Header Burger*/
  .header__burger {
    display: block;
    cursor: pointer;
    padding: 1.2rem 0 1.2rem 1.2rem;
  }
  .burger {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 1.8rem;
    height: 1.4rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
  }
  .burger > span {
    display: inline-block;
    width: 2rem;
    height: 2px;
    background: #1A1B2D;
    position: relative;
    top: 2px;
    border-radius: 2px;
  }
  .burger > span:after, .burger > span:before {
    background: #1A1B2D;
    border-radius: 2px;
  }
  .fix .header_transparent .burger > span,
  .fix .header_transparent .burger > span:after,
  .fix .header_transparent .burger > span:before {
    background: #1A1B2D;
  }
  .header_transparent .burger > span,
  .header_transparent .burger > span:after,
  .header_transparent .burger > span:before {
    background: #FFF;
  }
  .burger>span:before {
    top: -0.5rem;
  }
  .burger>span:after {
    top: 0.5rem;
  }
  .burger>span:after,
  .burger>span:before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-transition: top .4s .4s,-webkit-transform .4s;
    transition: top .4s .4s,-webkit-transform .4s;
    -o-transition: top .4s .4s,transform .4s;
    transition: top .4s .4s,transform .4s;
    transition: top .4s .4s,transform .4s,-webkit-transform .4s;
  }
  .mobile-open .burger > span {
    -webkit-transition: background .4s 0s;
    -o-transition: background .4s 0s;
    transition: background .4s 0s;
    background: transparent !important;
    width: 100%;
  }
  .mobile-open .burger>span:before {
    -webkit-transform: rotate3d(0,0,1,45deg);
    transform: rotate3d(0,0,1,45deg);
    width: 100%;
    left: 0;
  }
  .mobile-open .burger>span:after {
    -webkit-transform: rotate3d(0,0,1,-45deg);
    transform: rotate3d(0,0,1,-45deg);
    width: 100%;
    left: 0;
  }
  .mobile-open .burger>span:after, .mobile-open .burger>span:before {
    -webkit-transition: top .4s,-webkit-transform .4s .4s;
    transition: top .4s,-webkit-transform .4s .4s;
    -o-transition: top .4s,transform .4s .4s;
    transition: top .4s,transform .4s .4s;
    transition: top .4s,transform .4s .4s,-webkit-transform .4s .4s;
    top: 0;
  }
  /* End Header Burger */
}

/* Menu Animation Mobile */
@media (max-width: 1119px) {
  /* Top Menu Animation */
  .menu.menu--mobile{
    -webkit-transition: all .8s;
    -o-transition: all .8s;
    transition: all .5s;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    overflow-y: scroll;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(-110%);
    -ms-transform: translateY(-110%);
    transform: translateY(-110%);
    display: flex;
    flex-direction: column;
    margin-top: 0;
    height: calc(100vh - 200px);
    background: #fff;
    border-bottom: 1px solid #EAEAF3;
  }

  .mobile-open .menu.menu--mobile {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    height: calc(100vh - 72px);
  }
   /* Submenu Animation */
  .mobile-open .menu__item--depth-1.menu__item--open > .button__wrapper {
    background-color: #F8F8FD;
    position: sticky;
    top: 0;
    z-index: 9999;
  }
  .menu__item--depth-1 > .menu__submenu__wrapper {
    display: none;
  }
  .menu__item--depth-1.menu__item--open > .menu__submenu__wrapper {
    display: block;
  }
}


@media (max-width: 767.98px) {
  .mobile-open .menu.menu--mobile {
    height: calc(100vh - 60px);
  }
  .menu--mobile .menu__submenu--level-2 .menu__item--depth-2 {
    padding-bottom: 32px;
  }
  .menu--mobile .menu__item--depth-3 .menu__link {
    margin-right: 20px;
  }
}
@media (max-width: 575.98px) {
  .menu--mobile .menu__item--depth-3 .menu__link {
    margin-right: 0px;
    max-width: 180px;
  }
  .menu_icon {
    margin-right: 8px;
  }
  .button__menu-purple a {
    display: block;
  }
  .button__submenu__wrapper-purple {
    width: 95%;
    display: block;
    text-align: center;
    margin: 0 auto;
  }
}