﻿#elastic-results {
    position: absolute;
    z-index: 10002;
    top: 47px;
    left: 20px;
    overflow: hidden;
    width: calc(100% - 40px);
    height: auto;
    background: #fff;
    border-radius: 0 0 3px 3px;
    max-height: 450px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .15);
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #9768B6 #fff;
}

.elastic-search-item {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid #eee;
    background: #fff;
    cursor: pointer;
}


.elastic-search-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    text-align: left;
}

.elastic-search-item .title {
    margin: 0 0 7px;
    font-size: 15px;
    color: #444;
}


.add-to-cart-btn {
    background: #a259c7;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 20px;
    transition: background 0.2s;
}

    .add-to-cart-btn:hover {
        background: #7c3bbf;
    }

.elastic-search-item.selected {
    background: #f6f6f6;
}


.elastic-search-item .img-block {
    float: left;
    width: 60px;
    height: 60px;
    border: 1px solid #eee;
    border-radius: 3px;
    overflow: hidden;
    background-color: #fff;
}


.elastic-search-details .price-and-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

    .elastic-search-details .price-and-cart .prices {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .elastic-search-details .price-and-cart .add-to-cart {
        flex-shrink: 0;
    }


.elastic-search-item .item-box {
    width: auto;
    margin: 0;
    margin-left: 0;
    border: 0;
    background-color: transparent;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}

.search-in-category-checkbox {
    content: "";
    display: inline-block;
    margin-right: 10px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1px solid #e7e7e7;
    vertical-align: text-top;
    background-color: #fff;
    position: unset;
}

#elastic-results .search-in-category {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid #eee;
    background: #fff;
    justify-content: left;
}

.search-in-category label {
    font-size: 15px;
    color: #444;
}

.search-box form {
    padding: 0px;
}

#small-search-box-form {
    border: 1px solid #9768B6;
    border-radius: 1000px;
    margin: 20px 20px 0 20px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

.search-page #small-search-box-form {
    width: 100%;
    margin: 0px;
}

#small-searchterms {
    border-radius: 1000px;
    display: flex;
    align-items: center;
    border-radius: 1000px;
    border: none;
}

.search-box .search-box-button, .search-box .search-box-button {
    float: left;
    width: 35px;
    height: 35px;
    padding: 0;
    font-size: 0;
    background-color: #9768B6;
    border-radius: 1000px;
    border: none;
}

.elastic-search-details .add-to-cart .button-1::before {
    display: inline-block;
    font-family: "emporium-icons";
    font-size: 20px;
    color: #9768B6;
    content: "\64";
}

.elastic-search-details .add-to-cart .button-1 {
    height: 45px;
    background-color: unset;
    text-transform: none;
}

.form-fields .basic-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.search-page .search-input form button {
    width: 35px;
    height: 35px;
}

.advanced-search {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-top: 0px;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
}

    .advanced-search > .inputs {
        margin-top: 10px;
        width: 100%;
    }

.advanced-search inputs{
    padding: 30px 20px;
}

.search-page .advanced-search select {
    border: 1px solid #9768B6;
    border-radius: 1000px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

#small-search-box-form .search-text {
    width: calc(100% - 45px);
    padding: 0 5px 0 15px;
}

.basic-search {
    padding: 0 20px 20px;
}

.search-page .search-input .fieldset {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.search-page .form-fields {
    width: 100%;
}

.basic-search > .inputs {
    max-width: none;
}

#elastic-results .no-results {
    font-size: small;
    font-weight: 300;
    color: #8c8c8c;
    user-select: none;
    cursor: pointer;
}

@media (min-width: 480px) {
    .advanced-search {
        flex-direction: row;
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .search-page .search-input form {
         padding: 30px 0;
    }

    .search-page .search-input .form-fields {
        width: 80%;
        max-width: 800px;
    }
}

@media all and (min-width: 1024px) {
    .search-box #small-search-box-form {
        width: 100%;
    }

    .advanced-search {
        flex-direction: row;
    }

    #elastic-results {
        top: 47px;
        height: auto;
        width: calc(100% - 47px);
        overflow-y: visible;
        max-height: none;
        padding: 0px 20px;
        margin-top: 1px;
        box-shadow: 0 0 15px rgba(0, 0, 0, .15);
        max-height: 650px;
    }

    #small-search-box-form {
        margin: 0px;
    }
}

@media all and (min-width: 1281px) {
    .elastic-search-item .add-to-cart .button-1 {
        max-width: 180px;
    }
}

@media all and (min-width: 1601px) {
    .elastic-search-item .add-to-cart .button-1 {
        max-width: none;
    }

    .elastic-search-details {
        margin-left: 30px;
    }
}

@media all and (min-width:1601px) {
    .header-lower .search-box {
        width: 40%;
    }
}