:root{
  --menu_selector_underline: #ffffff;
  --menu_list_style: #000000;
}

.menu {
  height: initial;
  margin-bottom: 1rem;
}
.menu * {
  opacity: 1;
  box-sizing: border-box;
  user-select: none;
}

.menu__item--prev .menu__content,
.menu__item--next .menu__content {
  padding: 0;
  width: 44px;
  justify-content: center;
}
.menu__content {
  height: 2.75rem;
  padding: 0 1rem;
  font-size: 1rem;
  line-height: 2.75rem;
  white-space: nowrap;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  cursor: pointer;
  transition-duration: 0.15s;
  outline: none;
}
i.menu__icon {
  padding-right: 0.25rem;
  width: calc(1rem + .25rem);
  text-align: center;
}
img.menu__icon {
  margin-right: 0.25rem;
}
.menu__text {
  flex: 1;
}

.menu__text + .menu__icon{
  margin-left: 0.5rem;
}

.menu__underline::before{
  content: "";
  width: 0%;
  height: 2px;
  background-color: var(--menu_selector_underline);
  position: relative;
  bottom: -2.2rem;
  left: 0;
  display: block;
  transition: width 0.2s;
}

.menu__underline:hover::before{
  width: 100%;
}

.menu__underline{
  transition: filter 0.2s;
}

.menu__underline:hover{
  filter: brightness(0.9);
}

.submenu__item {
  padding: 0 1rem;
  line-height: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  white-space: nowrap;
  outline: none;

  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
}

.submenu__list::before{
  content: "\2022";
  color: var(--menu_list_style);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: 0rem;
}

.submenu__item--full {
  width: 100%;
}

.submenu__text {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.submenu__text--first {
  font-size: 1.125rem;
  font-weight: bold;
  color: #0d0d0d;
}
.submenu__text--second {
  font-size: 1rem;
  font-weight: normal;
  color: #0d0d0d;
}
.submenu__text--third {
  font-size: 0.875rem;
  font-weight: normal;
  color: #737373;
  padding-left: 1rem;
}
.submenu__text--italic {
  font-style: italic;
}
i.submenu__icon {
  padding-right: 0.25rem;
  width: calc(1rem + .25rem);
  text-align: center;
}
img.submenu__icon {
  margin-right: 0.25rem;
}
.submenu__icon + .submenu__text {
  padding-left: 0.25rem;
}
.submenu__icon--first,
.submenu__icon--second {
  color: #0d0d0d;
}
.submenu__icon--third {
  color: #737373;
}

@media only screen and (min-width: 768px) {
  .menu__mobile,
  .submenu__item--back,
  .menu__icon--mobile {
    display: none;
  }
  .menu__wrapper.center {
    max-width: 1140px;
  }
  .menu__wrapper {
    margin: 0 auto;
    position: relative;
    border-radius: 0.25rem;
    display: flex;
    flex-flow: row nowrap;
  }

  .menu__container {
    display: flex;
    flex-flow: row nowrap;
    overflow: hidden;
  }
  .menu__item {
    transition-duration: 0.15s;
  }
  .menu__item:hover .submenu {
    opacity: 1;
    visibility: visible;
    top: 2.75rem; /* 44px */
    transition-duration: 0.15s;
  }

  .menu__container--discount-nav-control .submenu {
    left: 2.75rem; /* 44px */
  }
  .menu__container--discount-nav-control .submenu:not(.submenu--departments) {
    width: calc(100% - 5.5rem);
  }
  .menu__container--discount-nav-control .submenu__content--departments {
    max-width: calc(1140px - 100% - 5.5rem);
    width: calc(100vw - 100% - 6.5rem);
  }
  .submenu {
    width: 100%;
    max-height: 19rem;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: #ffffff;
    z-index: 10;
    top: 3.75rem;
    left: 0;
    border-radius: 0.25rem;
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14),
      0px 1px 18px 0px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
  }
  .submenu--departments {
    width: auto;
    padding: 0.5rem 0;
    flex-flow: column nowrap;
  }
  .submenu__showcase {
    max-width: 570px;
    height: 19rem;
  }
  .submenu__image {
    display: block;
    height: 100%;
  }
  .submenu__content {
    max-height: 19rem;
    padding: 2.75rem 0 0.5rem;
    flex: 1;
    position: relative;
    overflow: auto;
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
  }
  .submenu__item--header {
    position: absolute;
    top: 0.5rem;
    left: 0;
  }
  .submenu__item:hover + .submenu__content--departments,
  .submenu__content--departments:hover {
    opacity: 1;
    visibility: visible;
    left: 100%;
  }
  .submenu__content--departments {
    opacity: 0;
    visibility: hidden;
    width: calc(100vw - 100%);
    max-width: calc(1140px - 100%);
    height: 100%;
    position: absolute;
    top: 0;
    left: 110%;
    z-index: 0;
    overflow-x: auto;
    background: #ffffff;
    border-radius: 0.25rem;
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14),
      0px 1px 18px 0px rgba(0, 0, 0, 0.12);
    transition-duration: 0.3s;
    transition-delay: 0.15s;
  }
}

@media only screen and (max-width: 767px) {
  .menu__icon--desktop,
  .menu__item--prev,
  .menu__item--next,
  .submenu__showcase {
    display: none;
  }
  .menu__mask {
    display: none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.36);
  }
  .menu--open .menu__mask {
    display: block;
  }
  .menu__mobile,
  .submenu__item--back {
    display: block;
  }
  .menu__item--hidden,
  .menu__divider + .menu__divider,
  .menu__item--hidden + .menu__divider {
    display: none;
  }
  .menu__divider {
    width: 100%;
    border-top: 0;
    border-bottom: 1px solid #d9d9d9;
    padding-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .menu__mobile .menu__text,
  .menu__mobile .menu__icon {
    color: inherit;
  }
  .menu__text,
  .menu__icon {
    color: #0d0d0d;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .menu__wrapper {
    background: #ffffff;
    width: calc(100vw - 4.5rem);
    height: 100vh;
    overflow: auto;
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 200;
    box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14),
      0px 9px 46px 8px rgba(0, 0, 0, 0.12);
    transition: left 0.3s;
  }
  .menu--open .menu__wrapper {
    left: 0;
  }

  .menu__container {
    height: 100vh;
    overflow: auto;
    padding-top: 1rem;
    padding-bottom: 4.5rem;
  }

  .menu__content--departments {
    display: none;
  }

  .submenu:not(.submenu--departments),
  .submenu__item + .submenu__content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    padding-top: 1rem;
    padding-bottom: 4.5rem;
    overflow: auto;
  }
  .submenu__item {
    height: 2.75rem;
    line-height: 2.75rem;
  }

}
