@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

.ui-autocomplete {
    z-index: 99 !important;
}

.ui-menu-item {
    text-align: left;
    overflow: hidden;
}

.ui-autocomplete .product-lista {
    display: flex !important;
}

.ui-autocomplete .product-lista .image {
    float: left;
    margin-right: 8px;
    margin-bottom: 0;
}

.ui-autocomplete .product-lista .image img {
    height: 100px;
    border: 1px solid #E7E7E7;
    padding: 0;
    margin: 0;
}

.ui-autocomplete .product-lista .name {
    font-family: 'Noto Sans', 'Arial', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    color: #282828;
    text-decoration: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
}

.ui-autocomplete .product-lista .price {
    display: inline-flex;
    flex-direction: column;
    margin-top: auto;
    gap: 5px;
}

.ui-autocomplete .product-lista .price-old {
    width: auto;
    height: auto;
    font-family: 'Montserrat', 'Noto Sans', 'Arial', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #9A9A9A;
    text-decoration: line-through;
}

.ui-autocomplete .product-lista .price-new {
    width: auto;
    height: auto;
    font-family: 'Montserrat', 'Noto Sans', 'Arial', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #010101;
}

.ui-autocomplete .product-lista .cat-name {
    color: #808080;
    text-decoration: none;
    height: 20px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
}

.ui-autocomplete .product-lista .stock-green, .ui-autocomplete .product-lista .stock-red {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin: 0 0 0 5px;
    padding: 0;
    border: 0;
}

.ui-autocomplete .product-lista .stock-green {
    color: #009018;
}

.ui-autocomplete .product-lista .stock-red {
    color: #E43B00;
}

.ui-autocomplete .ui-menu-item span.header {
    display: block;
    padding: 10px;
    font-family: 'Noto Sans', 'Arial', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
}

.ui-autocomplete .ui-menu-item:not(:first-child) span.header {
    border-top: 1px solid #dedede;
}

.product-list-autocomplete {
    display: inline-flex !important;
    flex-wrap: wrap;
    font-family: 'Noto Sans', 'Arial', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #9A9A9A;
    padding: 2px 5px !important;
    background-color: #f0f1f3;
}

.product-list-autocomplete span {
    display: flex;
    align-items: center;
    color: #9a9a9a;
    margin: 5px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    width: auto; /* Устанавливаем ширину в auto, чтобы отменить наследование */
    height: auto; /* Устанавливаем высоту в auto, если нужно */
}

.product-list-autocomplete svg {
    margin-right: 6px;
}

.search-json {
    border-radius: 2px;
    border: 1px solid #ccc;
    padding: 2px;
    background-color: #FFF;
}

.search-json__no-results {
    text-align: center;
    line-height: 1.8em;
}

.search-json__no-results__header {
    font-size: 18px;
    color: #999;
    text-align: center;
    margin-bottom: 20px;
}

.search-json__no-results button {
    display: block;
    padding: 8px 10px;
    margin: auto;
}

.btn-success {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-success:focus {
    color: #fff;
    background-color: #157347;
    border-color: #146c43;
    box-shadow: 0 0 0 .25rem rgba(60, 153, 110, .5);
}

.btn-success:hover {
    color: #fff;
    background-color: #157347;
    border-color: #146c43;
}

.xks {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}
.xks span {
    display: inline !important;
}

.image-search {
    margin-right: 6px;
    display: flex;
    align-items: center;
}

span.remove-search {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12.25 3.75-8.5 8.5M3.75 3.75l8.5 8.5' stroke='%239a9a9a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");    background-position: center;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    margin-left: auto;
}

.remove-search:hover {
    cursor: pointer;
}

.product-list-history {
    display: flex;
    align-items: center;
    margin-top: -5px;
    margin-bottom: -5px;
}

.product-list-history:hover {
    border: none !important;
}

.product-list-history > .name {
    font-family: 'Noto Sans', 'Arial', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #9A9A9A;
}

.ui-menu-item-autocomplete {
    padding: 10px 0 10px 10px !important;
    zoom: 1;
    float: left;
    clear: none !important;
    width: auto !important;
    line-height: 1;
}
.ui-menu-item-autocomplete:last-child {
    margin-bottom: 5px;
}
.ui-menu-item-autocomplete a {
    padding: 0;
}
.ui-menu-item-search-history {
    clear: none !important;
    width: 96%;
    float: none !important;
    text-align: left;
    margin-left: 6px;
}
.ui-menu-item-search-history:first-child {
    margin-top: 6px;
}

#search .ui-widget-content {
    background: #fff;
}

.ui-category-name {
    color: #14bfff !important;
}

.ui-flex {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.ui-flex-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.price-saving {
    display: inline-flex;
    width: auto !important;
    height: auto !important;
    padding: 3px 5px;
    margin-left: 8px;
    font-family: 'Montserrat', 'Noto Sans', 'Arial', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    color: #FFFFFF;
    background: #ef1839;
    border-radius: 4px;
}

@media (max-width: 960px) {
    .search_ajax_class {
        height: auto;
        max-height: calc(100vh - 100px);
    }
    .product-list-history {
        margin-bottom: 0;
    }
    .ui-category-link .image {
        display: none;
    }
    .ui-category-link .ui-category-name {
        font-size: 16px !important;
    }

    .history-list-block {
        position: absolute;
        top: -128px;
        left: 90px;
        width: 65%;
        padding: 10px;
        z-index: 1000;
    }

    .history-list-block a {
        text-decoration: none;
        display: block;
        padding: 10px 7px 0 15px !important;
        line-height: 1;
        zoom: 1;
    }
}