/* Sundvik Woodmart Search Enhancer */
body .wd-search-full-screen,
body .woodmart-search-full-screen,
body .wd-search-full-screen-2 {
    --wd-form-brd-radius: 999px;
    top: 0 !important;
    bottom: auto !important;
    height: var(--sundvik-wse-height, 50vh) !important;
    min-height: var(--sundvik-wse-min-height, 360px) !important;
    max-height: var(--sundvik-wse-max-height, 680px) !important;
    background:
        radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 10%, transparent) 0 18%, transparent 34%),
        linear-gradient(180deg, var(--sundvik-wse-bg, #fbfaf6) 0%, color-mix(in srgb, var(--sundvik-wse-bg, #fbfaf6) 88%, #ffffff) 100%) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 22px 65px rgba(0, 40, 35, .18) !important;
}

body .wd-search-full-screen .wd-search-area,
body .woodmart-search-full-screen .wd-search-area,
body .wd-search-full-screen-2 .wd-search-area {
    min-height: auto !important;
    height: auto !important;
    padding: 34px 16px 48px !important;
    display: block !important;
}

body .wd-search-full-screen .searchform,
body .wd-search-full-screen .wd-search-form,
body .woodmart-search-full-screen .searchform,
body .woodmart-search-full-screen .wd-search-form,
body .wd-search-full-screen-2 .searchform,
body .wd-search-full-screen-2 .wd-search-form {
    width: min(var(--sundvik-wse-search-width, 760px), calc(100vw - 34px)) !important;
    max-width: var(--sundvik-wse-search-width, 760px) !important;
    margin: 0 auto !important;
    padding: 6px !important;
    border: 1px solid color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 14%, transparent) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.78) !important;
    box-shadow: 0 14px 35px rgba(0, 40, 35, .08) !important;
    backdrop-filter: blur(10px);
}

body .wd-search-full-screen input[type="text"],
body .wd-search-full-screen input[type="search"],
body .woodmart-search-full-screen input[type="text"],
body .woodmart-search-full-screen input[type="search"],
body .wd-search-full-screen-2 input[type="text"],
body .wd-search-full-screen-2 input[type="search"] {
    min-height: 54px !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 30%, transparent) !important;
    color: var(--sundvik-wse-primary, #00443f) !important;
    background: #fff !important;
    font-weight: 750 !important;
    box-shadow: none !important;
}

body .wd-search-full-screen .wd-close-search,
body .woodmart-search-full-screen .wd-close-search,
body .wd-search-full-screen-2 .wd-close-search {
    color: var(--sundvik-wse-primary, #00443f) !important;
}

.sundvik-wse-extra {
    width: min(calc(var(--sundvik-wse-search-width, 760px) + 120px), calc(100vw - 34px));
    margin: 32px auto 0;
    padding: 18px;
    color: var(--sundvik-wse-primary, #00443f);
    text-align: left;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, .75fr);
    gap: 18px;
    border: 1px solid color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 10%, transparent);
    border-radius: 26px;
    background: rgba(255,255,255,.58);
    box-shadow: 0 18px 45px rgba(0, 40, 35, .07);
    backdrop-filter: blur(8px);
}

html[dir="rtl"] .sundvik-wse-extra,
.rtl .sundvik-wse-extra {
    text-align: right;
}

.sundvik-wse-section {
    min-width: 0;
    padding: 18px;
    border-radius: 20px;
    background: color-mix(in srgb, #ffffff 74%, var(--sundvik-wse-bg, #fbfaf6));
}

.sundvik-wse-section + .sundvik-wse-section {
    margin-top: 0;
}

.sundvik-wse-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .03em;
    line-height: 1.35;
    color: var(--sundvik-wse-primary, #00443f);
    text-transform: uppercase;
}

.sundvik-wse-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 72%, #ffffff);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 10%, transparent);
}

.sundvik-wse-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.sundvik-wse-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 16%, transparent);
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    color: var(--sundvik-wse-primary, #00443f) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: inset 0 -1px 0 rgba(0,40,35,.04);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sundvik-wse-pill::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: .42;
}

html[dir="rtl"] .sundvik-wse-pill::before,
.rtl .sundvik-wse-pill::before {
    margin-right: 0;
    margin-left: 8px;
}

