#vinatis-search {
    width: inherit;
    z-index: 9;
}

#closeSearch {
    font-size: 26px;
    color: #999;
    cursor: pointer;
}

#vinatis-search-backdrop {
    position: fixed;
    z-index: 9;
    background: #00000045;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#vinatis-search-results {
    position: absolute;
    z-index: 10;
    background-color: #fff;
    box-shadow: 0px 5px 15px 0px #00000040;
    border-radius: 15px;
    padding: 10px;
    top: 70px;
    max-height: 80dvh;
    overflow-y: scroll;
}

#vinatis-search-results #search_block_top_new {
    order: 0;
}

#searchbox {
    width: 100%;
    z-index: 9;
}

#search_query_top {
    font-size: 13px;
    line-height: 13px;
}

/*  */
#search_query_top::placeholder {
    color: #999999;
    transition: all 0.1s ease;
}


#search_query_top:focus::placeholder {
    color: #CCCCCC;
}

/*  */

#search_block_top_new {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#search-delete-query {
    position: absolute;
    right: 60px;
    color: #666;
    top: 11px;
}

#search-delete-query:hover {
    cursor: pointer;
    color: #000;
}

#search-close {
    font-size: 30px;
    color: #666;
    z-index: 10;
}

#search-close:hover {
    cursor: pointer;
    color: #000;
}

.search-top {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.no-result {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    background-color: #F5F5F5;
}

.category-title {
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    color: #972A66;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-link {
    border: 1px solid #999;
    border-radius: 30px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
}

.category-link .icon-times:hover {
    color: #000;
}

.search-body {
    display: flex;
}

.category-small-link {
    margin: 5px 0;
    font-size: 13px;
    line-height: 22px;
}

.category-link:hover {
    -webkit-box-shadow: rgba(0, 0, 0, 0.16) 0 2px 8px;
    -moz-box-shadow: rgba(0, 0, 0, 0.16) 0 2px 8px;
    box-shadow: rgba(0, 0, 0, 0.16) 0 2px 8px;
}

.search-view-more:hover,
.category-small-link:hover {
    opacity: 0.7;
}

.search-block {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 20px 0;
}

.search-block>a {
    max-width: 100%;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0 25px 0;
}

.suggestions>.category-link {
    color: #666;
    border: 1px solid #666;
    font-size: 14px;
}

.delete-history {
    color: #999;
    font-size: 13px;
    cursor: pointer;
}

.delete-history:hover {
    color: #000;
}

.search-product-list {
    display: flex;
    flex-wrap: wrap;
}

.search-product {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    height: 320px;
    box-shadow: 0px 3px 5px 0px #0000001A;
}

.search-product-rewards {
    position: absolute;
    flex-direction: column;
    display: flex;
    flex-wrap: wrap;
    left: 0;
}

.search-product-rewards>img {
    width: 40px;
}

.search-product-image {
    width: 150px;
    max-width: 100%;
}

.search-product-labels {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
    border-radius: 3px;
    height: 23px;
    overflow: hidden;
}

.search-product-labels>span {
    border-radius: 3px;
    padding: 2px 5px;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-product-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 16px;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-product-top {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.search-product-promos {
    display: flex;
    align-items: baseline;
    flex-direction: row;
    gap: 5px;
}

.search-product-base-price {
    font-size: 15px;
    font-weight: 400;
    text-decoration: line-through;
}

.search-product-promo {
    background-color: #FF6350;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
}

.search-view-more {
    font-size: 13px;
    font-weight: 700;
}

.flex-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media only screen and (max-width: 991px) {
    #vinatis-search-results {
        top: 130px;
    }

    #vinatis-search {
        order: 4;
    }
}

@media only screen and (max-width: 768px) {

    /* Évite le zoom safari ios */
    #search_query_top {
        font-size: 16px;
        line-height: 16px;
    }

    #vinatis-search-backdrop {
        background: #fff;
    }

    #vinatis-search-results {
        top: 115px;
        height: calc(100dvh - 65px);
        max-height: unset;
        box-shadow: unset;
        border-radius: unset;
        padding: unset;
    }

    .search-product-list {
        flex-wrap: inherit;
        overflow-x: scroll;
        margin-bottom: 20px;
    }

    .search-product {
        width: 150px;
        height: 100%;
    }

    .suggestions {
        flex-direction: column;
    }

    .suggestions>.category-link {
        width: 100%;
        max-width: inherit;
        border: none;
        border-radius: unset;
        padding: 0;
    }

    .suggestions>.category-link:hover {
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        color: #000;
    }

    .category-link .icon-times {
        float: right;
        padding: 2px;
    }
}
