.nw-brandbar-wrapper {
  margin: auto;
  height: 50px;
  padding: 0;
  background: $header-background;
}

.nw-brandbar-row {
  position: relative;
  flex-wrap: wrap;
  display: flex;
  margin: 0;
  width: 100%;
  height: 100%;
  padding: 0 15px;
}

.nw-brandbar-logo {
  flex-grow: 1;
  flex-basis: 0;
  display: inline-flex;
  max-width: 100%;
  padding: 0;
}

.nw-brandbar-action-button {
  margin-left: 5px;
  border: $border-none;
  color: $header-desktop-menu-icon-color;
  outline: none;
}

.nw-brandbar-menu {
  margin-left: 0;
  margin-right: -15px;
  padding: 0 8px;
  background: $button-background;
  will-change: background, color;

  &.is-active {
    transition: background 0.5s ease, color 0.5s ease;
    background: $menu-background;
  }
}

.nw-brandbar-actions {
  justify-content: flex-end;
  flex: 1;
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.nw-brandbar-mybag-count {
  font-size: $font-size-xs;
  font-family: $primary-font-family;
  font-weight: 600;
  color: $default-color;
}

.nw-brandbar-brandlogo {
  justify-content: flex-start;
  flex: 1;
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.nw-brandbar-nnnowlogo {
  position: relative;
  top: 3px;
  height: 25px;
}

.nw-brandbar-hamburger {
  margin-left: -15px;
  margin-right: 5px;
  width: 40px;
  padding: 0;
  color: $default-color;

  &.nw-brand-active {
    background: $white;
  }
}

.nw-brandbar-hamburger-menu {
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 0;
  right: 0;
  flex: 1;
  animation-duration: 0.6s;
  animation-timing-function: ease;
  width: 100%;
  height: calc(100vh);
  will-change: transform;

  &.nw-brandbar-brand-menu {
    animation-name: mobileMenuLeftSlideIn;
    background: $white;
  }

  &.nw-brandbar-nnnow-menu {
    animation-name: mobileMenuRightSlideIn;
    background: $menu-background;
  }
}

@keyframes mobileMenuRightSlideIn {
  0% {
    transform: translate(100%, 0);
  }


  100% {
    transform: translate(0, 0);
  }
}

@keyframes mobileMenuLeftSlideIn {
  0% {
    transform: translate(-100%, 0);
  }

  100% {
    transform: translate(0, 0);
  }
}
