/* multi-theme-compact */
.multi-form {
    display: block;
    position: relative;
}

.multi-form, .multi-results {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3%;
}

.multi-theme-compact .multi-wrapper {
    margin: 4% auto !important;
}

.it-multi-theme-compact {
    background: none !important;
}

.it-multi-theme-compact .it-multi-wrapper {
    margin: 2% auto;
    max-width: 1420px;
}

.it-multi-theme-compact .it-multi-layout {
    margin: 0 2%;
    background: #fff;
    border-radius: 3px;
    -webkit-box-shadow: 0 1px 4px rgb(62 57 107 / 35%);
    box-shadow: 0 1px 4px rgb(62 57 107 / 35%);
    overflow: hidden;
}

.it-multi-theme-compact .it-multi-results {
    margin-top: 0;
}

.it-multi-theme-compact .it-multi-form,
.it-multi-theme-compact .it-multi-results {
    max-width: none;
}

.it-multi-theme-compact .it-multi-lastQueries,
.it-multi-theme-compact .it-multi-noResults {
    border-top: 1px solid #e6e6e6;
    margin-top: 5px;
    padding: 20px;
    position: static;
    background: none;
}

.it-multi-theme-compact .it-multi-form,
.it-multi-theme-compact .it-multi-results {
    max-width: none;
}

/* multi-theme-compact */
.it-multi-search {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    line-height: 20px;
    color: rgba(0, 0, 0, .9);
    font-size: 16px;
    text-rendering: optimizeLegibility;
    background: hsla(0, 0%, 95%, .97);
    -webkit-overflow-scrolling: touch;
    text-align: left;
}

.it-multi-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0 auto;
    max-width: 1800px;
}

.it-multi-withQuery {
    background: #fff;
}

.it-multi-layout {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.it-multi-fontSmoothing {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.it-multi-withQuery .it-multi-header {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.it-multi-header {
    font-size: 16px;
    color: #000;
    position: relative;
}

.it-multi-header {
    background: #fff;
    z-index: 1;
}

.it-multi-form {
    display: block;
    position: relative;
}

.it-multi-form, .it-multi-results {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3%;
}

.it-multi-searchIcon {
    top: 24px;
    left: 3.2%;
    width: 50px;
    height: 50px;
}

.it-multi-icon {
    fill: #adb9c5;
    opacity: .5;
    position: absolute;
    display: inline-block;
    cursor: pointer;
}

.it-multi-svg {
    fill: inherit !important;
    width: inherit;
    height: inherit;
}

.it-multi-svg-path {
    fill: inherit;
}

.it-multi-results {
    margin-top: 5px;
    max-width: none;
}

.it-multi-lastQueries, .it-multi-noResults {
    position: absolute;
    padding: 10px 20px 30px 63px;
    line-height: 25px;
    background: hsla(0, 0%, 95%, .5);
}

.it-multi-hint {
    color: rgba(0, 0, 0, .4);
    font-size: 14px;
    margin-bottom: 3px;
}

.it-multi-search-lastQuery .it-multi-lastQuery {
    line-height: 19px;
    color: rgba(0, 0, 0, .5);
}

/*.it-multi-search-lastQuery .it-multi-lastQuery:hover {*/
/*    background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));*/
/*}*/

.it-multi-search-lastQuery .it-multi-lastQuery a:not(.header-search-total) {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: start;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: top;
}

/* ellipsis на flex-контейнере выше не обрезает текст — на flex-item нужен
   min-width: 0, иначе длинное название товара распирает родителя по ширине
   (на мобильных это "протекает" наружу и даёт горизонтальный скролл) */
.it-multi-search-lastQuery .it-multi-lastQuery a.header-search-product img {
    flex-shrink: 0;
}

.it-multi-search-lastQuery .it-multi-lastQuery a.header-search-product > div {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.it-multi-search-lastQuery .it-multi-lastQuery a .header-search-total {
    width: 100% !important;
}

.it-multi-search a {
    border: 0;
}

.it-multi-search a,
.it-multi-search a:active,
.it-multi-search a:hover {
    text-decoration: none;
    color: rgba(0, 0, 0, .9);
    font-weight: 400;
}

.it-multi-closeIcon {
    top: 25px;
    right: 3%;
    width: 43px;
    height: 43px;
    opacity: .9;
    fill: #000;
}

.it-multi-input[type=text],
.it-multi-input[type=text]:focus,
.it-multi-input[type=text]:hover {
    all: initial;
    font: inherit;
    font-size: 34px;
    font-weight: 400;
    font-style: normal;
    position: relative;
    background: none;
    border: 0;
    color: #000;
    height: 90px;
    line-height: 40px;
    margin: 0;
    padding: 6px 55px 9px 64px;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

@media (max-width: 685px) {
    .it-multi-input[type=text],
    .it-multi-input[type=text]:focus,
    .it-multi-input[type=text]:hover {
        font-size: 20px;
        line-height: 20px;
        padding: 5px 41px 5px 55px;
        height: 60px;
    }

    .it-multi-search .it-multi-layout,
    .it-multi-search .it-multi-wrapper {
        margin: 0;
        border-radius: 0;
    }

    .it-multi-search .it-multi-layout {
        -webkit-box-shadow: 0 0 6px rgb(62 57 107 / 45%);
        box-shadow: 0 0 6px rgb(62 57 107 / 45%);
    }

    .it-multi-form {
        padding: 0 6%;
    }

    .it-multi-results {
        padding: 0;
    }

    .it-multi-searchIcon {
        top: 11px;
        left: 5%;
        width: 40px;
        height: 40px;
    }

    .it-multi-closeIcon {
        top: 14px;
        right: 5%;
        width: 32px;
        height: 32px;
    }
}
