#top-nav-search {
    width: 90%;
    background-color: white;
}

#navMenu_2_Search {
    min-height: 21vh;
    overflow: visible;
}

/* Algolia Search CSS */

/* Autocomplete CSS */
.aa-Panel {
    z-index: 10;
    top: 159.571px !important;
}

.aa-ItemIcon {
    display: none;
}

.aa-ItemActions {
    display: none;
}

.aa-Item[aria-selected="true"] {
    background-color: rgb(238, 238, 238);
}

#autocomplete .aa-Form {
    width: 100%;
    display: inline-flex;
}

.aa-Form:focus-within {
    border: 1px solid rgb(15 14 15 / 80%);
    box-shadow: rgb(55 55 57 / 20%) 0 0 0 2px, inset rgb(190 189 193 / 20%) 0 0 0 2px;
}

#autocomplete .aa-Input {
    width: 100%;
    margin-left: 10px;
}

.aa-Label,
.aa-LoadingIndicator {
    margin-bottom: 0;
}

.aa-Label:focus {
    border: 0;
}

.aa-Label svg,
.aa-LoadingIndicator svg {
    color: rgb(115, 115, 115);
}

.aa-Label svg:hover,
.aa-LoadingIndicator svg:hover {
    color: black;
    cursor: pointer;
}

#autocomplete .autocomp-voicesearch svg {
    color: rgb(115, 115, 115);
}

#autocomplete .autocomp-voicesearch svg:hover {
    color: black;
    cursor: pointer;
}

#autocomplete .aa-ClearButton svg {
    color: rgb(115, 115, 115);
}

#autocomplete .autocomp-voicesearch {
    border: none;
    order: 2;
    background-color: transparent;
}

#autocomplete .aa-InputWrapper {
    order: 0;
}

#autocomplete .aa-InputWrapperPrefix {
    order: 3;
}

#autocomplete .aa-InputWrapperPrefix:focus,
#autocomplete .aa-InputWrapperPrefix:active {
    border: none;
}

#autocomplete .aa-Label:focus,
#autocomplete .aa-aa-Label:active {
    border: none;
}

#autocomplete .aa-SubmitButton:focus,
#autocomplete .aa-SubmitButton:active {
    border: none;
}

#autocomplete .aa-SubmitIcon:focus,
#autocomplete .aa-SubmitIcon:active {
    border: none;
}

#autocomplete .autocomp-voicesearch:focus,
#autocomplete .autocomp-voicesearch:active {
    border: none;
}

#autocomplete .voicesearch-icon:focus,
#autocomplete .voicesearch-icon:active {
    border: none;
}

#autocomplete .aa-InputWrapperSuffix {
    order: 1;
}

/* Instant Search CSS */
.ais-SearchBox-submit {
    display: none;
}

.ais-VoiceSearch-status {
    display: none;
}

#searchbox-line {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 3px 9px;
    border-radius: 2px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 2px 2px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
    outline: 0px;
}

#searchbox-line:hover {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 8px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

#searchbox-line:has(.ais-SearchBox-input:focus) {
    outline: -webkit-focus-ring-color auto 5px;
}

#searchbox-algolia-full {
    flex: 1;
    max-width: 98%;
    display: inline-block;
}

#searchbox-algolia-full .ais-SearchBox {
    display: flex;
    width: 100%;
}

#searchbox-algolia-full .ais-SearchBox-form {
    display: flex;
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#searchbox-algolia-full .ais-SearchBox-input {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    border: none;
    outline: none;
}

#search-clear[pseudo="-webkit-search-cancel-button"] {
    color: rgb(115, 115, 115);
}

#search-clear[pseudo="-webkit-search-cancel-button"]:hover {
    color: black;
}

#voice-search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

#voice-search .ais-VoiceSearch-button,
.aa-InputReset {
    border: none;
    padding: 8px;
    font-size: 18px;
    display: flex;
    background-color: transparent;
    color: rgb(115, 115, 115);
}

#voice-search .ais-VoiceSearch-button:hover,
.aa-InputReset:hover {
    color: black;
}

