/*
 * VehicleWatch Melbourne
 * Victorian suburb / locality autocomplete
 */

.vw-suburb-autocomplete {
    position: relative;
}

.vw-suburb-suggestions {
    display: none;

    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;

    z-index: 6000;

    max-height: 300px;
    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

    background: #ffffff;

    border:
        1px solid #cbd5e1;

    border-radius: 8px;

    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, 0.18);
}

.vw-suburb-suggestions.open {
    display: block;
}

.vw-suburb-suggestion {
    display: block;

    width: 100%;

    margin: 0;
    padding: 12px 14px;

    border: 0;
    border-bottom:
        1px solid #f1f5f9;

    border-radius: 0;

    background: #ffffff;
    color: #111827;

    text-align: left;

    font: inherit;
    font-size: 15px;

    cursor: pointer;
}

.vw-suburb-suggestion:last-child {
    border-bottom: 0;
}

.vw-suburb-suggestion:hover,
.vw-suburb-suggestion.active {
    background: #eff6ff;
    color: #111827;
}

.vw-suburb-match {
    font-weight: 900;
}

@media (max-width: 700px) {

    .vw-suburb-suggestions {
        max-height: 320px;
    }

    .vw-suburb-suggestion {
        min-height: 50px;
        padding: 14px;

        font-size: 16px;
    }
}
