/*
|--------------------------------------------------------------------------
| Espace Romand Core
| HivePress City Autocomplete
|--------------------------------------------------------------------------
*/

[data-component="location"],
.hp-form-field[data-erc-city-autocomplete="true"] {
    position: relative;
    overflow: visible;
}

.erc-hivepress-city-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: 320px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-top: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.erc-hivepress-city-result {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    color: #1d2327;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.erc-hivepress-city-result:last-child {
    border-bottom: 0;
}

.erc-hivepress-city-result:hover,
.erc-hivepress-city-result:focus {
    background: #f0f6fc;
    color: #0a4b78;
    outline: none;
}

.erc-hivepress-city-search {
    position: relative;
    z-index: 1;
}

.wp-admin .erc-hivepress-city-results {
    box-sizing: border-box;
}

.wp-admin .erc-hivepress-city-result {
    min-height: 40px;
}

@media screen and (max-width: 782px) {
    .erc-hivepress-city-results {
        max-height: 260px;
    }

    .erc-hivepress-city-result {
        padding: 14px 12px;
        font-size: 16px;
    }
}
