﻿.piranya-autocomplete {
    position: relative;
}

.piranya-autocomplete > input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.piranya-autocomplete > button.pick {
    position: absolute;
    right: 3px;
    top: calc(50% - 14px);
}

.piranya-autocomplete:not(.has-value) > input[type="text"]:not(:placeholder-shown) {
    background-color: rgb(226,208,208);
}

.piranya-autocomplete .items {
    align-items: stretch;
    display: flex;
    flex-direction: column;
}

.piranya-autocomplete .items > * {
    box-sizing: border-box;
    padding: 5px;
}

.piranya-autocomplete .item {
    cursor: pointer;
}

.piranya-autocomplete p.search-notice {
    color: grey;
    font-size: 0.8em;
    text-align: center;
    user-select: none;
}

.piranya-autocomplete .item.selected {
    background-color: #658db3;
}

.piranya-autocomplete .item:hover {
    background-color: #1ba45e;
    text-decoration: underline;
}

.piranya-autocomplete .item p {
    text-align: left;
}

.piranya-autocomplete > .picker-window {
    position: absolute;
    min-width: 250px;
    z-index: 99999;
}

.piranya-autocomplete > .picker-window > .items {
    box-sizing: border-box;
    overflow: auto;
    max-height: 240px;
    width: 100%;
}
