.address-autocomplete-wrap {
    position: relative;
}

.address-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    list-style: none;
    padding: 4px 0;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #d0d0d0);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    max-height: 50vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.address-autocomplete-list[data-open="1"] {
    display: block;
}

.address-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border-color-light, #f0f0f0);
    font-size: 14px;
    line-height: 1.3;
}

.address-autocomplete-item:last-child {
    border-bottom: none;
}

.address-autocomplete-item[aria-selected="true"],
.address-autocomplete-item:hover {
    background: var(--bg-hover, #f5f5f5);
}

.address-autocomplete-item mark {
    background: transparent;
    color: var(--primary, #0066cc);
    font-weight: 600;
}

.address-validation-notice {
    font-size: 12px;
    color: var(--muted, #888);
    margin-top: 4px;
}

.address-validation-notice--error {
    color: var(--danger, #c0392b);
}

.km-input-loading {
    position: relative;
}

.km-input-loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid var(--border-color, #d0d0d0);
    border-top-color: var(--primary, #0066cc);
    border-radius: 50%;
    animation: km-spin 0.8s linear infinite;
}

@keyframes km-spin {
    to { transform: rotate(360deg); }
}
