#search-history-modal,
#search-result-modal,
#search-not-found-modal,
#search-loading-modal {
    position: fixed;
    width: 100%;
    top: 50px;
    left: 0;
    z-index: 95;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all .4s linear;
    overflow-y: scroll;
    overflow-x: hidden;

}
 
#search-result-modal {
    max-height: 500px;
}

#search-not-found-modal.show,
#search-result-modal.show,
#search-history-modal.show,
#search-loading-modal.show {
    opacity: 1;
    visibility: visible;
}

#search-history-modal {
    font-family: 'Univers LT Std';
}

.search-modal__body {
    font-family: 'Univers LT Std';
    display: flex;
    justify-content: center;
    position: relative;
    padding: 50px 45px;
}

.search-modal-searches {
    display: flex;
}

.search-modal-searches.hide {
    display: none !important;
}

.search-modal-suggestions {
    flex: 0 1 15%;
}

.search-modal-relevant {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden;
}

.search-modal-relevant__title {
    display: flex;
}

.search-modal-relevant__title,
.search-modal-suggestions__title,
.search-modal-searches__title {
    font-style: normal;
    font-size: 15px;
    line-height: 21px;
    color: #000000;
    text-transform: uppercase;
}

.search-modal-suggestions,
.search-modal-searches__popular {
    margin-right: 80px;
}

.search-modal-searches__list {
    display: flex;
    justify-content: center;
    flex-direction: column;
    list-style: none;
}

.search-modal-searches__item {
    margin: 0;
    cursor: pointer;
}


.search-modal-relevant__relevant-products .product .date_col,
.search-modal-relevant__relevant-products .product .ref_col,
.search-modal-suggestions__item a,
.search-modal-searches__item a {
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 21px;
    color: #000000;
}

.search-modal-relevant__relevant-products .product .date_col,
.search-modal-relevant__relevant-products .product .ref_col {
    color: #a0a0a0;
}

.search-modal-relevant__all,
.search-modal-searches__del {
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    line-height: 10px;
    text-transform: uppercase;
    color: #000000;
    display: inline-block;
    margin-top: 25px;
    cursor: pointer;
    position: relative;
}

.search-modal-searches__del.hide {
    display: none;
}

.search-modal-relevant__all::after,
.search-modal-searches__del::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    top: 92%;
    left: 0;
    position: absolute;
    background: #000;
}

.search-modal-relevant__all {
    align-self: center;
}

.search-modal__close {
    position: absolute;
    right: 45px;
    top: 20px;
    width: 15px;
    cursor: pointer;
}

.search-modal-result.hide {
    display: none !important;
}


ul.search-modal-result__list {
    list-style-type: none;
}

.search-modal-result__item { 
    font-size: 15px;
    font-weight: 400;
    line-height: 21px;
    color: #000;
}

.search-modal-result__item:hover {
    text-decoration: underline;
}

.search-modal-result__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: 0em;
}

.search-modal-result__all {
    font-size: 11px;
    font-weight: 400;
    line-height: 10px;
    letter-spacing: 0em;
    padding-bottom: 4px !important;
    border-bottom: 1px solid #000000;
}

.search-modal__result.search-modal-result {
    display: flex;
}

.search-modal-result__relevants .count-box{
    color: #808080;
}
 

.search-modal-result__products .product {
    text-align: center;
    padding: 30px 20px 5px 20px;
    margin-top: 5px;
    flex: 1 1 200px;
}

.search-modal-result__products .product .price {
    margin: 5px 0px;
}

.search-modal-result__products .product .thumb {
    width: 100%;
    height: 156px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat no-repeat;
    margin-bottom: 20px;
}

.search-modal-result__products .product .product-name,
.search-modal-result__products .product .price {
    font-size: 15px;
    font-weight: 700;
    line-height: 21px; 
}

