/*
 * All rules are scoped to .firefly-autocomplete-container so they only apply to
 * autocomplete elements and don't leak onto unrelated elements sharing these class names.
 */

/* Container */
.firefly-autocomplete-container {
    position: relative;
}

    .firefly-autocomplete-container .autocomplete-input-container {
        display: flex;
        position: relative;
    }

    /* Suggestion buttons */
    .firefly-autocomplete-container .place-button {
        height: 2.5rem;
        width: 100%;
        background-color: transparent;
        text-align: left;
        border: none;
        cursor: pointer;
        margin: 2px 0;
        font-size: 1em;
        text-transform: none;
    }

        .firefly-autocomplete-container .place-button:focus-visible {
            outline: 2px solid #0056b3;
            border-radius: 2px;
        }

    .firefly-autocomplete-container .input {
        width: 300px;
        font-size: small;
        /*margin-bottom: 1rem;*/
    }

    /* Styles for the floating panel */
    .firefly-autocomplete-container .controls {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        font-family: sans-serif;
        font-size: small;
        margin: 12px;
        padding: 1rem;
    }

    .firefly-autocomplete-container .title {
        font-weight: bold;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Suggestion results list */
    .firefly-autocomplete-container .autocompleteaddressresults {
        list-style-type: none;
        margin: 0;
        padding: 0;
        position: absolute;
        left: 0;
        right: 0;
        z-index: 99999;
        background-color: white;
        box-sizing: border-box;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        /*Added by AI - This could be an issue with the mobile or form layout as we change the display in some cases*/
        max-height: 300px;
        overflow-y: auto;
    }

        .firefly-autocomplete-container .autocompleteaddressresults.form-layout {
            position: relative;
            left: auto;
            right: auto;
            min-width: auto;
            width: 100%;
        }

        .firefly-autocomplete-container .autocompleteaddressresults li:not(:last-child) {
            border-bottom: 1px solid #ddd;
        }

        .firefly-autocomplete-container .autocompleteaddressresults li:hover {
            background-color: #eee;
            cursor: pointer;
        }

    /* Clear suggestions button */
    .firefly-autocomplete-container .show-hide-autocomplete {
        right: 0;
        position: absolute;
        /*transform: translateX(-30%);*/
        min-width: 40px;
        color: #222222;
        cursor: pointer;
        text-align: center;
        text-transform: uppercase;
        font-size: 1.2em;
        padding: 5px;
        margin: 1px;
        border-radius: 2px;
        transition: color .2s ease-in-out;
    }

        .firefly-autocomplete-container .show-hide-autocomplete:hover {
            color: #0056b3;
        }

        .firefly-autocomplete-container .show-hide-autocomplete:focus-visible {
            outline: 2px solid #0056b3;
        }

    /* Powered by label */
    .firefly-autocomplete-container .power-by-wrapper {
        display: flex;
    }

        .firefly-autocomplete-container .power-by-wrapper .power-by-wrapper-label {
            margin-left: auto;
            margin-right: 0;
            padding: 5px 5px 3px 3px;
            color: #909090;
            font-size: .7rem;
            letter-spacing: .6px;
        }
