.searchbar {
    height: 2.3rem;
    position: absolute;
    margin-top: 1.1rem;
    overflow: hidden;
    right: 5.5rem;
    white-space: nowrap;
    width: 2rem;
    z-index: 10000;
}

.searchbar.open {
    width: calc(100% - 5.5rem);
}

.searchbar.open.show-advanced, .searchbar.open.hide-advanced{
    overflow: visible;
}
.with-active-cart .searchbar {
    right: 8rem;
}
.with-active-cart .searchbar.open{
    width: calc(100% - 8rem);
}
.searchbar span.search-field.show {
    /* transform: translateX(-19rem); */
    transform: translateX(calc(-100% - 2.6rem));
}
.searchbar span.search-field {
    background-color: white;
    border: 1px solid #6c3f97;
    border-radius: 0.4rem;
    margin-top: 0.1rem;
    position: absolute;
    right: calc(-100% + 2.6rem);
    transition: 0.7s all;
    width: calc(100% - 3rem);
    z-index: 100;
}
.searchbar input.form-control {
    background-color: unset;
    border: 0 none !important;
    border-radius: 0;
    line-height: 1.2rem;
    margin-left: 0;
    width: calc(100% - 6.5rem);
}
.searchbar input.form-control:focus {
    box-shadow: none;
}
.searchbar span.search-field i {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 6.5rem;
    color: gray;
    font-size: 1rem;
    width: 1rem;
    overflow: hidden;
    cursor: pointer;
}
.searchbar span.search-field.has-value i {
    display: block;
}
.searchbar span.search-field .btn {
    background-color: #6c3f97;
    border-radius: 0 0.4rem 0.4rem 0;
    color: white;
    float: none;
    font-size: 0.8rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 6rem;
}
.searchbar>.input-group-text {
    position: absolute;
    top: 0;
    right: 0;
    width: 2rem;
    height: 100%;
    border: 0;
    color: #6c3f97;
    background: white;
    font-size: 1.5rem;
    border-radius: 0;
    display: block;
    padding: 0;
    margin: 0;
    line-height: 2.2rem;
    z-index: 101;
    cursor: pointer;
}
.searchbar>.input-group-text.running, .searchbar button#advanced-options.running {
    cursor: default;
}
.searchbar>.input-group-text.running i, .searchbar button#advanced-options.running {
    opacity: 0.4;
}
.searchbar.open.show-advanced>ul.advanced-search-options {
    opacity: 1;
    /* transform: translateX(-89.3rem); */
    /*transform: translateX(calc(100% + 6.5rem));*/
}
.with-active-cart .searchbar>ul.advanced-search-options{
    right: -7.7rem;
    /* transform: translateX(-86.3rem); */
}
.searchbar>ul.advanced-search-options {
    opacity: 0;
    position: absolute;
    /* min-width: 14rem; */
    background-color: white;
    right: -5.2rem;
    border: 1px solid;
    white-space: nowrap;
    margin: 0;
    padding: 0.5rem;
    top: 3rem;
    transition: 0.7s all;
}
.searchbar>ul.advanced-search-options > li {
    white-space: nowrap;
    margin: 0;
    padding: 0 1rem;
    list-style: none outside none;
    line-height: 3rem;
}
.searchbar>ul.advanced-search-options>li>label {
    display: block;
    cursor: pointer;
}
.searchbar>ul.advanced-search-options>li>label[data-count]::after{
    content: "(" attr(data-count) ")";
    padding-left: 0.3rem;
}
.searchbar>ul.advanced-search-options>li:hover {
    background-color: rgba(0, 0, 0, 0.125);
}
.searchbar>ul.advanced-search-options > li input[type="checkbox"] {
    margin-right: 0.7rem;
}
.searchbar>ul.advanced-search-options > li.active-option {
    border-top: 1px solid;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}
ul#search-results span.listing-details em {
    font-style: normal;
    background-color: yellow;
}

.has-search-results #main-content{
    display: none;
}

#search-result-content {
    display: none;
    margin: -1.8rem 0rem 0;
}

.has-search-results #search-result-content{
    display: block;
}

#search-result-content>h3 {
    line-height: 3rem;
    padding: 1.4rem 0 2rem;
    font-family: inherit;
    font-weight: normal;
}

#search-result-content>h3.fa::before {
    font-family: 'FontAwesome';
    padding-right: 0.5rem;
    font-size: 2rem;
}

