$grey-input: #f4f4f5;
$darkgrey: #999;
$dropdownhover: #702c91;
$transparent: transparent;

.nw-storelocatorform {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.nwc-storelocator-form-fields {
  position: relative;
  z-index: 1;
  // margin-bottom: 16px;
  height: 72px;

  &:last-child {
    height: 80px;
  }
}

.nw-storelocatorform-input {
  display: block;
  width: 100%;
  padding: 14px 40px 14px 16px;
  background-color: $grey-input;
  font-size: $font-size-xs;
  font-family: $secondary-font-family;
  border-color: $grey-input;
  caret-color: $color-primary;
  letter-spacing: 1px;

  &::placeholder {
    font-family: $primary-font-family;
    font-weight: 700;
    color: $darkgrey;
  }
}

.nw-storelocatorform-btn {
  margin-left: 2px;
  width: calc(100% - 4px);
  padding: 12px;
  font-size: $font-size-sm;
  font-weight: 700;
  border-width: 2px;
  letter-spacing: 1px;
}

fieldset {
  border: 0;
  padding: 0;
}

.nwc-sl-from-error {
  position: relative;
  z-index: 1;
  top: -2px;
  margin-left: 16px;
  font-size: $font-size-xxxs;
  font-weight: 700;
  color: $color-danger;
}

.nwc-slform-legend {
  margin: 0 auto 24px;
  font-size: $font-size-xxl;
  font-weight: 600;
  text-align: center;
}

.nwc-clear-input {
  position: absolute;
  z-index: 3;
  top: 5px;
  right: 0;
  display: inline-block;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  text-align: center;
  color: $color-primary;
}

.nw-sl-brandinput {
  z-index: 2;
}

.nw-storelocator-container {
  .nw-storelocatorform-autocompletelist {
    margin: auto;
    border-bottom: 1px solid $grey-input;
    width: 100%;
    padding: 16px;
    background-color: $white;
    font-size: $font-size-xs;
    font-weight: 700;
    list-style: none;

    &:hover {
      background: $white;
    }

    &.is-active {
      background: $white;
      color: $dropdownhover;
    }

    &:last-child {
      border: 0;
    }
  }
}
