.nw-searchbar-formcontainer {
  position: relative;
  justify-content: flex-start;
  align-items: center;
  display: flex;

  &.is-active {
    z-index: 100;
  }
}

.nw-searchbar-fixed-header {
  background: $searchbar-fixed-header-background !important;
}

.nw-searchbar-icon-color {
  color: $searchbar-fixed-header-icon-color;
}

.nw-searchbar-form {
  width: 100%;
}

.nw-searchbar-leftbutton {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border: 0;
  height: 100%;
  padding: 0;
  color: $searchbar-searchbutton-mobilecolor;

  @media screen and (min-width: $screen-min-sm) {
    color: $searchbar-searchbutton-color;
  }
}

.nw-searchbar-leftbuttonicon {
  display: inline-block;
  width: 35px;
  font-size: $font-size-xl;
  font-weight: 600;
}

.nw-searchbar-leftsearchicon {
  display: inline-block;
  width: 17px;
  font-size: $font-size-sm;
  font-weight: 600;
}

.nw-searchbar-toggleablecontents {
  position: relative;
  justify-content: center;
  align-items: center;
  display: flex;
  overflow: hidden;
  transition: width 0.5s ease-in-out;
  margin: 0 0 0 32px;
  width: 100%;
  will-change: width;

  &.is-shrunkview {
    transition: width 0s;
    width: 0;
  }
}

.nw-searchbar-input {
  margin-right: 26px;
  border: 0;
  width: 90%;
  font-size: $font-size-xs;

  @media screen and (max-width: $screen-max-xs) {
    padding: 20px 17px;
    background: $searchbar-mobile-mainbackground;
  }
}

.nw-searchbar-rightbutton {
  position: absolute;
  right: 0;
  display: none;
  border: 0;
  padding: 10px;
  font-size: $font-size-xl;
  color: $searchbar-searchbutton-mobilecolor;

  @media screen and (min-width: $screen-min-sm) {
    color: $searchbar-searchbutton-color;
  }

  &.is-searchactive {
    display: block;
  }

  &.is-default {
    display: block;
  }

  &.is-shrunkviewopen {
    display: block;
  }
}

