.eko-ajax-search {
    position: relative;
    width: 100%;
    font-family: "montserratregular", Montserrat, Arial, sans-serif;
}

.eko-ajax-search__form {
    position: relative;
    margin: 0;
}

.eko-ajax-search__input {
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 42px;
    border: 1px solid #dce6ef;
    border-radius: 12px;
    background: #fff;
    color: #152238;
    box-shadow: none;
    font: 13px/1.3 "montserratregular", Montserrat, Arial, sans-serif;
    outline: 0;
    appearance: none;
}

.eko-ajax-search__input::-webkit-search-cancel-button {
    display: none;
}

.eko-ajax-search__input:focus {
    border-color: #7ab234;
    box-shadow: 0 0 0 3px rgba(122, 178, 52, 0.12);
}

.eko-ajax-search__input::placeholder {
    color: #758394;
    opacity: 1;
}

[data-eko-search] input.eko-ajax-search__input {
    padding: 0 42px 0 46px !important;
    border-radius: 12px !important;
}

.eko-ajax-search__submit,
.eko-ajax-search__clear {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7ab234;
    transform: translateY(-50%);
    cursor: pointer;
}

.eko-ajax-search__submit {
    left: 14px;
}

.eko-ajax-search__clear {
    right: 12px;
    color: #152238;
}

.eko-ajax-search__submit svg,
.eko-ajax-search__clear svg,
.eko-search-overlay__back svg,
.eko-search-overlay__close svg,
.eko-ajax-search__term-icon svg,
.eko-ajax-search__term-arrow svg {
    display: block;
    width: 21px;
    height: 21px;
}

.eko-ajax-search__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100000;
    width: min(640px, calc(100vw - 32px));
    max-height: min(520px, calc(100vh - 150px));
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e5edf3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

body.eko-search-results-open .header-wrapper {
    position: relative;
    z-index: 10050;
}

body.eko-search-results-open .header-sticky-wrapper {
    z-index: 10051;
}

body.eko-search-results-open .header-sticky-wrapper .header .inner {
    overflow: visible !important;
}

