.search-query-container {
    position: relative;
    display: flex;
}
.autocomplete-container {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    max-height: 320px;
    overflow-y: auto;
    z-index: 30;
}

.autocomplete-container.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ti-line);
    border-radius: 12px;
    box-shadow: 0 18px 40px -24px rgba(42, 17, 64, 0.45);
}

.autocomplete-container.is-loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.2);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: search-loading-spin 0.7s linear infinite;
}

@keyframes search-loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .autocomplete-container.is-loading::after {
        animation: none;
    }
}

/* #searchQuery now sits inside a column-flex segment label, so fill width
   instead of the old flex-grow (which stretched it vertically). */
.search-query-container #searchQuery {
    width: 100%;
}

.select-commercialization-type {
    width: 100%;
}
