.wm-header-brand-search {
    display: flex;
    flex: 0 1 700px;
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
    min-width: 0;
}

.wm-header-brand-search .wm-header-brands {
    flex: 1 0 auto;
    gap: clamp(4px, .65vw, 10px);
    padding: 0;
    border: 0;
}

.wm-header-brand-search .wm-header-brands a {
    width: clamp(40px, 4.4vw, 62px);
    min-width: 0;
    padding: 3px;
}

.wm-header-brand-search .wm-header-brands img {
    max-width: 100%;
}

.wm-header-search {
    position: relative;
    display: flex;
    flex: 1 1 300px;
    min-width: 0;
    max-width: 310px;
    min-height: 42px;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
    background: #fafafa;
}

.wm-header-search:focus-within {
    border-color: var(--wm-brand, #bd0b35);
    box-shadow: 0 0 0 1px var(--wm-brand, #bd0b35);
}

.wm-header-search input {
    flex: 1;
    width: 0;
    min-width: 0;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px 0 0 7px;
    background: transparent;
    color: #262626;
    font: inherit;
    font-size: 16px;
}

.wm-header-search input:focus {
    outline: none;
}

.wm-header-search input::placeholder {
    color: #595959;
}

.wm-header-search button {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    padding: 0;
    border: 0;
    border-inline-start: 1px solid #d2d2d2;
    border-radius: 0 7px 7px 0;
    background: #f2f2f2;
    color: #333;
}

.wm-header-search button:hover {
    background: #e8e8e8;
}

.wm-header-search button:focus-visible {
    outline: 2px solid #333;
    outline-offset: -4px;
}

.wm-header-search .wm-icon {
    width: 19px;
    height: 19px;
}

.wm-header-search-preview {
    position: absolute;
    z-index: 5;
    inset-block-start: calc(100% + 8px);
    inset-inline-start: -1px;
    width: min(440px, calc(100vw - 32px));
    max-height: min(420px, 50dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 26px rgb(0 0 0 / 15%);
}

.wm-header-search-preview .search-suggest-container {
    position: static;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    transform: none;
}

.wm-header-search-preview .search-suggest-container::after {
    display: none;
}

.wm-header-search-preview .search-suggest-product-link {
    padding: 8px 12px;
}

.wm-header-search-preview .search-suggest-product-link:hover,
.wm-header-search-preview .search-suggest-product-link:focus-visible {
    background: #f5f5f5;
}

.wm-header-search-preview .search-suggest-product-image-container {
    width: 56px;
    height: 42px;
    margin: 0 10px 0 0;
}

.wm-header-search-preview .search-suggest-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wm-header-search-preview .search-suggest-product-name {
    min-width: 0;
    padding-inline-end: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.wm-header-search-preview .search-suggest-product-price {
    white-space: nowrap;
}

.wm-header-search-preview :is(.search-suggest-total, .search-suggest-no-result) {
    padding: 12px;
}

@media (max-width: 991px) {
    .wm-header-brand-search {
        order: 3;
        flex: 1 0 100%;
        padding-top: 10px;
        border-top: 1px solid #f0eeee;
    }

}

@media (max-width: 359px) {
    .wm-header-brand-search {
        flex-wrap: wrap;
    }

    .wm-header-brand-search .wm-header-search {
        flex-basis: 100%;
        max-width: none;
    }
}
