/* block top search */


#search_block_top form#searchbox {
    display: inline-flex;
    /*position: absolute;*/
    top: 0px;
    left: 407px;
    width: 516px;
    height: 55px;
    font-size: 16px;

    box-shadow: 0 0 4px rgba(0, 0, 0, 0.14);
    border-radius: 5px;

    border-color: #A4A4A4;
    border-width: 1px;
    border-style: solid;
    box-sizing: border-box;
    overflow: hidden;
}

#search_block_top form#searchbox #search-icon-label {
    display: flex;
    align-items: center;
}

#search_block_top form#searchbox #search-icon-label img.search-icon {
    margin-left: 13px;
    margin-right: 13px;
}

#search_block_top form#searchbox img.search-icon {
    float: none;
    width: 20px;
    height: 20px;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20.268' height='20.021' viewBox='0 0 20.268 20.021'%3E%3Cpath id='if_Find01_928435' d='M31.423,28.668l-6.2-6.2a7.384,7.384,0,1,0-2.038,2.138l6.15,6.15a1.476,1.476,0,1,0,2.088-2.088Zm-12.454-5.13a4.99,4.99,0,1,1,4.989-4.989A4.99,4.99,0,0,1,18.969,23.537Z' transform='translate(-11.588 -11.166)' fill='%23848484'/%3E%3C/svg%3E%0A");
}

#search_block_top form#searchbox input.search_query {
    padding: 13px 26px 13px 0px;
    border: none;
    display: flex;
}

#search_block_top form#searchbox input.search_query:placeholder-shown {
    text-overflow: ellipsis;
}

#search_block_top form#searchbox #search-btn-cont {
    display: flex;
    box-sizing: border-box;
}

#search_block_top form#searchbox input.search_query:placeholder-shown {
    text-overflow: ellipsis;
}

#search_block_top form#searchbox .button {
    position: relative;
    display: inline-block;
    background-color: white;
    color: #848484;

    width: 47px;

    border: none;
    cursor: pointer;

    padding-left: 12px;
}

#search_block_top form#searchbox .button-red {
    display: block;
    background-color: rgb(210,12,15);
    color: #ffffff;

    cursor: pointer;
    margin: 4.5px 4px;
    border: none;
}

#search_block_top form#searchbox .button-red.button-bold {
    font-weight: bold;
}

#search_block_top form#searchbox .button::before {
    content: ' ';
    width: 1px;
    height: 32px;
    background-color: #D3D3D3;
    position: absolute;
    left: 0;
    top: 8px;
}


@media screen and (max-width: 1280px) {

    #search_block_top form#searchbox .search-bar-image {
        display: none;
    }
}

.ac_results {
    width: 518px!important;
    border: none!important;
    border-radius: 4px;
    display: block;
    margin-left: -47px;
    margin-top: 1px;
}

.ac_results_sticky {
    opacity: 0;
}

.ac_results::before {
    content: ' ';
    width: 0;
    height: 0;
    position: absolute;
    top: 0px;
    left: 22px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 11px solid #E3E3E3;
}

.ac_results::after {
    content: ' ';
    width: 0;
    height: 0;
    position: absolute;
    top: 2px;
    left: 22px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 11px solid white;
}

.ac_results.ac-arrow-center::before,
.ac_results.ac-arrow-center::after {
    left: 50%;
    margin-left: -9px;
}

.ac_results > ul {
    width: auto;
    margin-top: 10px;
    border: 1px solid #E3E3E3;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.16);
    padding-top: 4px;
    padding-bottom: 4px;
}

.ac_results > ul li .name,
.ac_results > ul li .cat {
    font-family: 'Noto Sans', sans-serif;
    font-family: var(--content-font-family), sans-serif;
    margin: 0!important;
    display: block;
    width: 426px;
}

.ac_results li .right {
    float: none;
    width: auto;
    margin: 0;
    vertical-align: middle;
    display: inline-block;
    line-height: normal;
}

.ac_results li {
    height: 91px;
    cursor: pointer;
    border-bottom-color: #D3D3D3;
}

.ac_results li:last-child {
    border-bottom: none;
}

.ac_results li img {
    height: 91px;
    object-fit: contain;
    object-position: center;
    float: none;
    vertical-align: middle;
}

.ac_results .ac_over {
    background-color: #f9f9f9;
}

.ac_results.ac_results_ab {

}

.search-results {
    font-family: 'Noto Sans', sans-serif;
    font-family: var(--content-font-family), sans-serif;
    font-size: 14px;
    padding: 16px 25px;
    line-height: normal;

    margin-top: 10px;
    border: 1px solid #E3E3E3;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.16);
    background-color: white;
}

