﻿/* loqate-address.css
   Styles the Loqate typeahead picklist.
   Mirrors the visual pattern of the former Experian .address-picklist-container.
   Included in MasterPages via FileMergeResource. */

.loqate-picklist-container {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,.12);
    max-height: 260px;
    overflow-y: auto;
    width: 100%;
    left: 0;
    box-sizing: border-box;
}

    /* The input wrapper must be position:relative so the picklist anchors correctly */
    .loqate-picklist-container ~ input,
    input + .loqate-picklist-container {
        /* handled by JS inserting after input — parent needs position:relative */
    }

.loqate-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 6px;
    align-items: baseline;
}

    .loqate-item:last-child {
        border-bottom: none;
    }

    .loqate-item:hover,
    .loqate-item.selected {
        background-color: #f5f5f5;
    }

    .loqate-item.loqate-container .loqate-text::after {
        content: ' \25B8'; /* right-pointing triangle indicates drill-down */
        color: #999;
        font-size: 10px;
    }

.loqate-text {
    font-weight: 600;
    color: #333;
}

.loqate-desc {
    color: #777;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loqate-item.loqate-manual {
    color: #555;
    font-style: italic;
    font-size: 12px;
    background-color: #fafafa;
}

    .loqate-item.loqate-manual:hover {
        background-color: #f0f0f0;
    }
