/*
    address-lookup
    --------------
    Small floating suggestion menu shown beneath the Address 1 input on the
    Create / Edit invoice forms. The input itself is wrapped in a relative
    container so we can drop a map-pin icon inside the field on the left
    edge without breaking Bootstrap's form-control sizing.
*/

.address-lookup {
    position: relative;
}

/* Wraps the icon + input so the icon can absolutely-position inside the
   field without the input clipping it. */
.address-lookup__field {
    position: relative;
}

.address-lookup__icon {
    position: absolute;
    top: 50%;
    left: 0.65rem;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #6c757d;
    pointer-events: none;
}

/* Indent the input text so it doesn't collide with the icon. */
.address-lookup__input {
    padding-left: 2rem;
}

.address-lookup__menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.address-lookup__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 1.25;
}

.address-lookup__item:hover,
.address-lookup__item:focus {
    background: #f5f7fa;
}

.address-lookup__item--muted {
    color: #6c757d;
    cursor: default;
}

.address-lookup__title {
    font-weight: 600;
    color: #212529;
}

.address-lookup__subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.1rem;
}