.search-results {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin; /* firefox only, using ::-webkit-scrollbar for chrome */
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border-radius: 4px;
}

.search-results .divider {
    font-weight: bold;
    overflow: hidden;

    margin-bottom: 16px;
    white-space: nowrap;
}

.search-results .divider > span::after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 1px;
    background-color: #D3D3D3;
    margin-left: 16px;
}

.search-results .result-list {
    margin-bottom: 16px;
}

.search-results .result-item {
    display: flex;
    justify-content: left;
    align-items: center;
    margin-bottom: 6px;
    /*min-height: 36px;*/
}

.search-results a:hover {
    text-decoration: none;
}

.search-results .result-item .result-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-right: 4px;
}

.search-results .result-item .result-img > img {
    max-width: 100%;
    max-height: 100%;
}

.search-results .result-item .result-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results .result-item.selected .result-name,
.search-results .result-item:hover .result-name {
    text-decoration: underline;
}

.search-results .result-note {
    flex-grow: 1;
    text-align: right;
    min-width: 70px;
    color: #989898;
}

.search-results .show-all-results {
    color: #00265e;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 16px;
    display: block;
    text-align: center;
}

.search-results .columns {
    display: flex;
    /*column-gap: 24px;*/
}

.search-results .columns > div {
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    margin: 0 12px;
}

.search-results .columns > div:first-child {
    margin-left: 0;
}

.search-results .columns > div:last-child {
    margin-right: 0;
}

.search-results .result-item-old {
    display: flex;
    height: 98px;
    padding: 4px 5px;
    margin-left: 5px;
    border-bottom: 1px solid #d3d3d3;
    width: 405px;
}

.search-results .result-item-old:last-child {
    border: none;
}

.search-results .result-item-old.selected,
.search-results .result-item-old:hover {
    background-color: #f9f9f9;
}

.search-results .result-item-old .result-img {
    margin-right: 10px;
}

.search-results .result-item-old .result-img img {
    width: 65px;
    height: 91px;
    object-fit: contain;
    object-position: center;
    padding-top: 4px;
}

.search-results .result-item-old .result-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.search-results .result-item-old .result-category {
    font-style: italic;
    color: #808080;
    font-size: 12px;
}

.ac_results .product-type-search-badge {
    font-family: 'Montserrat', sans-serif;
    font-family: var(--headings-font-family), sans-serif;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    padding-left: 7px;
    padding-right: 7px;
    margin-top: 5px;
    height: 23px;
    line-height: 23px;
    color: #CCFFBA;
    background-color: #40AE12;
    border: 1px solid #278500;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
}

.ac_results .search-results .result-item .product-type-search-badge {
    margin-left: 8px;
    margin-top: 0;
    flex-shrink: 0;
}

.ac_results .product-type-search-badge.free_shipping {
    color: #CCFFBA;
    background-color: #40ae12;
    border-color: #278500;
}

.ac_results .product-type-search-badge.e-book {
    color: #f8dfff;
    background-color: #7e00a2;
    border-color: #530066;
}

.ac_results .product-type-search-badge.audiobook {
    color: #cafffa;
    background-color: #009789;
    border-color: #00776c;
}

.ac_results .product-type-search-badge.variant {
    color: #ffd5d5;
    background-color: #d20000;
    border-color: #a40405;
}

.ac_results .product-type-search-badge.cd {
    color: #ffefbb;
    background-color: #a28700;
    border-color: #7d6900;
}

 .search-bar-image {
    background-size: cover;
    box-sizing: content-box;
    width: 100%;
    height: 100%;
    max-width: 119px;
    margin-right: -15px;
    object-fit: cover;
    object-position: left;
}

.search-bar-image.christmas {
    background-image: url(/themes/mk2/img/search_christmas.svg);
}

.search-bar-image.christmas-2024 {
    background-image: url(/themes/mk2/img/search_christmas_2024.webp);
}

.search-bar-image.beach {
    background-image: url(/themes/mk2/img/search_beach.png);
    max-width: 98px;
}

.search-bar-image.beach2 {
    margin-right: -5px;
    background-image: url(/themes/mk2/img/search_beach2.svg);
}

.search-bar-image.autumn {
    background-image: url(/themes/mk2/img/search_autumn.png);
}

.search-bar-image.mikulas {
    background-image: url(/themes/mk2/img/search_mikulas.png);
    margin-right: -35px;
}

