.search_outer_toggle #search {
    position: relative;
    z-index: 2147483000;
}
.search_outer_toggle {
    position: relative;
    z-index: 2147483000;
}

.search_outer_toggle #search > .form-control,
.search_outer_toggle #search input[name="search"] {
    border-color: #d8d0c7;
    box-shadow: none;
}

.search_outer_toggle #search > .form-control:focus,
.search_outer_toggle #search input[name="search"]:focus {
    border-color: #b99b72;
    box-shadow: 0 0 0 2px rgba(185, 155, 114, .16);
}

/* Full search page: keep the controls separated on desktop and stacked on mobile. */
#content.jt-smart-search-results-page .jt-smart-search-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0 14px;
    margin-left: -7px;
    margin-right: -7px;
}
#content.jt-smart-search-results-page .jt-smart-search-form-row > [class*="col-"] {
    float: none;
    width: auto;
    padding-left: 7px;
    padding-right: 7px;
}
#content.jt-smart-search-results-page .jt-smart-search-form-row > .col-sm-4 {
    flex: 0 1 360px;
}
#content.jt-smart-search-results-page .jt-smart-search-form-row > .col-sm-3 {
    flex: 0 1 260px;
}
#content.jt-smart-search-results-page #button-search.jt-smart-search-page-button {
    display: inline-block;
    margin-top: 16px;
    margin-bottom: 20px;
    padding-left: 22px;
    padding-right: 22px;
}
#content.jt-smart-search-results-page input[name="search"] {
    border-color: #d8d0c7;
    box-shadow: none;
}
#content.jt-smart-search-results-page input[name="search"]:focus {
    border-color: #b99b72;
    box-shadow: 0 0 0 2px rgba(185, 155, 114, .16);
}
#content.jt-smart-search-results-page input[name="search"] + ul.dropdown-menu {
    display: none !important;
}

.jt-smart-search-dropdown {
    position: absolute;
    z-index: 2147483000 !important;
    top: 100%;
    left: 0;
    right: 0;
    width: min(460px, calc(100vw - 24px));
    left: auto;
    right: 0;
    max-width: calc(100vw - 20px);
    background: #fff;
    background-color: #fff;
    opacity: 1;
    isolation: isolate;
    border: 1px solid #ded8cf;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 8px 22px rgba(44, 37, 31, .18);
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    text-align: left;
}
.jt-smart-search-item,
.jt-smart-search-category,
.jt-smart-search-empty,
.jt-smart-search-loading,
.jt-smart-search-error {
    display: block;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding: 9px 10px;
}
.jt-smart-search-item {
    display: flex;
    align-items: center;
    min-height: 78px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #eee9e3;
    background: #fff;
    transition: background-color .12s ease;
}
.jt-smart-search-item:hover,
.jt-smart-search-item.active,
.jt-smart-search-category:hover,
.jt-smart-search-category.active {
    background: #faf7f3;
}
.jt-smart-search-image {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 10px 0 0;
    background: #fff;
}
.jt-smart-search-text {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
    overflow: hidden;
}
.jt-smart-search-name,
.jt-smart-search-meta,
.jt-smart-search-price,
.jt-smart-search-availability {
    display: block;
}
.jt-smart-search-name {
    font-weight: 600;
    color: #332c27;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.jt-smart-search-meta {
    font-size: 11px;
    color: #8a8179;
    margin-top: 3px;
}
.jt-smart-search-price {
    margin-top: 5px;
    font-size: 13px;
    white-space: nowrap;
}
.jt-smart-search-special-price {
    color: #9b6d24;
    font-weight: 700;
}
.jt-smart-search-old-price {
    color: #978f88;
    margin-left: 7px;
    font-size: 11px;
}
.jt-smart-search-availability {
    color: #7c756e;
    font-size: 10px;
    margin-top: 2px;
}
.jt-smart-search-category {
    display: flex;
    align-items: center;
    min-height: 42px;
    border-top: 1px solid #eee9e3;
    color: #6f5b45;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    background: #faf8f5;
    text-decoration: none;
}
.jt-smart-search-empty,
.jt-smart-search-loading,
.jt-smart-search-error {
    color: #766e67;
    text-align: center;
}
@media (max-width: 600px) {
    #content.jt-smart-search-results-page .jt-smart-search-form-row {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }
    #content.jt-smart-search-results-page .jt-smart-search-form-row > [class*="col-"] {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 10px;
    }
    #content.jt-smart-search-results-page #button-search.jt-smart-search-page-button {
        margin-top: 4px;
        margin-bottom: 18px;
    }
    .jt-smart-search-dropdown {
        position: fixed;
        left: 12px !important;
        right: auto !important;
        width: calc(100vw - 24px) !important;
        max-height: 68vh;
    }
    .jt-smart-search-image {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }
}
