/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_Search
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/LICENSE.txt
 */

 @media only screen and (max-width: 600px) {
    .minisearch .search-category {
        top: 65% !important;
        right: 15px !important;
        height: 32px;
    }
}

.search-autocomplete {
    display: none !important;
}

#autocomplete-list {
    width: 100% !important;
}

#autocomplete-list .icon-no-result {
    top: 14px;
    left: 8px;
}

.autocomplete-suggestions {
    border: 1px solid #bbbbbb;
    background: #ffffff;
    cursor: default;
    border-top: none;
    height: auto;
    overflow: auto;
    width: 100%;
    margin-top: 1px;
    max-height: 510px;
    z-index: 999;
    position: absolute;
}

.autocomplete-suggestion {
    overflow: hidden;
    padding: 10px 5px 10px 5px;
    font-size: 1.2em;
    border-bottom: 1px solid #eeeeee;
    border-left: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    position: relative;

    &:last-child {
        border-bottom: none;
    }
}

.autocomplete-suggestion .mps-product-details {
    width: 93%;
    display: flex;
    align-items: center;
}

.search-category, #mpsearch-category {
    height: 100%;
    width: 100%;
}

#mpsearch-category {
    border-right: 1px solid #6b7280;
}

.autocomplete-selected {
    background: #f1f1f1;
}

input#searchauto {
    border: 1px solid #bbbbbb;
    border-radius: 2px;
    width: 375px;
}

.suggestion-left {
    float: left;
    width: 15%;
    cursor: pointer;
}

.suggestion-right {
    width: 75%;
    padding-left: 10px;
    text-align: left;
    color: black;
    float: left;
}

.product-name {
    cursor: pointer;
    font-size: 14px;
    color: #333333;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    white-space: nowrap;
}

.product-des {
    font-size: 12px;
    margin-bottom: 5px;

    p {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.autocomplete-suggestions.three-columns .product-des p {
    white-space: nowrap;
}

.product-line {
    margin-bottom: 5px;
}

.product-reviews-summary {
    width: 100%;
    float: left;
    margin-bottom: 5px;
}

.rating-summary {
    margin: 0 4px 0 0;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    float: left;
}

.rating-summary svg {
    display: unset !important;
}

.rating-result {
    width: 100px;
    position: relative;
    z-index: 1;
    height: 20px;
    letter-spacing: 2px;
    background: url("images/rating_gray.svg");
}

.rating-result span {
    position: absolute;
    height: 20px;
    left: 0;
    top: -1px;
    z-index: 2;
    background: url("images/rating.svg");
}

.reviews-actions {
    font-size: 14px;
    float: left;
    width: 70px;
}

.reviews-actions a {
    color: #006bb4;
}

.product-sku {
    font-size: 14px;
    display: inline-block;
}

ul#ui-id-1 {
    font-family: inherit;
    padding: 0;
    border-bottom: none;
}

p.short-des {
    margin: 0;
    font-size: 0.9em;
    color: #aaaaaa;
}

.tooltip-short-des {
    display: none;
    position: absolute;
    background-color: #DEDEDF;
    padding: 10px;
    border-radius: 5px;
    z-index: 99999;
    width: 300px;
}

p.short-des:hover + .tooltip-short-des {
    display: block;
}

#view_all {
    text-align: center;
    background: #eff4f7;
    cursor: pointer;
}

#search_mini_form {
    position: relative;
    display: block;
}

@media only screen and (min-width: 768px) {
    .block-search {
        z-index: 4 !important;
        padding-left: 140px !important;
    }
}

#algoliaAutocomplete-hyva {
    width: 100% !important;
    position: relative;
    float: unset;
}

.ais-SearchBox-submit, .ais-SearchBox-reset {
    display: none !important;
}

/*style.css*/
.autocomplete-suggestions.two-columns {
    transition: width 1s ease, opacity 1s ease;
    opacity: 1;
}

@media only screen and (max-width: 480px) {
    .block-search input {
        width: 93%;
    }

    .minisearch .search-category {
        right: 20px !important;
    }
}

@media only screen and (max-width: 400px) {
    .tooltip-short-des {
        width: 200px;
    }
}

