/**
 * Dashboard Address Autocomplete — styles popover.
 *
 * Popover positionné en position:absolute sur `document.body` (rendu hors flux),
 * pour s'afficher au-dessus des modales sans souci de z-index local.
 */

.daa-popover {
    position: absolute;
    z-index: 2147483000; /* très haut : au-dessus des modales */
    max-width: 560px;
    min-width: 220px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    font-size: 0.95rem;
}

.daa-popover[hidden] {
    display: none !important;
}

.daa-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 280px;
    overflow-y: auto;
}

.daa-option {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: background-color 0.12s ease;
}

.daa-option:hover,
.daa-option.is-active {
    background-color: rgba(255, 102, 0, 0.08); /* orange Lokatere, léger */
}

.daa-option.is-active {
    box-shadow: inset 3px 0 0 #ff6600;
}

.daa-option-primary {
    color: #1f1f1f;
    font-weight: 500;
    line-height: 1.25;
}

.daa-option-secondary {
    color: #666;
    font-size: 0.82rem;
    line-height: 1.2;
}

.daa-attribution {
    padding: 6px 12px;
    font-size: 0.72rem;
    color: #8a8a8a;
    border-top: 1px solid #eee;
    background: #fafafa;
    text-align: right;
}

@media (max-width: 480px) {
    .daa-popover {
        max-width: calc(100vw - 24px);
    }
    .daa-option-primary {
        font-size: 0.93rem;
    }
    .daa-option-secondary {
        font-size: 0.78rem;
    }
}
