#advanceSearchModal2 .select2-container--bootstrap-5 {
    .select2-dropdown {
        border-color: $border-color;
        border-radius: 0px;

        .select2-results__options:not(.select2-results__options--nested) {
            max-height: 10rem;
        }

        &.select2-dropdown--below {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

        &.select2-dropdown--above {
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;

        }
    }

    .select2-selection {
        min-height: calc(2.5em + .75rem + 3px);
        border-color: $border-color;
        border-radius: 0px;
    }

    .select2-selection--multiple .select2-search {
        height: 2.5rem;
        width: auto;

        .select2-search__field {
            height: 2rem;
            margin-top: 3px;
            width: 100%;
            min-width: 30px;
            padding: 0.38em 0px;
        }
    }

    &.select2-container--open {
        &.select2-container--below .select2-selection {
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
        }

        &.select2-container--above .select2-selection {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }
    }

}

.location-select2-wrapper {
    .select2-container--bootstrap-5 .select2-selection {
        border: 0px;
        border-radius: 0px;
        padding: 15px 25px;
    }

    // .select2-container--open {
    //     &.select2-container--below.select2-force-below .select2-dropdown {
    //         margin-top: 0 !important;
    //     }
    //     &.select2-container--above.select2-force-below .select2-dropdown {
    //         margin-top: 0 !important;
    //         /* Override any default top margin */
    //     }
    // }

    // .select2-dropdown.select2-force-below {
    //     top: 100% !important;
    //     /* Force the dropdown to be at the bottom of the container */
    //     bottom: auto !important;
    //     /* Ensure default bottom behavior is overridden */
    // }
    .select2-container--open.select2-container--below.select2-force-below .select2-dropdown {
        margin-top: 0 !important;
        /* Override any default top margin */
        border-top: 1px solid #aaa;
        /* Optional: Add a top border for visual separation */
        border-radius: 0 0 0px 0px;
        /* Optional: Adjust border radius */
    }

    .select2-container--open.select2-container--above.select2-force-below .select2-dropdown {
        margin-top: 0 !important;
        /* Override any default top margin */
        border-bottom: 1px solid #aaa;
        /* Optional: Add a bottom border if it flips */
        border-radius: 0 0 0px 0px;
        /* Optional: Adjust border radius */
    }

    .select2-dropdown.select2-force-below {
        top: 100% !important;
        /* Force the dropdown to be at the bottom of the container */
        bottom: auto !important;
        /* Ensure default bottom behavior is overridden */
    }

    .select2-container--bootstrap-5 .select2-selection--multiple .select2-search {
        width: auto;
        height: 100%;
    }
    .select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field {
        width: 100%;
        min-width: 30px;
        font-family: inherit;
        background-color: transparent;
        padding: 0.38em 0px;
        margin-top: 0.38em;
        height: 1.5rem;
    }

    .select2-container--bootstrap-5 .select2-dropdown {
        border: 0px;
        border-radius: 0px;
    }
}