.mlm-product-search {
    box-sizing: border-box;
    max-width: 760px;
    position: relative;
    width: 100%;
}

.mlm-product-search *,
.mlm-product-search *::before,
.mlm-product-search *::after {
    box-sizing: border-box;
}

.mlm-product-search__field {
    background: #fff;
    border: 1px solid #d8dde4;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    display: block !important;
    height: 40px;
    overflow: hidden;
    position: relative;
    transition: border-color .16s ease, box-shadow .16s ease;
    width: 100%;
}

.mlm-product-search__field::after {
    animation: mlmProductSearchSpin .72s linear infinite;
    border: 2px solid rgba(255, 106, 0, .22);
    border-radius: 50%;
    border-top-color: #ff6a00;
    content: "";
    display: none;
    height: 18px;
    pointer-events: none;
    position: absolute;
    right: 254px;
    top: 10px;
    width: 18px;
    z-index: 4;
}

.mlm-product-search.is-loading .mlm-product-search__field::after {
    display: block;
}

.mlm-product-search.is-loading .mlm-product-search__field--with-category .mlm-product-search__clear {
    display: none !important;
}

.mlm-product-search.is-loading .mlm-product-search__field:not(.mlm-product-search__field--with-category)::after {
    right: 53px;
}

.mlm-product-search.is-loading .mlm-product-search__field:not(.mlm-product-search__field--with-category) .mlm-product-search__clear {
    display: none !important;
}

@keyframes mlmProductSearchSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.mlm-product-search:focus-within .mlm-product-search__field {
    border-color: #ff6a00;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, .16);
}

.mlm-product-search__input {
    appearance: none;
    background: transparent;
    border: 0 !important;
    box-shadow: none !important;
    color: #1f2933;
    display: block;
    font-size: 14px;
    font-weight: 500;
    height: 38px;
    line-height: 1.2;
    margin: 0 !important;
    min-width: 0;
    padding: 0 86px 0 16px !important;
    width: 100%;
}

.mlm-product-search__field--with-category .mlm-product-search__input {
    padding-right: 284px !important;
}

.mlm-product-search__input:focus {
    outline: none;
}

.mlm-product-search__input::-webkit-search-cancel-button {
    appearance: none;
}

.mlm-product-search__clear,
.mlm-product-search__submit {
    align-items: center;
    border: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex !important;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    position: absolute;
    text-decoration: none;
    text-transform: none;
}

.mlm-product-search__clear {
    background: transparent;
    color: #64748b;
    font-size: 18px;
    font-weight: 500;
    height: 28px;
    right: 47px;
    top: 5px;
    width: 28px;
    z-index: 2;
}

.mlm-product-search__field--with-category .mlm-product-search__clear {
    right: 251px;
}

.mlm-product-search__category {
    appearance: none;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #1f2933 50%), linear-gradient(135deg, #1f2933 50%, transparent 50%);
    background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    border: 0 !important;
    border-left: 1px solid #d8dde4 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #1f2933;
    cursor: pointer;
    display: block !important;
    font-size: 14px;
    font-weight: 500;
    height: 38px;
    line-height: 1.2;
    margin: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 34px 0 16px !important;
    position: absolute;
    right: 42px;
    top: 0;
    width: 205px;
    z-index: 2;
}

.mlm-product-search__category:focus {
    outline: none;
}

.mlm-product-search__clear[hidden] {
    display: none !important;
}

.mlm-product-search__clear:hover {
    color: #ff6a00;
}

.mlm-product-search__submit {
    background: #ff6a00;
    border-radius: 0 7px 7px 0;
    color: #fff;
    height: 40px;
    right: -1px;
    top: -1px;
    width: 42px;
    z-index: 3;
}

.mlm-product-search__submit:hover,
.mlm-product-search__submit:focus {
    background: #ff321c;
    color: #fff;
}

.mlm-product-search__submit svg {
    display: block;
    height: 18px;
    pointer-events: none;
    width: 18px;
}

.mlm-product-search__dropdown {
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
    left: 0;
    max-height: 430px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 999;
}