.search-modal-result__products .product .product-name {
    display: -webkit-box;    
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-modal-result__products .product .year,
.search-modal-result__products .product .ref {
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #808080;    
}

.search-modal-result__relevants .show-all-box {
    margin-top: 2rem;
}

.search-modal-result__products .product .sep {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: #808080;    
    padding: 5px 0px;
}


.search-modal-relevant__title-number {
    color:  #a0a0a0;
    margin-left: 5px;
}

.search-modal-product {
    padding: 20px;
    height: 100%;
}

.search-modal-product__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.search-modal-product__image {
    flex: 1 1 auto;
}

.search-modal-product__image img {
    display: block;
    width: 100%;
    height: 100%;
}

.search-modal-product__row,
.search-modal-product__year,
.search-modal-product__name,
.search-modal-product__price,
.search-modal-product__image {
    margin-bottom: 5px;
}

.search-modal-product__price,
.search-modal-product__name {
    font-family: 'Univers LT Std';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    color: #000000;
}

.search-modal-product__name {
    line-height: 20px;
    height: 40px;
    overflow: hidden;
}

.search-modal-product__ref,
.search-modal-product__row,
.search-modal-product__year {
    font-style: normal;
    font-size: 13px;
    line-height: 21px;
    color: #a0a0a0;
}

.search-modal-relevant__relevant-products {
    display: flex;
}

.search-modal-relevant__relevant-products .slick-track {
    display: flex !important;
}

.search-modal-relevant__relevant-products .slick-slide {
    width: 197px;
    height: inherit !important;
}

.search-modal-relevant__relevant-products .slick-slide > div {
    height: 100%;
}

.search-modal__loading {
    padding: 50px 0;
    width: 100%;
}

.search-modal__loading img {
    display: block;
    height: 50px;
    margin: 0 auto;
}

#search-result-modal .search-modal__body.show {
    display: flex;
    justify-content: space-between;
}

.search-modal__not-found {
    width: 100%;
}

@media (max-width: 1366px) {
    .search-modal__close {
        right: 35px;
    }

    .search-modal__body {
        padding: 50px 35px;
    }
}

@media (max-width: 850px) {
    #search-history-modal,
    #search-result-modal,
    #search-not-found-modal,
    #search-loading-modal {
        top: 188px;
    }

    .search-modal__close {
        right: 10px;
    }

    .search-modal__body {
        padding: 50px 10px;
    }

    #search-not-found-modal.active,
    #search-history-modal.active,
    #search-result-modal.active,
    #search-loading-modal.active {
        top: 165px;
    }
}

@media (max-width: 768px) {
    .search-modal-suggestions {
        margin-right: 30px;
    }

    .search-modal-relevant__title,
    .search-modal-suggestions__title,
    .search-modal-searches__title {
        font-size: 13px;
        line-height: 18px;
    }

    .search-modal-relevant__title {
        display: flex;
        flex-direction: column;
    }

    .search-modal-relevant__title-number {
        margin-left: 0;
    }

    #search-not-found-modal.active,
    #search-history-modal.active,
    #search-result-modal.active,
    #search-loading-modal.active {
        top: 150px;
    }

    .search-modal-result__products .product .thumb,
    .search-modal-result__products .product .sep,
    .search-modal-result__products .product .ref,
    .search-modal-result__products .product .year,
    .search-modal-result__products .product .price {
        display: none;
    }

    .search-modal-result__products {
        flex-direction: column;
    }

    .search-modal-result__products .product {
        flex: 0 1 auto;
        padding: 0;
    }

    .search-modal-result__products .product .product-name {
        font-weight: 400;
        text-align: start;
    }

    .search-modal-result__suggestions {
        padding: 0 15px;
        flex: 0 1 100%;
        max-width: none;
        margin-bottom: 15px;
    }

    .search-modal-result__relevants {
        padding: 0 15px;
        flex: 0 1 100%;
        max-width: none;
    }

    .search-modal__result.search-modal-result {
        flex-direction: column;
    }
}



@media (max-width: 550px) {
    .search-modal-searches {
        flex-direction: column;
    }

    .search-modal-suggestions,
    .search-modal-searches__popular {
        margin: 0 20px 50px 0;
    }

    .search-modal-relevant__all,
    .search-modal-searches__del {
        margin-top: 10px;
    }

    .search-modal__body {
        padding: 20px 15px;
        justify-content: start;
    }

    .search-modal__close {
        width: 10px;
    }

    .search-modal-relevant__all {
        align-self: start;
    }
}

@media (max-width: 475px) {
    #search-history-modal.active,
    #search-not-found-modal.active,
    #search-result-modal.active,
    #search-loading-modal.active {
        top: 140px;
    }

    .search-modal__not-found {
        padding: 0 15px;
    }
}