body.eko-search-results-open .why-us-content .bubble-text {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.eko-ajax-search__panel[hidden],
.eko-search-overlay[hidden],
.eko-ajax-search__clear[hidden] {
    display: none !important;
}

.eko-ajax-search__section-title {
    display: flex;
    min-height: 42px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    border: 0;
    background: #f9fcf6;
    color: #5f812f;
    font-family: "montserratmedium", Montserrat, Arial, sans-serif;
    font-size: 12px;
    line-height: 18px;
}

.eko-ajax-search__clear-history {
    padding: 3px 0 3px 14px;
    border: 0;
    background: transparent;
    color: #5f812f;
    font: 11px/16px "montserratmedium", Montserrat, Arial, sans-serif;
    cursor: pointer;
}

.eko-ajax-search__clear-history:hover,
.eko-ajax-search__clear-history:focus-visible {
    color: #7ab234;
    text-decoration: underline;
    outline: 0;
}

.eko-ajax-search__term,
.eko-ajax-search__category,
.eko-ajax-search__product {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-bottom: 1px solid #e5edf3;
    background: #fff;
    color: #1f2a37;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.eko-ajax-search__term {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 22px;
    font: 14px/18px "montserratregular", Montserrat, Arial, sans-serif;
    cursor: pointer;
}

.eko-ajax-search__term-icon {
    color: #9aa8b8;
}

.eko-ajax-search__term-arrow {
    color: #5f812f;
}

.eko-ajax-search__category {
    display: flex;
    align-items: center;
    padding: 9px 22px;
}

.eko-ajax-search__category-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.eko-ajax-search__category-title,
.eko-ajax-search__product-title {
    color: #16243a;
    font-size: 14px;
    line-height: 18px;
}

.eko-ajax-search__breadcrumb {
    margin-top: 3px;
    overflow: hidden;
    color: #7b8794;
    font-size: 11px;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eko-ajax-search__product {
    display: grid;
    min-height: 62px;
    grid-template-columns: 44px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
}

.eko-ajax-search__product-image {
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #e5edf3;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

.eko-ajax-search__product-price {
    justify-self: end;
    color: #5f812f;
    font: 12px/16px "montserratmedium", Montserrat, Arial, sans-serif;
    text-align: right;
    white-space: nowrap;
}

.eko-ajax-search__product-price .amount,
.eko-ajax-search__product-price ins {
    color: inherit;
    font: inherit;
}

.eko-ajax-search__product-price ins {
    text-decoration: none;
}

.eko-ajax-search__product-price del {
    display: block;
    color: #8a97a8;
    font-size: 10px;
    line-height: 13px;
}

.eko-ajax-search mark,
.eko-search-overlay mark {
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: "montserratbold", Montserrat, Arial, sans-serif;
    font-weight: 700;
}

.eko-ajax-search__term:hover,
.eko-ajax-search__term:focus-visible,
.eko-ajax-search__category:hover,
.eko-ajax-search__category:focus-visible,
.eko-ajax-search__product:hover,
.eko-ajax-search__product:focus-visible {
    background: #f6f9fb;
    box-shadow: inset 3px 0 0 #7ab234;
    color: #1f2a37;
    text-decoration: none;
    outline: 0;
}

.eko-ajax-search__all-results {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    color: #5f812f;
    font: 11px/18px "montserratmedium", Montserrat, Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.eko-ajax-search__all-results:hover,
.eko-ajax-search__all-results:focus-visible {
    background: #f9fcf6;
    color: #7ab234;
    text-decoration: none;
    outline: 0;
}

.eko-ajax-search__message {
    padding: 28px 22px;
    color: #657387;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
}

.eko-ajax-search__message--loading::before {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 9px -4px 0;
    border: 2px solid #dce6ef;
    border-top-color: #7ab234;
    border-radius: 50%;
    content: "";
    animation: eko-search-spin 0.7s linear infinite;
}

@keyframes eko-search-spin {
    to { transform: rotate(360deg); }
}

.eko-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #16243a;
    font-family: "montserratregular", Montserrat, Arial, sans-serif;
}

.eko-search-overlay__header {
    display: grid;
    min-height: 54px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.eko-search-overlay__back,
.eko-search-overlay__close {
    display: flex;
    width: 48px;
    height: 54px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0c2a50;
    cursor: pointer;
}

.eko-search-overlay__form {
    position: relative;
    margin: 0;
}

.eko-search-overlay .eko-search-overlay__form input.eko-search-overlay__input,
.eko-search-overlay .eko-search-overlay__form input.eko-search-overlay__input:hover,
.eko-search-overlay .eko-search-overlay__form input.eko-search-overlay__input:focus,
.eko-search-overlay .eko-search-overlay__form input.eko-search-overlay__input:focus-visible,
.eko-search-overlay .eko-search-overlay__form input.eko-search-overlay__input:active {
    height: 52px;
    padding: 0 8px;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 15px;
    appearance: none;
}

.eko-search-overlay__results.eko-ajax-search__panel {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overscroll-behavior: contain;
}

html.eko-search-overlay-open,
body.eko-search-overlay-open {
    overflow: hidden !important;
}

@media (max-width: 992px) {
    .eko-ajax-search > .eko-ajax-search__panel {
        display: none !important;
    }

    .eko-search-overlay .eko-ajax-search__section-title {
        padding-right: 20px;
        padding-left: 20px;
    }

    .eko-search-overlay .eko-ajax-search__term,
    .eko-search-overlay .eko-ajax-search__category {
        padding-right: 20px;
        padding-left: 20px;
    }

    .eko-search-overlay .eko-ajax-search__product {
        min-height: 64px;
        grid-template-columns: 46px minmax(0, 1fr) max-content;
        padding: 9px 20px;
    }

    .eko-search-overlay .eko-ajax-search__product-image {
        width: 42px;
        height: 42px;
    }

    .eko-search-overlay .eko-ajax-search__all-results {
        min-height: 48px;
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .secondary-header .header-search-bar {
        box-sizing: border-box;
        width: calc(100% - 24px) !important;
        flex: 0 1 calc(100% - 24px) !important;
        margin-right: 12px !important;
        margin-left: 12px !important;
    }
}

@media (min-width: 993px) {
    .eko-ajax-search > .eko-ajax-search__panel {
        max-height: none;
        overflow: hidden;
        border-radius: 12px;
    }
}

@media (min-width: 1201px) {
    .header .header-search-bar .eko-ajax-search,
    .header-sticky-wrapper .header-search-bar .eko-ajax-search {
        min-width: 340px;
        max-width: 340px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eko-ajax-search__message--loading::before {
        animation-duration: 1.4s;
    }
}
