/* WC Address Autocomplete — Dropdown Styles v1.2.0
 * Hover/active highlight colours are output as inline CSS from plugin settings.
 * Override other styles by targeting .wcaa-results in your theme CSS. */

.wcaa-wrap {
    position: relative;
}

.wcaa-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99999;
    max-height: 260px;
    overflow-y: auto;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    display: none;
}

.wcaa-results.wcaa-open {
    display: block;
}

.wcaa-results:empty {
    display: none;
}

.wcaa-results li {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background .12s ease;
}

.wcaa-results li:last-child {
    border-bottom: none;
}

/* Spinner while loading / resolving */
.wcaa-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    animation: wcaa-spin .5s linear infinite;
    pointer-events: none;
    /* border-top-color is set via inline CSS from plugin settings */
}

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

/* No results message */
.wcaa-results .wcaa-no-results {
    padding: 10px 14px;
    font-size: 13px;
    color: #9ca3af;
    cursor: default;
}

.wcaa-results .wcaa-no-results:hover {
    background: transparent;
    color: #9ca3af;
}

/* Disabled state while resolving address */
.wcaa-wrap input[disabled] {
    opacity: 0.6;
    cursor: wait;
}
