﻿.react-autosuggest__container {
    width: 24em;
    height: auto;
    position: relative;
}

.react-autosuggest__input {
    display: block;
    width: 100%;
    height: 4em;
    padding: 1em 1.5em;
    box-sizing: border-box;
    font-size: 1em;
    border: 1px solid #aaa;
    border-radius: 2em;
    outline: none;
    transition: border-radius 250ms ease;
}

    .react-autosuggest__input:focus {
        outline: none;
        border: 1px solid steelblue;
    }



.react-autosuggest__container--open .react-autosuggest__input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
}

.react-autosuggest__suggestions-container {
    width: 100%;
    visibility: hidden;
    will-change: opacity;
    position: relative;
    overflow: hidden;
    -webkit-transform-origin: 50% 0%;
    transform-origin: 50% 0%;
    -webkit-transform: scale(1, 0);
    transform: scale(1, 0);
    opacity: 0;
    transition: all 250ms ease;
}

.react-autosuggest__container--open .react-autosuggest__suggestions-container {
    display: block;
    position: absolute;
    top: 4em;
    width: 100%;
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    visibility: visible;
    opacity: 1;
    box-sizing: border-box;
    /*border: 1px solid steelblue;*/
    border-top: 0;
    background-color: #fff;
    font-family: Helvetica, sans-serif;
    /*border-radius: 2em*/;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: 2;
    overflow-y:auto;
    max-height:200px;
}

    .react-autosuggest__container--open .react-autosuggest__suggestions-container .suggestion {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .react-autosuggest__container--open .react-autosuggest__suggestions-container .name {
        color: #eee;
    }

    .react-autosuggest__container--open .react-autosuggest__suggestions-container .username {
        font-size: 0.7em;
        padding: 0.25em 0.5em;
        box-sizing: border-box;
        background: #eee;
        color: white;
        margin-right: 1em;
    }

.react-autosuggest__suggestions-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.react-autosuggest__suggestion {
    cursor: pointer;
    box-sizing: border-box;
    padding: 10px 20px;
}

.react-autosuggest__suggestion--highlighted{
    background-color:#ddd;
}