.search-bar-image.winter {
    background-image: url(/themes/mk2/img/search_winter.svg);
    margin-top: 2.5px;
}

.search-bar-image.spring {
    background-image: url(/themes/mk2/img/search_spring.svg);
    max-width: 100px;
}

.search-bar-image.halloween {
    background-image: url(/themes/mk2/img/search_halloween.png);
    background-repeat: no-repeat;
    background-position: 0;
    width: 200px;
}

/* <ESH-2706 black friday> */

.search-bar-image.black-friday {
    background-image: url(/themes/mk2/img/search_black_friday.webp);
    background-repeat: no-repeat;
}

/* </ESH-2706 black friday> */

@media screen and (max-width: 1280px) {
    .search-bar-image {
        display: none;
    }
}

@media screen and (max-width: 1280px) {
/*
    #search_block_top form#searchbox {
        right: 304px;
    }

    #search_block_top form#searchbox input.search_query {
        width: 230px;
    }

    .ac_results {
        top: 75px!important;
    }
*/
    #search_block_top form#searchbox {
        left: 325px;
        width: 331px;
    }
}

/* Block search ribbons */

.search-results .ribbons {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    gap: 4px;
}

.search-results .ribbons > .ribbon {
    font-family: 'Montserrat', sans-serif;
    font-family: var(--headings-font-family), sans-serif;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    padding: 0 7px;
    line-height: 19px;
    color: #CCFFBA;
    background-color: #40AE12;
    border: 1px solid #278500;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

.search-results .ribbons > .ribbon:nth-child(n + 5) {
    display: none;
}

.search-results .ribbons > .ribbon.free_shipping {
    color: #CCFFBA;
    background-color: #40ae12;
    border-color: #278500;
}

.search-results .ribbons > .ribbon.free_shipping::after {
    background-image: url('/img/svg/free_shipping_ribbon_end.svg');
}

.search-results .ribbons > .ribbon.e-book {
    color: #f8dfff;
    background-color: #7e00a2;
    border-color: #530066;
}

.search-results .ribbons > .ribbon.e-book::after {
    background-image: url('/img/svg/e_book_ribbon_end.svg');
}

.search-results .ribbons > .ribbon.audiobook {
    color: #cafffa;
    background-color: #009789;
    border-color: #00776c;
}

.search-results .ribbons > .ribbon.audiobook::after {
    background-image: url('/img/svg/audio_book_ribbon_end.svg');
}

.search-results .ribbons > .ribbon.variant {
    color: #ffd5d5;
    background-color: #d20000;
    border-color: #a40405;
}

.search-results .ribbons > .ribbon.variant::after {
    background-image: url('/img/svg/variant_ribbon_end.svg');
}

.search-results .ribbons > .ribbon.cd {
    color: #ffefbb;
    background-color: #a28700;
    border-color: #7d6900;
}

.search-results .ribbons > .ribbon.cd::after {
    background-image: url('/img/svg/cd_ribbon_end.svg');
}

.search-results .ribbons > .ribbon.ribbon_top {
    color: #ffeded;
    background-color: #ff1e1e;
    border-color: #b00000;
}

.search-results .ribbons > .ribbon.ribbon_top:after {
    background-image: url('/img/svg/top_ribbon_end.svg');
}

.search-results .ribbons > .ribbon.ribbon_best {
    color: #130f00;
    background-color: #ffda22;
    border-color: #ffb503;
}

.search-results .ribbons > .ribbon.ribbon_best::after {
    background-image: url('/img/svg/best_ribbon_end.svg');
}

.search-results .ribbons > .ribbon:hover {
    color: white;
}

/* END Block search ribbons */


@media screen and (max-width: 450px) {
    .search-results {
        line-height: 34px;
    }
}

/* temporarily disable mobile theme (max-width: 450) */
@media screen and (max-width: 1px) {

	#search_block_top form#searchbox {
        position: static;
        width: 355px;
        height: 46px;
        margin-top: 8px;
    }

    #search_block_top form#searchbox input.search_query {
        width: 266px;
        height: 22px;
        padding: 11px 20px;
    }

    #search_block_top form#searchbox .button {
        height: 46px;
    }

    #search_block_top form#searchbox .button::before {
        top: 7px;
        height: 30px;
    }

    .ac_results {
        width: 355px!important;
        top: 98px!important;
    }

    .ac_results > ul {
        width: 353px;
    }

    .ac_results li .right {
        width: 263px;
    }

    .ac_results li .right .name {
        width: 100%;
    }
}