#search-result-content>h3>.btn{
    float:right;
    margin-top: 0.9rem;
}

#search-result-content>h3>.button-group {
    float: right;
    padding-bottom: 1rem;
    position: relative;
    z-index: 100;
}
#search-result-content>h3>.button-group>.btn:hover {
    opacity: 0.7;
}
#search-result-content>h3>.button-group>.btn {
    margin-top: 0.4rem;
    color: #6c3f97;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    display: block;
    border-bottom: 1px dotted;
    text-align: right;
    padding: 0.2rem 1.5rem 0.2rem 0.6rem;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: 1.2rem;
    position: relative;
    transition: opacity 0.5s;
}

#search-result-content>h3>.button-group>.btn:first-child {
    border-top: 1px dotted;
    margin-top: -0.3rem;
}
#search-result-content>h3>.button-group>.btn::before {
    font-family: 'FontAwesome';
    position: absolute;
    right: 0;
}

#search-result-content>h3>span.caption {
    font-size: 1rem;
    margin-left: 1rem;
    position: relative;
    top: -0.2rem;
}

#search-result-content>h3[data-results]::after {
    content: attr(data-results);
    font-size: 1rem;
    margin-left: 1rem;
    position: relative;
    top: -0.2rem;
}

ul.search-results-style {
    display: block;
    list-style: none outside none;
    margin: 0;
    padding: 0;
}

ul.search-results-style>li {
    border: 1px solid;
    cursor: default;
    display: table;
    line-height: 2rem;
    list-style: none outside none;
    margin: 1rem 0;
    padding: 0.5rem;
    width: 100%;
}

ul.search-results-style>li:first-child {
    margin-top: 0;
}

ul.search-results-style>li>span.listing-details {
    padding-right: 1rem;
}

ul.search-results-style>li>menu {
    border-left: 1px solid;
    display: table-cell;
    list-style: none outside none;
    padding: 0 0.5rem 0 1rem;
    text-align: left;
    vertical-align: middle;
    width: 10rem;
}

ul.search-results-style>li>menu>li {
    clear: both;
    display: block;
    font-size: 1rem;
    line-height: normal;
    list-style: none outside none;
    padding-bottom: 0.2rem;
}

ul.search-results-style>li>menu>li.qty {
    padding-top: 0.5rem;
    white-space: nowrap;
    line-height: 2rem;
    border-top: 1px solid;
}

ul.search-results-style>li>menu>li>output {
    float: right;
    text-align: right;
}

ul.search-results-style>li>menu>li.qty>select.form-select {
    float: right;
    font-size: 1rem;
    line-height: normal;
    width: auto;
}

ul.search-results-style>li>menu>li.in-cart {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 500;
    padding-top: 0.5rem;
    text-align: center;
}

ul.search-results-style>li>.img-holder-td{
    display: table-cell;
    padding-left: 0;
    width: 80px;
}

ul.search-results-style>li>.img-holder-td>.img-holder {
    transition: 0.7s all;
}

ul.search-results-style>li>.img-holder-td>.img-holder>img {
    margin: 0 5px 0 0;
    transition: 0.7s all;
}

ul.search-results-style>li>.img-holder-td:hover>.img-holder>img {
    opacity: 0.4;
}

ul.search-results-style>li>span {
    display: table-cell;
    font-size: 1rem;
    line-height: 1.2rem;
    padding-left: 5px;
    vertical-align: middle;
}

ul.search-results-style span.listing-details em {
    font-style: normal;
    background-color: yellow;
}

.img-holder figcaption {
    display: none;
}


@media (max-width: 890px ) {
    .searchbar{
        right: 3.5rem;
    }
    .searchbar.open{
        width: calc(100% - 3.5rem);
    }
    .with-active-cart .searchbar{
        right: 6rem;
    }
    .with-active-cart .searchbar.open{
        width: calc(100% - 6rem);
    }
    .searchbar>ul.advanced-search-options{
        right: -3.2rem;
        /* transform: translateX(-96.8rem); */
    }
    .with-active-cart .searchbar>ul.advanced-search-options{
        right: -5.7rem;
        /* transform: translateX(-94.3rem); */
    }
}

@media (max-width: 620px) {
    #search-result-content>h3, #formbox h1{
        font-size: 2rem !important;
    }
    #search-result-content>h3>span.caption, #search-result-content>h3[data-results]::after {    
        display: block;
        margin-left: 0.2rem;
        top: 0.1rem;
    }
}