:root {
    --ob-search-green: #0c5c3a;
    --ob-search-green-dark: #08482d;
    --ob-search-text: #202622;
    --ob-search-muted: #68716b;
    --ob-search-line: #e2e7e4;
    --ob-search-soft: #f4f7f5;
    --ob-search-results-top: 128px;
    --ob-search-results-bottom: 64px;
    --ob-search-desktop-top: 95px;
}

body.ob-modern-search .dgwt-wcas-search-wrapp,
body.ob-modern-search .dgwt-wcas-suggestions-wrapp {
    font-family: 'PT Sans', Arial, sans-serif;
}

body.ob-modern-search .dgwt-wcas-search-wrapp {
    width: 100%;
    max-width: 680px;
}

body.ob-modern-search .dgwt-wcas-sf-wrapp {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 50px;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: var(--ob-search-soft) !important;
    box-shadow: none !important;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

body.ob-modern-search .dgwt-wcas-sf-wrapp:focus-within {
    border-color: var(--ob-search-green) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(12, 92, 58, .12) !important;
}

body.ob-modern-search .dgwt-wcas-sf-wrapp input[type='search'].dgwt-wcas-search-input {
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 50px !important;
    padding: 0 48px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ob-search-text) !important;
    font-size: 15px !important;
    font-weight: 600;
    line-height: normal !important;
    box-shadow: none !important;
    outline: 0 !important;
}

body.ob-modern-search .dgwt-wcas-sf-wrapp input[type='search'].dgwt-wcas-search-input::-webkit-search-decoration,
body.ob-modern-search .dgwt-wcas-sf-wrapp input[type='search'].dgwt-wcas-search-input::-webkit-search-cancel-button,
body.ob-modern-search .dgwt-wcas-sf-wrapp input[type='search'].dgwt-wcas-search-input::-webkit-search-results-button,
body.ob-modern-search .dgwt-wcas-sf-wrapp input[type='search'].dgwt-wcas-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

body.ob-modern-search .dgwt-wcas-sf-wrapp input[type='search'].dgwt-wcas-search-input::placeholder {
    color: #818a84 !important;
    opacity: 1 !important;
    font-weight: 400;
}

body.ob-modern-search .dgwt-wcas-sf-wrapp .dgwt-wcas-ico-magnifier {
    position: absolute !important;
    top: 50% !important;
    left: 16px !important;
    width: 18px !important;
    height: 18px !important;
    transform: translateY(-50%);
    margin: 0 !important;
}

body.ob-modern-search .dgwt-wcas-sf-wrapp .dgwt-wcas-ico-magnifier path {
    fill: var(--ob-search-green) !important;
}

body.ob-modern-search .dgwt-wcas-preloader {
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%);
}

