@import 'base';

.address-picker {
  &.geosuggest {
    position: relative;
    display: flex;
    flex: 1;
  }

  .geosuggest__input-wrapper {
    display: flex;
    flex: 1;
  }

  .geosuggest__input {
    @extend %complex-input;
  }

  .geosuggest__suggests {
    position: absolute;
    border-radius: 5px;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 25em;
    padding: 0;
    margin-top: -1px;
    background: color(white);
    border: 2px solid color(primary);
    border-top-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    z-index: 5;
    -webkit-transition: max-height 0.2s, border 0.2s;
            transition: max-height 0.2s, border 0.2s;
  }
  .geosuggest__suggests--hidden {
    max-height: 0;
    overflow: hidden;
    border-width: 0;
  }

  .geosuggest-item {
    font-size: 18px;
    font-size: 1rem;
    padding: .5em .65em;
    cursor: pointer;
  }
  .geosuggest-item:hover,
  .geosuggest-item:focus {
    background: color(black, translucent);
  }
  .geosuggest-item--active {
    background: color(primary, light);
    color: color(white);
  }
  .geosuggest-item--active:hover,
  .geosuggest-item--active:focus {
    background: color(black, bright);
  }
}
