@import '../../styles/common/colors';
@import '../../styles/common/screen';
@import '../../styles/common/mixins';

.typeahead-component {
  position: relative;

  label {
    color: $navy-text;
    display: block;
    font-size: 16px;
    font-weight: 200;
    margin-bottom: 10px;
  }

  .typeahead-list {
    background-color: $white;
    border: 2px solid $neutral-1;
    border-radius: 0 0 3px 3px;
    border-top: 0;
    color: $primary-4;
    list-style-type: none;
    margin: 0;
    max-height: 300px;
    overflow: auto;
    padding: 0;
    position: absolute;
    width: calc(100% - 2px) !important;
    z-index: 1;

    li {
      border-bottom: 1px solid $neutral-1;
      cursor: pointer;
      padding: 10px;

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

      &:hover {
        background-color: $primary-1;
        color: $white;
      }
    }
  }

  .input-wrapper {
    position: relative;
  }

  .typeahead-spinner {
    left: auto;
    right: 14px;
    top: 2px;
    background: transparent;
  }
    
  @media #{$media-extra-small} {
  .typeahead-component-styled {
      width: 100% !important;
    }
  }
}

.reset-button {
  position: absolute;
  right: 13px;
  top: 12px;
}