.sundvik-wse-pill:nth-child(3n+1) {
    background: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 8%, #ffffff);
}

.sundvik-wse-pill:hover,
.sundvik-wse-pill:focus {
    color: var(--sundvik-wse-primary, #00443f) !important;
    background: #fff;
    border-color: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 34%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 40, 35, .10);
}

.sundvik-wse-brands {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.sundvik-wse-brand-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 0 12px 0 14px;
    border-radius: 14px;
    border: 1px dashed color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 22%, transparent);
    background: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 5%, #ffffff);
    color: var(--sundvik-wse-primary, #00443f) !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.sundvik-wse-brand-link::after {
    content: "›";
    font-size: 18px;
    line-height: 1;
    opacity: .55;
}

html[dir="rtl"] .sundvik-wse-brand-link::after,
.rtl .sundvik-wse-brand-link::after {
    content: "‹";
}

.sundvik-wse-brand-link:hover,
.sundvik-wse-brand-link:focus {
    background: #fff;
    border-color: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 34%, transparent);
    transform: translateX(2px);
}

html[dir="rtl"] .sundvik-wse-brand-link:hover,
.rtl .sundvik-wse-brand-link:hover,
html[dir="rtl"] .sundvik-wse-brand-link:focus,
.rtl .sundvik-wse-brand-link:focus {
    transform: translateX(-2px);
}