body.ob-modern-search .dgwt-wcas-suggestions-wrapp.ob-modern-search__results {
    box-sizing: border-box;
    position: fixed !important;
    top: var(--ob-search-desktop-top) !important;
    right: auto !important;
    left: 50% !important;
    width: min(70vw, 1100px) !important;
    transform: translateX(-50%) !important;
    max-height: min(650px, calc(100vh - 110px)) !important;
    padding: 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border: 1px solid var(--ob-search-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 22px 60px rgba(27, 35, 30, .18), 0 3px 12px rgba(27, 35, 30, .08) !important;
    scrollbar-width: thin;
    scrollbar-color: #bdc8c1 transparent;
}

body.ob-modern-search .dgwt-wcas-suggestions-wrapp.ob-modern-search__results--visible {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion {
    box-sizing: border-box;
    min-width: 0;
    margin: 0 !important;
    border-bottom: 0 !important;
    color: var(--ob-search-text) !important;
    text-decoration: none !important;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-headline {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 12px 4px 3px !important;
    background: transparent !important;
    color: var(--ob-search-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-headline:first-child {
    padding-top: 3px !important;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-tax {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 52px;
    padding: 9px 38px 9px 12px !important;
    border: 1px solid var(--ob-search-line) !important;
    border-radius: 8px;
    background: #fff !important;
    transition: border-color .16s ease, background-color .16s ease;
    grid-column: span 2;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-tax::after {
    content: '›';
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--ob-search-green);
    font-size: 23px;
    line-height: 1;
    transform: translateY(-52%);
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-tax:hover,
body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-tax.dgwt-wcas-suggestion-selected {
    border-color: rgba(12, 92, 58, .42) !important;
    background: #f3f8f5 !important;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-tax .dgwt-wcas-st {
    display: block;
    width: 100%;
    color: var(--ob-search-text) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-st-breadcrumbs {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--ob-search-muted) !important;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-st-label-in {
    display: none;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-product {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 108px;
    padding: 9px !important;
    overflow: hidden;
    border: 1px solid var(--ob-search-line) !important;
    border-radius: 8px;
    background: #fff !important;
    transition: border-color .16s ease, box-shadow .16s ease;
    grid-column: span 3;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-product:hover,
body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected {
    border-color: rgba(12, 92, 58, .45) !important;
    background: #fff !important;
    box-shadow: 0 7px 20px rgba(26, 50, 38, .09);
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-si {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 68px !important;
    height: 88px !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 6px;
    background: var(--ob-search-soft);
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-si img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border: 0 !important;
    object-fit: contain;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-content-wrapp {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: space-between;
    min-width: 0;
    padding: 2px 2px 2px 10px !important;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-st {
    width: 100%;
    padding: 0 !important;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-st-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ob-search-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.28 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-st-title strong {
    color: var(--ob-search-green-dark) !important;
    font-weight: 800;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-meta {
    width: 100%;
    padding: 7px 0 0 !important;
    text-align: left !important;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-sp,
body.ob-modern-search .ob-modern-search__results .dgwt-wcas-sp * {
    color: var(--ob-search-green-dark) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-more {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 2px !important;
    padding: 12px 16px !important;
    border: 0 !important;
    border-radius: 8px;
    background: var(--ob-search-green) !important;
    color: #fff !important;
    font-weight: 700;
    text-align: center;
    transition: background-color .16s ease;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-more:hover,
body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-selected {
    background: var(--ob-search-green-dark) !important;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-st-more,
body.ob-modern-search .ob-modern-search__results .dgwt-wcas-st-more-total {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700;
}

body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-nores {
    grid-column: 1 / -1;
    padding: 36px 18px !important;
    border-radius: 8px;
    background: var(--ob-search-soft);
    color: var(--ob-search-muted);
    font-size: 15px;
    text-align: center;
}

body.ob-modern-search .ob-modern-search__results .ob-modern-search__product--extra {
    display: none !important;
}

body.ob-modern-search .ob-modern-search__results .ob-modern-search__close {
    display: none !important;
}

@media (max-width: 767px) {
    body.ob-modern-search-mobile-open .ob-header__mobile {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9600 !important;
    }

    .ob-header__mobile-search {
        background: #fff !important;
        border-top: 1px solid var(--ob-search-line);
    }

    .ob-header__mobile-search.--open {
        max-height: 86px !important;
        overflow: visible;
    }

    .ob-header__mobile-search.ob-modern-search__panel--close-now {
        max-height: 0 !important;
        overflow: hidden !important;
        transition: none !important;
    }

    body.ob-modern-search .ob-header__mobile-search .dgwt-wcas-search-wrapp {
        max-width: none !important;
        padding: 10px 12px 12px !important;
    }

    body.ob-modern-search .dgwt-wcas-sf-wrapp input[type='search'].dgwt-wcas-search-input {
        font-size: 16px !important;
    }

    body.ob-modern-search .dgwt-wcas-suggestions-wrapp.ob-modern-search__results {
        display: none !important;
        position: fixed !important;
        top: var(--ob-search-results-top) !important;
        right: 12px !important;
        bottom: var(--ob-search-results-bottom) !important;
        left: 12px !important;
        z-index: 9500 !important;
        width: auto !important;
        max-height: none !important;
        padding: 14px !important;
        scroll-padding-bottom: 62px;
        touch-action: pan-y;
        transform: none !important;
    }

    body.ob-modern-search .dgwt-wcas-suggestions-wrapp.ob-modern-search__results--visible {
        display: grid !important;
        grid-template-columns: 1fr;
        align-content: start;
    }

    body.ob-modern-search:has(#ob-mobile-mega:not([hidden]))
    .dgwt-wcas-suggestions-wrapp.ob-modern-search__results {
        display: none !important;
    }

    body.ob-modern-search .ob-modern-search__results .ob-modern-search__close {
        position: sticky;
        top: 0;
        z-index: 5;
        grid-column: 1 / -1;
        display: flex !important;
        align-items: center;
        justify-content: center;
        justify-self: end;
        width: 36px;
        height: 36px;
        margin: 0 0 -4px !important;
        padding: 0 !important;
        border: 1px solid var(--ob-search-line) !important;
        border-radius: 50%;
        background: #fff !important;
        color: var(--ob-search-text) !important;
        font: 400 28px/1 Arial, sans-serif !important;
        box-shadow: 0 3px 10px rgba(27, 35, 30, .1);
        cursor: pointer;
    }

    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-headline,
    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-headline:first-child {
        display: block !important;
        min-height: 26px;
        margin: 0 !important;
        padding: 10px 2px 5px !important;
        font-size: 12px !important;
    }

    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-tax,
    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-product {
        grid-column: 1 / -1;
    }

    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-more {
        position: sticky !important;
        bottom: 0;
        z-index: 3;
        box-shadow: 0 -8px 18px rgba(255, 255, 255, .94);
    }

    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-product {
        grid-template-columns: 82px minmax(0, 1fr);
        min-height: 112px;
    }

    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-si {
        width: 74px !important;
        height: 92px !important;
    }
}

@media (max-width: 360px) {
    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion-product {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-si {
        width: 62px !important;
        height: 82px !important;
    }

    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-st-title {
        font-size: 13px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ob-modern-search .dgwt-wcas-sf-wrapp,
    body.ob-modern-search .ob-modern-search__results .dgwt-wcas-suggestion {
        transition: none;
    }
}