#search-stats .ais-Stats {
    margin-bottom: 1.5em;
    padding: 0px;
}

#search-stats .ais-Stats-text {
    color: rgb(128, 128, 128);
    font-size: small;
}

#search-response {
    float: left;
    flex-direction: column;
    width: 100%;
}

/* @media (min-width: 1100px) {
	#search-response {
		width: 60%;
	}
}

@media (max-width: 1099px) {
	#search-response {
		width: 100%;
	}
} */

#search-response .ais-Hits-item {
    margin-bottom: 1.5em;
}

#search-response .ais-Hits-list {
    list-style: none;
    padding: 0px;
}

#search-response .hit-content {
    display: flex;
}

#search-response a.hit-flex-row {
    display: flex;
}

#search-response .hit-img-container.hide {
    display: none;
}

#search-response .hit-img-container {
    margin-right: 1rem !important;
    overflow: hidden;
    aspect-ratio: 412 / 262;
    align-items: center;
    display: flex;
}

#search-response .hit-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

@media (max-width: 429px) {
    #search-response .hit-img-container {
        width: 50%;
    }
    #search-response .hit-text {
        width: 50%;
    }
    #search-response .hit-text.full-width {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #search-response .hit-desc {
        display: none;
    }
    #search-response .hit-img {
        width: 172px;
        height: 125px;
    }
}

@media (max-width: 1200px) {
    #search-response .ais-Hits-list {
        width: 100%;
    }
    .img-fluid-search {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (min-width: 429px) {
    #search-response .hit-img-container {
        width: 35%;
    }
    #search-response .hit-text {
        width: 65%;
    }
    #search-response .hit-text.full-width {
        width: 100%;
    }
}

@media (min-width: 768px) {
    #search-response .hit-desc {
        display: block;
    }
    #search-response .hit-img-container {
        width: 25%;
    }
    #search-response .hit-text {
        width: 75%;
    }
    #search-response .hit-text.full-width {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    #search-response .ais-Hits-list {
        width: 60%;
    }
    #search-response .hit-img-container {
        width: 20%;
    }
    #search-response .hit-text {
        width: 80%;
    }
    #search-response .hit-text.full-width {
        width: 100%;
    }
    .img-fluid-search {
        width: 100%;
        height: 112px;
        object-fit: cover;
    }
}

#search-response .hit-img img.vertical {
    background-color: #f1f1f1;
    object-fit: contain;
}

#search-response .hit-title {
    font-size: 1.1em;
    display: inline-block;
    text-decoration: underline;
    color: #000000;
    margin-bottom: auto;
}

#search-response .hit-title:hover {
    text-decoration: none;
}

#search-response .hit-text {
    color: #414042;
    display: block;
}

#search-response .hit-desc {
    font-size: 0.85em;
    line-height: 1.69;
    margin-bottom: 0px;
    margin-top: 0px;
    overflow-wrap: break-word;
}

#search-response .hit-url {
    display: inline-block;
    font-size: 0.75em;
    width: 100%;
    color: rgb(136, 137, 145);
    overflow-wrap: break-word;
}

#search-response .hit-url:hover {
    color: #000000;
}

#pag {
    margin: 1em 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pag ul {
    display: inline-flex;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

#pag .ais-Pagination-item a,
.ais-Pagination-item--disabled {
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    padding: 10px;
    user-select: none;
    width: auto;
    height: 44px;
    text-align: center;
    font-size: inherit;
    border: 0px;
    border-radius: 5px;
    background-color: inherit;
    color: rgb(88, 88, 88);
    box-sizing: border-box;
    text-decoration: none;
}

#pag .ais-Pagination-item--selected a {
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    padding: 10px;
    user-select: none;
    width: 44px;
    height: 44px;
    text-align: center;
    font-size: inherit;
    border: 0px;
    border-radius: 5px;
    background-color: rgb(51, 51, 51);
    color: rgb(255, 255, 255);
    box-sizing: border-box;
    text-decoration: none;
}