@media (max-width: 900px) {
    .sundvik-wse-extra {
        grid-template-columns: 1fr;
    }

    .sundvik-wse-brands {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body .wd-search-full-screen,
    body .woodmart-search-full-screen,
    body .wd-search-full-screen-2 {
        height: 100vh !important;
        height: var(--sundvik-wse-mobile-height, 100svh) !important;
        min-height: 100vh !important;
        min-height: var(--sundvik-wse-mobile-height, 100svh) !important;
        max-height: 100vh !important;
        max-height: var(--sundvik-wse-mobile-height, 100svh) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body .wd-search-full-screen .wd-search-area,
    body .woodmart-search-full-screen .wd-search-area,
    body .wd-search-full-screen-2 .wd-search-area {
        padding: 18px 12px 28px !important;
    }

    body .wd-search-full-screen .searchform,
    body .wd-search-full-screen .wd-search-form,
    body .woodmart-search-full-screen .searchform,
    body .woodmart-search-full-screen .wd-search-form,
    body .wd-search-full-screen-2 .searchform,
    body .wd-search-full-screen-2 .wd-search-form {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        padding: 5px !important;
        border-radius: 22px !important;
    }

    body .wd-search-full-screen input[type="text"],
    body .wd-search-full-screen input[type="search"],
    body .woodmart-search-full-screen input[type="text"],
    body .woodmart-search-full-screen input[type="search"],
    body .wd-search-full-screen-2 input[type="text"],
    body .wd-search-full-screen-2 input[type="search"] {
        min-height: 48px !important;
        border-radius: 18px !important;
        font-size: 15px !important;
    }

    .sundvik-wse-extra {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        margin-top: 16px;
        padding: 12px;
        gap: 12px;
        border-radius: 22px;
        grid-template-columns: 1fr;
        max-height: calc(var(--sundvik-wse-mobile-height, 100svh) - 104px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .sundvik-wse-extra::-webkit-scrollbar,
    .sundvik-wse-pills::-webkit-scrollbar,
    .sundvik-wse-brands::-webkit-scrollbar {
        height: 4px;
        width: 4px;
    }

    .sundvik-wse-extra::-webkit-scrollbar-thumb,
    .sundvik-wse-pills::-webkit-scrollbar-thumb,
    .sundvik-wse-brands::-webkit-scrollbar-thumb {
        border-radius: 99px;
        background: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 28%, transparent);
    }

    .sundvik-wse-section {
        padding: 14px;
        border-radius: 18px;
        overflow: hidden;
    }

    .sundvik-wse-title {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .sundvik-wse-pills {
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 10px;
        margin: 0 -2px -6px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .sundvik-wse-pill {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 13px;
        font-size: 13px;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .sundvik-wse-brands {
        display: flex;
        flex-wrap: nowrap;
        gap: 9px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 10px;
        margin: 0 -2px -6px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .sundvik-wse-brand-link {
        flex: 0 0 min(72vw, 220px);
        min-height: 42px;
        padding: 0 12px;
        font-size: 13px;
        scroll-snap-align: start;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .sundvik-wse-brand-link {
        flex-basis: min(78vw, 240px);
    }
}

/* Version 1.0.4: show mobile categories and brands in 3-row horizontal groups. */
@media (max-width: 767px) {
    .sundvik-wse-pills {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(3, minmax(38px, auto));
        grid-auto-columns: 142px;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        padding: 2px 2px 12px;
        margin: 0 -2px -6px;
    }

    .sundvik-wse-pill {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        justify-content: flex-start;
        padding: 0 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        scroll-snap-align: start;
    }

    .sundvik-wse-brands {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(3, minmax(42px, auto));
        grid-auto-columns: 190px;
        align-items: stretch;
        justify-content: flex-start;
        gap: 9px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        padding: 2px 2px 12px;
        margin: 0 -2px -6px;
    }

    .sundvik-wse-brand-link {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 0 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        scroll-snap-align: start;
    }
}

@media (max-width: 420px) {
    .sundvik-wse-pills {
        grid-auto-columns: 132px;
    }

    .sundvik-wse-brands {
        grid-auto-columns: 176px;
    }
}

/* Version 1.0.5: top-aligned search, query mode, fixed mobile brand carousel. */
body .wd-search-full-screen,
body .woodmart-search-full-screen,
body .wd-search-full-screen-2 {
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

body .wd-search-full-screen .wd-search-area,
body .woodmart-search-full-screen .wd-search-area,
body .wd-search-full-screen-2 .wd-search-area {
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding-top: 16px !important;
}

body .wd-search-full-screen .searchform,
body .wd-search-full-screen .wd-search-form,
body .woodmart-search-full-screen .searchform,
body .woodmart-search-full-screen .wd-search-form,
body .wd-search-full-screen-2 .searchform,
body .wd-search-full-screen-2 .wd-search-form {
    margin-top: 0 !important;
}

body .wd-search-full-screen.sundvik-wse-is-closing,
body .woodmart-search-full-screen.sundvik-wse-is-closing,
body .wd-search-full-screen-2.sundvik-wse-is-closing {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-12px) !important;
}

.sundvik-wse-has-query .sundvik-wse-extra,
.sundvik-wse-extra.sundvik-wse-hidden-by-query {
    display: none !important;
}

@media (max-width: 767px) {
    body .wd-search-full-screen .wd-search-area,
    body .woodmart-search-full-screen .wd-search-area,
    body .wd-search-full-screen-2 .wd-search-area {
        padding-top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
        padding-bottom: 18px !important;
    }

    .sundvik-wse-extra {
        max-height: calc(var(--sundvik-wse-mobile-height, 100svh) - 86px);
    }

    .sundvik-wse-brand-section {
        overflow: hidden;
    }

    .sundvik-wse-brands {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-template-rows: repeat(2, minmax(42px, auto)) !important;
        grid-auto-columns: minmax(142px, calc((100vw - 66px) / 2)) !important;
        row-gap: 8px !important;
        column-gap: 10px !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 0 12px !important;
        margin: 0 !important;
        scroll-snap-type: x mandatory !important;
        scroll-padding-inline: 0 !important;
        -webkit-overflow-scrolling: touch;
        contain: layout paint;
    }

    .sundvik-wse-brand-link {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        transform: none !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        scroll-snap-align: start !important;
    }

    .sundvik-wse-brand-link:hover,
    .sundvik-wse-brand-link:focus {
        transform: none !important;
    }
}

@media (max-width: 420px) {
    .sundvik-wse-brands {
        grid-auto-columns: minmax(132px, calc((100vw - 56px) / 2)) !important;
    }
}


/* Version 1.0.6: keep Woodmart AJAX products in a two-column mobile grid. */
@media (max-width: 767px) {
    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results,
    body .wd-search-full-screen.sundvik-wse-has-query .search-results-wrapper,
    body .woodmart-search-full-screen.sundvik-wse-has-query .search-results-wrapper,
    body .wd-search-full-screen-2.sundvik-wse-has-query .search-results-wrapper {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        box-sizing: border-box !important;
    }

    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results .products,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results .products,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results .products,
    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results .wd-products,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results .wd-products,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results .wd-products,
    body .wd-search-full-screen.sundvik-wse-has-query .search-results-wrapper .products,
    body .woodmart-search-full-screen.sundvik-wse-has-query .search-results-wrapper .products,
    body .wd-search-full-screen-2.sundvik-wse-has-query .search-results-wrapper .products,
    body .wd-search-full-screen.sundvik-wse-has-query .search-results-wrapper .wd-products,
    body .woodmart-search-full-screen.sundvik-wse-has-query .search-results-wrapper .wd-products,
    body .wd-search-full-screen-2.sundvik-wse-has-query .search-results-wrapper .wd-products {
        --wd-col: 2 !important;
        --wd-gap: 10px !important;
        --wd-prod-gap: 10px !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body .wd-search-full-screen.sundvik-wse-has-query .autocomplete-suggestions,
    body .woodmart-search-full-screen.sundvik-wse-has-query .autocomplete-suggestions,
    body .wd-search-full-screen-2.sundvik-wse-has-query .autocomplete-suggestions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results .product,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results .product,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results .product,
    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results .product-grid-item,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results .product-grid-item,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results .product-grid-item,
    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results li.product,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results li.product,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results li.product,
    body .wd-search-full-screen.sundvik-wse-has-query .autocomplete-suggestion,
    body .woodmart-search-full-screen.sundvik-wse-has-query .autocomplete-suggestion,
    body .wd-search-full-screen-2.sundvik-wse-has-query .autocomplete-suggestion {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results .product-wrapper,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results .product-wrapper,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results .product-wrapper,
    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results .wd-product,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results .wd-product,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results .wd-product {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results img,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results img,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results img {
        max-width: 100% !important;
        height: auto !important;
    }

    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results .wd-entities-title,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results .wd-entities-title,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results .wd-entities-title,
    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results .product-title,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results .product-title,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results .product-title,
    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results .woocommerce-loop-product__title,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results .woocommerce-loop-product__title,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    body .wd-search-full-screen.sundvik-wse-has-query .wd-search-results .price,
    body .woodmart-search-full-screen.sundvik-wse-has-query .wd-search-results .price,
    body .wd-search-full-screen-2.sundvik-wse-has-query .wd-search-results .price {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
}

/* Version 1.0.7: duplicate-safe mobile brand rows and stronger mobile result grid. */
.sundvik-wse-extra {
    position: relative;
    z-index: 3;
    isolation: isolate;
}

.sundvik-wse-extra + .sundvik-wse-extra {
    display: none !important;
}

@media (max-width: 767px) {
    .sundvik-wse-brand-section {
        position: relative !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }

    .sundvik-wse-brand-section .sundvik-wse-brands {
        display: grid !important;
        grid-template-rows: repeat(2, 44px) !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc((100vw - 64px) / 2) !important;
        gap: 8px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 0 12px !important;
        margin: 0 !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        contain: content !important;
    }

    .sundvik-wse-brand-section .sundvik-wse-brand-link {
        position: relative !important;
        z-index: 1 !important;
        display: flex !important;
        box-sizing: border-box !important;
        grid-row: auto !important;
        grid-column: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        flex: initial !important;
        flex-basis: auto !important;
        margin: 0 !important;
        transform: none !important;
        scroll-snap-align: start !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .sundvik-wse-brand-section .sundvik-wse-brand-link:hover,
    .sundvik-wse-brand-section .sundvik-wse-brand-link:focus {
        transform: none !important;
    }

    body.sundvik-wse-search-has-query .wd-search-full-screen .wd-search-results,
    body.sundvik-wse-search-has-query .woodmart-search-full-screen .wd-search-results,
    body.sundvik-wse-search-has-query .wd-search-full-screen-2 .wd-search-results,
    body.sundvik-wse-search-has-query .wd-search-full-screen .search-results-wrapper,
    body.sundvik-wse-search-has-query .woodmart-search-full-screen .search-results-wrapper,
    body.sundvik-wse-search-has-query .wd-search-full-screen-2 .search-results-wrapper {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    body.sundvik-wse-search-has-query .sundvik-wse-results-grid {
        --wd-col: 2 !important;
        --wd-gap: 10px !important;
        --wd-prod-gap: 10px !important;
        position: static !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        gap: 14px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 10px 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
        clear: both !important;
    }

    body.sundvik-wse-search-has-query .sundvik-wse-results-grid > * {
        display: block !important;
        grid-column: auto !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: initial !important;
        flex-basis: auto !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    body.sundvik-wse-search-has-query .sundvik-wse-results-grid > .wd-search-loader,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid > .wd-search-no-results,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid > .woocommerce-info,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid > .not-found {
        grid-column: 1 / -1 !important;
    }

    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .product,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .product-grid-item,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .wd-product,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .autocomplete-suggestion,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid li.product {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .suggestion-thumb,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .product-element-top,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .wd-entities-title,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .product-title,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .woocommerce-loop-product__title,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .price {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.sundvik-wse-search-has-query .sundvik-wse-results-grid img {
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 420px) {
    .sundvik-wse-brand-section .sundvik-wse-brands {
        grid-auto-columns: calc((100vw - 54px) / 2) !important;
    }
}


/* Version 1.0.8: stable two-row brand strip + compact horizontal mobile search results. */
@media (max-width: 767px) {
    .sundvik-wse-section,
    .sundvik-wse-brand-section,
    .sundvik-wse-categories {
        position: relative !important;
        isolation: isolate !important;
    }

    .sundvik-wse-pill,
    .sundvik-wse-pill:nth-child(3n+1),
    .sundvik-wse-brand-link {
        background: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 4%, #ffffff) !important;
        border-color: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 18%, transparent) !important;
        box-shadow: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    .sundvik-wse-brand-link::before {
        content: none !important;
        display: none !important;
    }

    .sundvik-wse-brand-section .sundvik-wse-brands {
        display: flex !important;
        flex-flow: column wrap !important;
        align-content: flex-start !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 8px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 108px !important;
        max-height: 108px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 0 12px !important;
        margin: 0 !important;
        scroll-snap-type: x proximity !important;
        scroll-padding-inline: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        contain: none !important;
    }

    .sundvik-wse-brand-section .sundvik-wse-brand-link {
        flex: 0 0 44px !important;
        width: calc((100vw - 64px) / 2) !important;
        max-width: calc((100vw - 64px) / 2) !important;
        min-width: 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        margin: 0 !important;
        transform: none !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        z-index: 1 !important;
        scroll-snap-align: start !important;
    }

    .sundvik-wse-brand-section .sundvik-wse-brand-link:hover,
    .sundvik-wse-brand-section .sundvik-wse-brand-link:focus {
        transform: none !important;
        background: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 4%, #ffffff) !important;
    }

    body.sundvik-wse-search-has-query .wd-search-full-screen .wd-search-results,
    body.sundvik-wse-search-has-query .woodmart-search-full-screen .wd-search-results,
    body.sundvik-wse-search-has-query .wd-search-full-screen-2 .wd-search-results,
    body.sundvik-wse-search-has-query .wd-search-full-screen .search-results-wrapper,
    body.sundvik-wse-search-has-query .woodmart-search-full-screen .search-results-wrapper,
    body.sundvik-wse-search-has-query .wd-search-full-screen-2 .search-results-wrapper,
    body.sundvik-wse-search-has-query .wd-search-full-screen .autocomplete-suggestions,
    body.sundvik-wse-search-has-query .woodmart-search-full-screen .autocomplete-suggestions,
    body.sundvik-wse-search-has-query .wd-search-full-screen-2 .autocomplete-suggestions,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid {
        display: block !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        margin: 10px auto 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    body.sundvik-wse-search-has-query .wd-search-results .products,
    body.sundvik-wse-search-has-query .wd-search-results .wd-products,
    body.sundvik-wse-search-has-query .wd-search-results ul.products,
    body.sundvik-wse-search-has-query .search-results-wrapper .products,
    body.sundvik-wse-search-has-query .search-results-wrapper .wd-products,
    body.sundvik-wse-search-has-query .search-results-wrapper ul.products {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.sundvik-wse-search-has-query .wd-search-results .product,
    body.sundvik-wse-search-has-query .wd-search-results .product-grid-item,
    body.sundvik-wse-search-has-query .wd-search-results li.product,
    body.sundvik-wse-search-has-query .wd-search-results .wd-product,
    body.sundvik-wse-search-has-query .search-results-wrapper .product,
    body.sundvik-wse-search-has-query .search-results-wrapper .product-grid-item,
    body.sundvik-wse-search-has-query .search-results-wrapper li.product,
    body.sundvik-wse-search-has-query .search-results-wrapper .wd-product,
    body.sundvik-wse-search-has-query .autocomplete-suggestions .autocomplete-suggestion,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid > .product,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid > .product-grid-item,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid > li.product,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid > .wd-product,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid > .autocomplete-suggestion {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 10px !important;
        padding: 10px !important;
        float: none !important;
        clear: both !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        border: 1px solid color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 10%, transparent) !important;
        box-shadow: 0 6px 18px rgba(0, 40, 35, .05) !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    html[dir="rtl"] body.sundvik-wse-search-has-query .wd-search-results .product,
    html[dir="rtl"] body.sundvik-wse-search-has-query .wd-search-results .product-grid-item,
    html[dir="rtl"] body.sundvik-wse-search-has-query .wd-search-results li.product,
    html[dir="rtl"] body.sundvik-wse-search-has-query .wd-search-results .wd-product,
    html[dir="rtl"] body.sundvik-wse-search-has-query .autocomplete-suggestions .autocomplete-suggestion,
    .rtl body.sundvik-wse-search-has-query .wd-search-results .product,
    .rtl body.sundvik-wse-search-has-query .wd-search-results .product-grid-item,
    .rtl body.sundvik-wse-search-has-query .wd-search-results li.product,
    .rtl body.sundvik-wse-search-has-query .wd-search-results .wd-product,
    .rtl body.sundvik-wse-search-has-query .autocomplete-suggestions .autocomplete-suggestion {
        text-align: right !important;
    }

    body.sundvik-wse-search-has-query .wd-search-results .product-wrapper,
    body.sundvik-wse-search-has-query .wd-search-results .wd-product,
    body.sundvik-wse-search-has-query .search-results-wrapper .product-wrapper,
    body.sundvik-wse-search-has-query .search-results-wrapper .wd-product,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .product-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.sundvik-wse-search-has-query .wd-search-results .product-element-top,
    body.sundvik-wse-search-has-query .wd-search-results .product-image-link,
    body.sundvik-wse-search-has-query .wd-search-results .product-image,
    body.sundvik-wse-search-has-query .wd-search-results .product-thumbnail,
    body.sundvik-wse-search-has-query .wd-search-results .wd-product-image,
    body.sundvik-wse-search-has-query .wd-search-results .suggestion-thumb,
    body.sundvik-wse-search-has-query .search-results-wrapper .product-element-top,
    body.sundvik-wse-search-has-query .search-results-wrapper .product-image-link,
    body.sundvik-wse-search-has-query .search-results-wrapper .product-image,
    body.sundvik-wse-search-has-query .search-results-wrapper .product-thumbnail,
    body.sundvik-wse-search-has-query .search-results-wrapper .wd-product-image,
    body.sundvik-wse-search-has-query .search-results-wrapper .suggestion-thumb,
    body.sundvik-wse-search-has-query .autocomplete-suggestion .suggestion-thumb,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .product-element-top,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .product-image-link,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .wd-product-image,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .suggestion-thumb {
        flex: 0 0 100px !important;
        width: 100px !important;
        max-width: 100px !important;
        min-width: 100px !important;
        height: 100px !important;
        max-height: 100px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        border-radius: 10px !important;
        background: #fff !important;
    }

    body.sundvik-wse-search-has-query .wd-search-results img,
    body.sundvik-wse-search-has-query .search-results-wrapper img,
    body.sundvik-wse-search-has-query .autocomplete-suggestions img,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid img {
        width: auto !important;
        max-width: 100px !important;
        height: auto !important;
        max-height: 100px !important;
        object-fit: contain !important;
    }

    body.sundvik-wse-search-has-query .wd-search-results .product-information,
    body.sundvik-wse-search-has-query .wd-search-results .wd-product-info,
    body.sundvik-wse-search-has-query .wd-search-results .product-info,
    body.sundvik-wse-search-has-query .wd-search-results .suggestion-content,
    body.sundvik-wse-search-has-query .search-results-wrapper .product-information,
    body.sundvik-wse-search-has-query .search-results-wrapper .wd-product-info,
    body.sundvik-wse-search-has-query .search-results-wrapper .product-info,
    body.sundvik-wse-search-has-query .search-results-wrapper .suggestion-content,
    body.sundvik-wse-search-has-query .autocomplete-suggestion .suggestion-content,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .product-information,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .wd-product-info,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .product-info,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .suggestion-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 112px) !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: inherit !important;
    }

    body.sundvik-wse-search-has-query .wd-search-results .wd-entities-title,
    body.sundvik-wse-search-has-query .wd-search-results .product-title,
    body.sundvik-wse-search-has-query .wd-search-results .woocommerce-loop-product__title,
    body.sundvik-wse-search-has-query .wd-search-results .suggestion-title,
    body.sundvik-wse-search-has-query .search-results-wrapper .wd-entities-title,
    body.sundvik-wse-search-has-query .search-results-wrapper .product-title,
    body.sundvik-wse-search-has-query .search-results-wrapper .woocommerce-loop-product__title,
    body.sundvik-wse-search-has-query .autocomplete-suggestion .suggestion-title,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .wd-entities-title,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .product-title,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .woocommerce-loop-product__title,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .suggestion-title {
        margin: 0 0 6px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
        text-align: inherit !important;
    }

    body.sundvik-wse-search-has-query .wd-search-results .price,
    body.sundvik-wse-search-has-query .search-results-wrapper .price,
    body.sundvik-wse-search-has-query .autocomplete-suggestion .suggestion-price,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .price,
    body.sundvik-wse-search-has-query .sundvik-wse-results-grid .suggestion-price {
        display: block !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 800 !important;
        color: var(--sundvik-wse-primary, #00443f) !important;
        text-align: inherit !important;
    }
}

@media (max-width: 420px) {
    .sundvik-wse-brand-section .sundvik-wse-brand-link {
        width: calc((100vw - 54px) / 2) !important;
        max-width: calc((100vw - 54px) / 2) !important;
    }
}


/* Version 1.0.9: force uniform chip style on every viewport. */
.sundvik-wse-extra .sundvik-wse-pill,
.sundvik-wse-extra .sundvik-wse-pill:nth-child(3n+1),
.sundvik-wse-extra .sundvik-wse-pill:nth-child(odd),
.sundvik-wse-extra .sundvik-wse-pill:nth-child(even),
.sundvik-wse-extra .sundvik-wse-brand-link,
.sundvik-wse-extra .sundvik-wse-brand-link:nth-child(odd),
.sundvik-wse-extra .sundvik-wse-brand-link:nth-child(even) {
    background: rgba(255, 255, 255, .74) !important;
    border-color: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 16%, transparent) !important;
    color: var(--sundvik-wse-primary, #00443f) !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: inset 0 -1px 0 rgba(0,40,35,.04) !important;
}

.sundvik-wse-extra .sundvik-wse-pill::before {
    opacity: .42 !important;
}

.sundvik-wse-extra .sundvik-wse-pill:hover,
.sundvik-wse-extra .sundvik-wse-pill:focus,
.sundvik-wse-extra .sundvik-wse-brand-link:hover,
.sundvik-wse-extra .sundvik-wse-brand-link:focus {
    background: rgba(255, 255, 255, .96) !important;
    border-color: color-mix(in srgb, var(--sundvik-wse-primary, #00443f) 34%, transparent) !important;
}

/* Version 1.0.11: requested mobile Woodmart suggestion row replacement. */
@media (max-width: 767px) {
    [class*="wd-search-full-screen"] .wd-suggestion {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        background-color: #fff !important;
        align-items: center !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        max-height: 80px;
        min-height: 80px;
    }

    [class*="wd-search-full-screen"] .wd-suggestion-thumb {
        margin-bottom: 0 !important;
        padding: 20px 10px;
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
}
