/* AJ Address field (Elementor forms) */

.elementor-field-group > .aj-address {
    position: relative;
    flex-basis: 100%;
    width: 100%;
}

.aj-address__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    max-height: min(320px, 50vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    text-align: left;
}

.aj-address__list[hidden] {
    display: none;
}

.aj-address__option {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 8px 12px;
    line-height: 1.3;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.aj-address__option[aria-selected="true"] {
    background: #eef2ff;
}

.aj-address__context {
    font-size: 0.85em;
    opacity: 0.7;
}

/* Touch screens: large enough targets. */
@media (pointer: coarse) {
    .aj-address__option {
        min-height: 44px;
        padding: 12px 14px;
        justify-content: center;
    }
}

.aj-address__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
