#topsearchelastic_widget {
    display: inline-block;
    float: right;
    position: relative;
    z-index: 101;
}

@media (min-width:1024px) {
    #topsearchelastic_widget.active {
        position: absolute;
        width: 820px;
        top: -25px;
        left: -500px;
    }
    #header #header-topline #topsearchelastic_widget.active #top-search .search-box input {
        width: 820px;
    }
}

#topsearchelastic_widget form {
    position: relative
}

#topsearchelastic_widget form input[type=text] {
    padding: 10px;
    min-width: 255px;
    color: #7a7a7a;
    border: 1px solid rgba(0, 0, 0, .25)
}

#topsearchelastic_widget form input[type=text]:focus {
    outline: 3px solid #2fb5d2;
    color: #232323;
    background: #fff
}

#topsearchelastic_widget form input[type=text]:focus + button .search {
    color: #2fb5d2
}

#topsearchelastic_widget form button[type=submit] {
    position: absolute;
    background: none;
    border: none;
    color: #7a7a7a
}

#topsearchelastic_widget form button[type=submit] .search:hover {
    color: #2fb5d2
}

.header-top #topsearchelastic_widget form input[type=text] {
    min-width: inherit;
    width: 100%
}

#checkout #search_widget {
    display: none
}

#pagenotfound .page-content #search_widget {
    width: 100%
}

.page-not-found #topsearchelastic_widget form {
    display: inline-block
}

@media (max-width: 767px) {
    .header-top #topsearchelastic_widget {
        float: none
    }

    .header-top #topsearchelastic_widget form {
        margin: 0 auto
    }

    .header-top #topsearchelastic_widget form input[type=text] {
        min-width: inherit;
        background: #fff
    }
}

@media (min-width: 768px) {
    #topsearchelastic_widget {
        min-width: 15.63rem
    }
}


#topsearchelastic_result {
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #bbb;
    border: none;
    margin-top: 0px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    box-sizing: border-box;
    /* font: 400 13px Roboto; */
    font-family: Nunito Sans,sans-serif;
    /* color: #344; */
    position: absolute;
    -webkit-box-shadow: 0px 0px 3px 0px rgba(34, 51, 51, 0.75);
    -moz-box-shadow: 0px 0px 3px 0px rgba(34, 51, 51, 0.75);
    box-shadow: none;
    display: none;
    z-index: 100;
    right: 0;
}

#topsearchelastic_result_left {
    box-sizing: border-box;
    border-right: 1px solid #ccc;
    margin-right: -0.5px;
}

#topsearchelastic_result_right {
    box-sizing: border-box;
    border-left: 1px solid #ccc;
    margin-left: -0.5px;
}

#topsearchelastic_result .col-xs-12 {
    overflow: hidden;
}


.topsearchelastic_item {
    cursor: pointer;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.topsearchelastic_item img {
    float: left;
    margin-right:10px;
    width:3em
}

#topsearchelastic_result .results_header {
    width: 100%;
    line-height: 20px;
    text-align: left;
    font-size: 14px;
    margin-bottom: 10px;
    margin-top: 10px;
    color: #707070;
    background: white;
    font-weight: 600;
}
#topsearchelastic_result .results_header span{
    background: white;
    padding-right: 10px;
}

#topsearchelastic_result .line{
    border-top: 1px solid #f2f2f2;
    width: auto;
    width: 100%;
    margin-top: -10px;
    height: 14px;
}

#category_results .topsearchelastic_item {
    text-decoration: none;
    align-items: center;
    justify-content: center;
    color: #000;
    border: 1px solid #f2f2f2;
    padding: 5px 10px 5px 5px;
    border-radius: 10px;
    transition: border 0.5s ease;
    font-family: poleno,sans-serif;
    font-weight: 500;
    font-style: normal;
    width: auto;
    margin-bottom: 5px;
    margin-right: 5px;
    float: left;
}
#category_results a.topsearchelastic_item:hover {
    border-color: #000;
}

#suggestion_results .topsearchelastic_item {
    padding: 0 9px;
    background: black;
    border-radius: 25px;
    float: left;
    color: white;
    margin-bottom: 5px;
    margin-right: 5px;
    line-height: 25px;
    font-size: 14px;
    width: auto;
}

#category_results .topsearchelastic_item b {
    color: #000;
    font-family: poleno,sans-serif;
    font-weight: 500;
    font-style: normal;
}

#category_results .topsearchelastic_item.active{

}

#suggestion_results .topsearchelastic_item b {
    color: white;
}

#suggestion_results .topsearchelastic_item.active {
    background: #222222;
}

#product_results .topsearchelastic_item.active {
}

#product_results {
    margin-bottom: 20px;
}

#product_results .productRow{
    overflow: hidden;
}

#product_results .topsearchelastic_item {
    font-size: 16px;
    margin-top: 10px;
    display: block;
    line-height: 16px;
    position: relative;
    padding-right: 90px;
}

#product_results .topsearchelastic_item:last-child {
    border: 0
}

#product_results a:hover {
    text-decoration: none;
}

#product_results .product .name {
    padding-top: 10px;
    display: block;
    padding-bottom: 5px;
    padding-right: 40px;
}

#product_results .product .price {
    font-size: 16px;
    position: absolute;
    bottom: 2px;
    right: 95px;
}

#product_results .product .custom_text {
    background-color: #06af00;
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    line-height: 15px;
    border-radius: 20px;
    font-size: 11px;
    color: white;
    cursor: default;
    font-weight: bold;
    padding: 2px 10px;
    width: fit-content;
}
#product_results .product .quantity {
    color: #06af00;
    font-size: 12px;
}

#product_results .product .quantity.red {
    color: red;
}

#topsearchelastic_overlay{
    position: fixed;
    display: none;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    background: rgba(0,0,0,.4);
    z-index: 100;
}

.blur{
    filter: blur(2px);
    -webkit-filter: blur(2px);
    -moz-filter: blur(2px);
    -o-filter: blur(2px);
    -ms-filter: blur(2px);
}

#topsearchelastic_widget.active #topsearchelastic_overlay{
    display: block;
}

#topsearchelastic_widget.active #topsearchelastic_input{
    background-color: #fff !important;
    /* no bottom radius */
    border-radius: 20px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    font-weight: bold !important;
    color: black !important;
    font-size: 16px !important;
}

#noresults{
    padding: 10px;
}

#topsearchelastic_showall{
    font-weight: bold !important;
    text-decoration: underline !important;
    font-size: 14px !important;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    width: 100%;
    clear: both;
    padding-top: 20px;
}

#topsearchelastic_widget .add_to_cart{
    display: block;
    background-repeat: no-repeat;
    width: 40px !important;
    background-color: #fde500;
    background-image: url(https://jetovpytli.nodehub.cz/themes/jtvp/assets/img/button-buy.svg);
    height: 40px;
    border-radius: 40px;
    margin-top: -42px;
    position: relative;
    z-index: 100;
    margin-right: 40px;
    float: right;
    background-position: center;
    cursor: pointer;
}
#topsearchelastic_widget .add_to_cart.grey{
    opacity: 0.25;
    pointer-events: none;
}

#topsearchelastic_widget .product{
    width: 50%;
    float: left;
    margin-bottom: 10px;
}

@media (max-width:1024px) {
    #topsearchelastic_result_left,
    #topsearchelastic_result_right {
        float: none;
        border: none;
        margin: 0;
        padding: 0;
    }

    #topsearchelastic_result {
        max-height: none;
        padding: 0;
        padding-left: 10px;
    }
    #topsearchelastic_widget .product {
        width: 100%;
    }
}