.top-search-bar {
    position: relative;
}

form.search {
    position: relative;
}

.header .header-inner form.search {
    flex: 1 1 450px;
    max-width: 450px;
    height: 40px;
    overflow: visible;
    border-radius: 6px;
}

.header .header-inner form.search input {
    min-width: 0;
    height: 38px;
    padding: 0 14px;
}

.header .header-inner form.search button {
    flex: 0 0 auto;
    height: 36px;
    margin: 1px;
    padding: 0 16px;
    border-radius: 8px;
}

.search-results-ajax {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1050;
    width: 100%;
    max-height: min(250px, 55vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d6dce5;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(11, 42, 74, .16);
}

.search-results-ajax .search-results {
    max-height: none;
    padding: 4px 0;
}

.search-results-ajax ul {
    margin: 0;
    padding: 0;
}

.search-results-ajax ul li {
    list-style: none;
    margin: 0;
    border-bottom: 1px solid #edf0f4;
}

.search-results-ajax ul li:last-child {
    border-bottom: 0;
}

.search-results-ajax ul li a {
    display: block;
    padding: 7px 12px;
    color: #26374a;
    font-size: 13px;
    line-height: 16px;
    text-decoration: none;
}

.search-results-ajax ul li a:hover,
.search-results-ajax ul li a:focus {
    outline: none;
    background: #f2f6fb;
    color: #0b2a4a;
}

.search-results-ajax ul li a > .d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.search-results-ajax .search-item-left {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-results-ajax .search-item-right {
    flex: 0 0 auto;
}

.search-results-ajax .search-item-right span {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    background: #eef3f8;
    color: #617286;
    font-size: 11px;
}

.search-results-ajax::-webkit-scrollbar {
    width: 7px;
}

.search-results-ajax::-webkit-scrollbar-thumb {
    border-radius: 7px;
    background: #c4ced9;
}

@media (max-width: 576px) {
    .header .header-inner form.search {
        flex-basis: 100%;
        max-width: none;
    }

    .search-results-ajax {
        max-height: min(280px, 45vh);
    }
}