.mlm-product-search__item {
    align-items: center;
    border-radius: 6px;
    color: #1f2933;
    display: grid;
    gap: 12px;
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 86px;
    padding: 8px;
    text-decoration: none;
}

.mlm-product-search__suggestions {
    border-bottom: 1px solid #edf1f5;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 4px 8px;
    padding: 4px 4px 10px;
}

.mlm-product-search__suggestions-title {
    color: #64748b;
    flex: 0 0 100%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.mlm-product-search__suggestion {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5ebf1;
    border-radius: 6px;
    color: #1f2933;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 30px;
    padding: 6px 10px;
    text-decoration: none;
}

.mlm-product-search__suggestion:hover,
.mlm-product-search__suggestion:focus {
    background: #fff4ec;
    border-color: rgba(255, 106, 0, .28);
    color: #ff6a00;
    outline: none;
    text-decoration: none;
}

.mlm-product-search__suggestion--featured {
    background: #ff6a00;
    border-color: #ff6a00;
    color: #fff;
}

.mlm-product-search__suggestion--featured:hover,
.mlm-product-search__suggestion--featured:focus {
    background: #ff321c;
    border-color: #ff321c;
    color: #fff;
}

.mlm-product-search__summary {
    border-bottom: 1px solid #edf1f5;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 4px 6px;
    padding: 4px 4px 9px;
}

.mlm-product-search__item:hover,
.mlm-product-search__item:focus {
    background: #f8fafc;
    color: #1f2933;
    outline: none;
    text-decoration: none;
}

.mlm-product-search__item-media {
    align-items: center;
    background: #fff;
    border: 1px solid #edf1f5;
    border-radius: 6px;
    display: flex;
    height: 70px;
    justify-content: center;
    overflow: hidden;
    width: 74px;
}

.mlm-product-search__item-media img {
    display: block;
    height: 100%;
    max-height: 64px;
    max-width: 68px;
    object-fit: contain;
    width: auto;
}

.mlm-product-search__item-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.mlm-product-search__item-title {
    color: #1f2933;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.mlm-product-search__item-sku {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
}

.mlm-product-search__item-price {
    color: #1f2933;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.mlm-product-search__empty {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 10px;
}

.mlm-product-search__view-all {
    align-items: center;
    border-radius: 6px;
    color: #ff6a00;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    justify-content: center;
    margin-top: 6px;
    min-height: 42px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
}

.mlm-product-search__view-all:hover,
.mlm-product-search__view-all:focus {
    background: #fff4ec;
    color: #ff321c;
    outline: none;
    text-decoration: none;
}

.mlm-product-search.is-loading .mlm-product-search__field {
    cursor: progress;
}

.mlm-product-search.is-loading .mlm-product-search__submit {
    opacity: .72;
}

@media (max-width: 560px) {
    .mlm-product-search {
        max-width: none;
    }

    .mlm-product-search__field {
        height: 42px;
    }

    .mlm-product-search__input {
        height: 40px;
        padding-right: 52px !important;
    }

    .mlm-product-search__field--with-category .mlm-product-search__input {
        padding-right: 52px !important;
    }

    .mlm-product-search__category {
        border-left: 0 !important;
        border-top: 1px solid #d8dde4 !important;
        height: 40px;
        margin-top: 42px !important;
        right: 0;
        top: 0;
        width: 100%;
    }

    .mlm-product-search__submit {
        height: 42px;
        width: 42px;
    }

    .mlm-product-search__clear {
        right: 47px;
        top: 6px;
    }

    .mlm-product-search__field--with-category .mlm-product-search__clear {
        right: 47px;
    }

    .mlm-product-search__field--with-category {
        height: 82px;
    }

    .mlm-product-search__field::after,
    .mlm-product-search.is-loading .mlm-product-search__field--with-category::after {
        right: 53px;
        top: 11px;
    }

    .mlm-product-search__dropdown {
        max-height: 70vh;
    }

    .mlm-product-search__item {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 76px;
    }

    .mlm-product-search__item-media {
        height: 58px;
        width: 58px;
    }

    .mlm-product-search__item-media img {
        max-height: 52px;
        max-width: 52px;
    }

    .mlm-product-search__item-title {
        font-size: 14px;
    }
}
