.block-search {
    margin-right: auto;
    margin-left: 2rem;
    width: 387px;
}

@media (max-width: 768px) {
    .block-search {
        margin-right: 2rem;
        margin-left: 2rem;
        width: 100%;
    }
}

.block-search .action.search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px 0;
}

.block-search .action.search svg.feather.feather-search {
    width: 20px;
}

.block-search .cs-autocomplete__item-image {
    width: 100%;
    height: 100%;
    max-height: 125px;
    max-width: 100px;
    min-height: 125px;
}

.block-search .block-content .field .label {
    width: 12px;
}

.block-search .block-content .control {
    padding: 0;
    border: none;
}

.block-search .block-content .control #minisearch-input-voyado-top-search {
    position: static;
}

.block-search .block-content .search-autocomplete {
    position: fixed !important;
    left: 50%;
    transform: translateX(-50%);
    width: 100% !important;
    max-width: 1200px;

    top: var(--autocomplete-top, 0px);
    margin: 0;

    border-radius: 8px;
    z-index: 6500;
    padding: 15px;
    font-size: 14px;
    box-shadow: 0 0 11px 10px rgba(0, 0, 0, 0.15);
    background: #FFF;
    overflow-y: auto;
    max-height: min(80vh, 60rem);
}

.block-search .block-content .search-autocomplete .cs-autocomplete .autocomplete-list dd,
.block-search .block-content .search-autocomplete .cs-autocomplete__item {
    width: 20%;
    float: left;
    flex-direction: column;
    border-bottom: 1px solid #dcdcdc;
    border-right: 1px solid #dcdcdc;
}

.block-search .autocomplete-list {
    order: 1;
    width: 80%;
    border: none;
    display: flex;
    flex-wrap: wrap;
}

.block-search .smile-elasticsuite-autocomplete-result {
    display: flex;
    flex-wrap: wrap;
}

.block-search .smile-elasticsuite-autocomplete-result .suggestions-container {
    order: 2;
    width: 20%;
}

.block-search .cs-autocomplete__item-details .f-fix {
    height: unset;
}

.block-search .smile-elasticsuite-autocomplete-result .categories-header,
.block-search .smile-elasticsuite-autocomplete-result .suggestions-header,
.block-search .smile-elasticsuite-autocomplete-result .brands-header {
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 10px;
}

.block-search .smile-elasticsuite-autocomplete-result .categories-title,
.block-search .smile-elasticsuite-autocomplete-result .suggestions-title,
.block-search .smile-elasticsuite-autocomplete-result .brands-title {
    margin-bottom: 5px;
}

.block-search .smile-elasticsuite-autocomplete-result .categories-title,
.block-search .smile-elasticsuite-autocomplete-result .suggestions-title {
    margin-top: 10px;
}

.block-search .smile-elasticsuite-autocomplete-result .phrase-suggestions,
.block-search .smile-elasticsuite-autocomplete-result .category-suggestions,
.block-search .smile-elasticsuite-autocomplete-result .brand-suggestions {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.block-search .smile-elasticsuite-autocomplete-result .phrase-suggestions li,
.block-search .smile-elasticsuite-autocomplete-result .category-suggestions li,
.block-search .smile-elasticsuite-autocomplete-result .brand-suggestions li {
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    color: #333333;
}

.block-search .smile-elasticsuite-autocomplete-result .phrase-suggestions li:hover,
.block-search .smile-elasticsuite-autocomplete-result .category-suggestions li:hover,
.block-search .smile-elasticsuite-autocomplete-result .brand-suggestions li:hover {
    background-color: #f0f0f0;
}

.block-search .smile-elasticsuite-autocomplete-result .category-suggestions a:hover {
    color: #333333;
}

.suggestions-button {
    order: 3;
    width: 80%;
    cursor: pointer;
    display: block;
    height: 47px;
    line-height: 47px;
    text-align: center;
    color: #FFF !important;
    font-size: 18px;
    font-weight: 700;
    border: none;
    background-color: #45b74a;
    transition: background 0.25s ease-out;
    border-radius: 6px;
    text-transform: uppercase;
    margin-top: 10px;
}

.aw-item .cs-product-tile:hover {
    z-index: 1000;
}

@media (max-width: 1280px) {
    .block-search .block-content .search-autocomplete .cs-autocomplete .autocomplete-list dd,
    .block-search .block-content .search-autocomplete .cs-autocomplete__item {
        width: 25%;
    }
}

@media (max-width: 1024px) {
    .block-search .block-content .search-autocomplete .cs-autocomplete .autocomplete-list dd,
    .block-search .block-content .search-autocomplete .cs-autocomplete__item {
        width: 25%;
    }

    .block-search .autocomplete-list,
    .suggestions-button {
        width: 70%;
    }

    .block-search .smile-elasticsuite-autocomplete-result .suggestions-container {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .block-search .block-content .search-autocomplete {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }

    .block-search .autocomplete-list {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        order: 2;
    }

    .block-search .smile-elasticsuite-autocomplete-result .suggestions-container {
        width: 100%;
        order: 1;
    }

    .block-search {
        order: 1;
    }

    .block-search .smile-elasticsuite-autocomplete-result {
        flex-direction: column;
    }

    .block-search .block-content .search-autocomplete .cs-autocomplete .autocomplete-list dd,
    .block-search .block-content .search-autocomplete .cs-autocomplete__item {
        flex: 0 0 100%;
        display: flex;
        flex-direction: row;
    }

    .suggestions-button {
        order: 2;
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    body.voyado-header-compact .cs-header__content {
        flex-wrap: nowrap !important; overflow: visible !important;
    }

    body.voyado-header-compact .cs-header,
    body.voyado-header-compact .page-header {
        overflow: visible !important; z-index: 1000;
    }

    body.voyado-header-compact .block-search {
        order: 0; z-index: 1001; margin-right: 0;
    }

    body.voyado-header-compact .cs-header__logo {
        display: none !important;
    }

    body.voyado-header-compact .cs-header-user-nav__item.cs-header-user-nav__item--account.cs-header-user-nav__item--logged-in,
    body.voyado-header-compact .cs-header-user-nav__item.cs-header-user-nav__item--wishlist,
    body.voyado-header-compact .link.wishlist.cs-header-user-nav__item.cs-header-user-nav__item--wishlist {
        display: none !important;
    }

    body.voyado-header-compact .block-search .block-content .search-autocomplete {
        position: fixed !important;
        width: 100% !important;
        max-width: 1200px !important;
        left: 50%;
        transform: translateX(-50%);
        z-index: 6500;
    }
}

.block.block-search {
    transition: margin 260ms ease;
}
