
/* =========================================
   OneMap Address Autocomplete
   Dropdown container
   ========================================= */

.onemap-field-host {
    position: relative;
}

.onemap-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;

    display: flex;
    flex-direction: column;

    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    margin: 0;
    padding: 0;

    background: #fff;
    border: 1px solid #d5dadd;
    border-radius: 6px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);

    box-sizing: border-box;
}

.onemap-suggestions[hidden] {
    display: none !important;
}


/* =========================================
   Address suggestion items
   ========================================= */

.onemap-suggestions .onemap-choice {
    display: block;
    flex: 0 0 auto;

    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;

    margin: 0 !important;
    padding: 11px 15px !important;

    appearance: none;
    -webkit-appearance: none;

    border: 0 !important;
    border-bottom: 1px solid #e5e9eb !important;
    border-radius: 0 !important;

    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;

    color: #222 !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;

    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;

    cursor: pointer;
    transition: background-color .15s ease;
}

/* Remove divider from the final suggestion */

.onemap-suggestions .onemap-choice:last-child {
    border-bottom: 0 !important;
}


/* =========================================
   Hover and keyboard focus
   ========================================= */

.onemap-suggestions .onemap-choice:hover,
.onemap-suggestions .onemap-choice:focus {
    background: #eef8f9 !important;
    color: #111 !important;
}

.onemap-suggestions .onemap-choice:focus-visible {
    outline: 2px solid #008c9e;
    outline-offset: -2px;
}

.onemap-suggestions .onemap-choice:active {
    background: #dceff1 !important;
}


/* =========================================
   Loading and status messages
   ========================================= */

.onemap-message {
    padding: 12px 15px;
    color: #555;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}


/* =========================================
   Mobile adjustments
   ========================================= */

@media (max-width: 767px) {
    .onemap-suggestions {
        max-height: 220px;
    }

    .onemap-suggestions .onemap-choice {
        padding: 13px 14px !important;
        font-size: 14px;
    }
}


/* =========================================
   Temporary Form 7 test page styling
   Remove after pilot testing
   ========================================= */

.aze-onemap-test .nf-form-cont input[type="text"],
.aze-onemap-test .nf-form-cont input[type="email"],
.aze-onemap-test .nf-form-cont input[type="tel"],
.aze-onemap-test .nf-form-cont input[type="date"],
.aze-onemap-test .nf-form-cont input[type="number"],
.aze-onemap-test .nf-form-cont select,
.aze-onemap-test .nf-form-cont textarea {
    background-color: #fff !important;
    color: #222 !important;
    border: 1px solid #bbb !important;
    border-radius: 4px;
}

.aze-onemap-test .nf-form-cont input::placeholder,
.aze-onemap-test .nf-form-cont textarea::placeholder {
    color: #777 !important;
    opacity: 1;
}

.aze-onemap-test .nf-form-cont select option {
    background-color: #fff;
    color: #222;
}