@media only screen and (max-width: 768px) {
    .autocomplete-suggestions {
        z-index: 99 !important;
        max-height: 457px !important;
        left: 0;
        border-radius: 0 0 10px 10px;
        border: none !important;
    }

    .autocomplete-suggestion {
        padding-left: 20px;
    }

    #search_mini_form {
        position: unset;
    }

    #search-content .container {
        background-color: #fff;
        position: relative;
        z-index: 10003;
        border-radius: 10px 10px 0 0;
        padding: 15px !important;
        width: 95%;
    }

    .block-search input {
        width: 96%;
        margin: 15px;
    }

    .minisearch.active .search-category {
        display: block !important;
    }


    .trending-title {
        padding-left: 20px;
    }

    .mp-search-trending {
        padding-left: 20px;
    }

    .suggestions-title {
        padding-left: 20px;
    }

    .no-result-suggestion {
        padding: 15px 0 15px 25px !important;
        text-align: center;
        width: 150px;
        margin: auto;
        position: relative;
    }

    .icon-no-result {
        left: 0;
    }

    #bio_ep_bg_search {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000;
        opacity: 0.3;
        z-index: 10001;
    }

    #header.z-30 {
        z-index: unset !important;
    }

    .z-10 {
        z-index: unset !important;
    }

    .autocomplete-suggestions .product-des p {
        white-space: unset !important;
    }

    .tooltip-short-des {
        display: none !important;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    #search_mini_form.two-columns {
        width: 532px !important;
    }

    .autocomplete-suggestions.two-columns {
        display: flex;
        flex-wrap: wrap;
        width: 530px !important;
    }

    .autocomplete-suggestions {
        max-height: 408px !important;
    }

    .autocomplete-suggestions.two-columns .autocomplete-suggestion {
        width: 50% !important;
    }

    .mp-search .minisearch .actions {
        right: 125px;
        top: 0;
    }
}

@media only screen and (min-width: 1025px) {
    #search_mini_form.two-columns {
        width: 564px !important;
    }

    .autocomplete-suggestions {
        max-height: 408px !important;
    }

    .autocomplete-suggestions.two-columns {
        display: flex;
        flex-wrap: wrap;
        width: 562px !important;
    }

    .autocomplete-suggestions.two-columns .autocomplete-suggestion {
        width: 50% !important;
    }

    .mp-search .minisearch .actions {
        right: 125px;
        top: 0;
    }
}

.highlight {
    background-color: #eab308;
    font-weight: bold;
}

.autocomplete-suggestions.three-columns {
    display: flex;
    flex-wrap: wrap;
}

.mp-search .minisearch .actions {
    right: 125px;
    top: 0;
}

.autocomplete-suggestions.three-columns .autocomplete-suggestion {
    width: 100%;
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .autocomplete-suggestions.three-columns .autocomplete-suggestion {
        width: 50%;
    }
}

@media only screen and (min-width: 1025px) {
    .autocomplete-suggestions.three-columns .autocomplete-suggestion {
        width: 33%;
    }
}

.dropdown-toggle {
    padding: 11px 25px 10px 5px;
}

.dropdown-toggle:after {
    right: 10px;
    top: 18px;
}

/* SearchBox */
.ais-SearchBox-submit, .ais-SearchBox-reset {
    background: transparent;
    border: none;
    position: absolute;
    right: 0;
    bottom: 0;
}

.ais-SearchBox-submit:hover, .ais-SearchBox-submit:focus {
    background: transparent;
    border: none;
}

.ais-SearchBox-form {
    position: relative;
}


button.ais-SearchBox-reset:focus,
button.ais-SearchBox-reset:active,
button.ais-SearchBox-reset:hover {
    border: 0;
    background: transparent;
}

input.ais-SearchBox-input {
    padding-right: 2em;
    width: 100%;
}

.mpsearch-list {
    display: flex;
    flex-wrap: wrap;
}

.mp-suggestion .mpsearch-list-item {
    width: 50%;
    position: relative;
}

.mpsearch-list-item:last-child {
    border-bottom: none;
}

.mpsearch-list-item:hover {
    background-color: #eef3d6;
}

.result-wrapper .before_special {
    color: #aaaaaa;
    text-decoration: line-through;
    font-size: 12px;
}

.no-result-suggestion {
    padding: 15px 0 15px 40px;
}

@media all and (min-width: 769px), print {
    .autocomplete-suggestions {
        position: absolute;
        z-index: 999;
    }
}

@media all and (max-width: 768px), print {
    .minisearch .search-category {
        top: 20% !important;
        right: 15px !important;
        width: 30% !important;
        height: 45px;
        display: block !important;
    }
}

@media all and (min-width: 600px), print {
    .algolia-search-block {
        width: 374px;
    }
}

.autocomplete-suggestions .result-content .result-sub-content .name {
    font-size: 1.2em;
}

.autocomplete-suggestions .result-content .result-sub-content .name mark {
    font-weight: bold;
    background: none;
}

.w-full.leading-normal.transition.appearance-none.text-grey-800.flex.flex-col.mt-1 {
    display: none;
}