.wc-meili-result-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.wc-meili-result-row .wc-meili-result-img {
    width: 50px;
    flex: 0 0 50px;
}

.wc-meili-result-row .wc-meili-result-img img {
    width: 50px;
    border: 1px solid rgba(0 0 0 / 8%);
    border-radius: 5px;
}

.wc-meili-result-out-of-stock {
    color: #b73d3d;
    font-weight: bold;
    font-size: 12px;
    margin-top: 5px;
}

.wc-meili-result-price {
    margin-left: auto;
    color: #6a9dab;
    display: flex;
    flex-direction: column;
    text-align: right;
    flex: 0 0 75px;
    font-size: 12px;
    line-height: 1;
}

.wc-meili-show-all {
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
}

.wc-meili-show-all > a {
    color: #878993!important;
    border-top: 1px solid #f1f1f1;
}

.wc-meili-result-category-parent {
    color: #989898!important;
    font-size: 12px;
}

.wc-meilisearch__container {
    position: relative;
}

.wc-meilisearch__result {
    position: relative;
    z-index: 1000;
}

.wc-meilisearch__container:not(.result) .wc-meilisearch__result {
    display: none;
}

.wc-meilisearch__list {
    border: none;
    box-shadow: 0 0 8px rgb(0 0 0 / 15%), 0 4px 15px rgb(0 0 0 / 10%);
    overflow-y: auto;
    border-radius: 10px;
    padding: 0;
    position: absolute;
    margin: 2px 0 0 0;
    width: 100%;
    background-color: white;
    list-style: none;
    line-height: 1;
}

.wc-meilisearch__list > li {
    border-top: none!important;
    border-bottom: none!important;
    font-weight: normal!important;
}

.wc-meilisearch__list > li > a {
    display: block;
    padding: 10px;
    color: #343434;
    transition: background-color 0.2s ease;
}

.wc-meilisearch__list > li > a:hover {
    background-color: #efefef;
}

.wc-meilisearch__field input[type=text], .wc-meilisearch__field input[type=search] {
    border-radius: 2rem;
    border-color: #e2e2e2;
    box-shadow: 0 1px 2px 0 rgba(0 0 0 / 5%);
    padding: 12px 40px 12px 40px;
    outline: none;
    transition: box-shadow 0.2s ease;
    font-weight: normal;
    background-color: white;
}

.wc-meilisearch__field input:focus {
    outline: none;
    box-shadow: 0 1px 10px 0 rgba(0 0 0 / 8%);
    border-color: #26a2bc!important;
}

.wc-meilisearch__field input::placeholder {
    font-style: italic;
}

.wc-meilisearch__query {
    position: relative;
}

.wc-meilisearch__query svg {
    position: absolute;
    width: 26px;
    top: 50%;
    left: 6px;
    margin-top: -13px;
    stroke: #c2c2c2;
}

.wc-meilisearch__container:not(.cancel) .wc-meilisearch__cancel-button {
    display: none;
}

.wc-meilisearch__cancel-button {
    position: absolute;
    font-size: 30px;
    padding: 0 10px;
    line-height: 1;
    top: 50%;
    margin-top: -15px;
    right: 6px;
    color: #acacac;
    transition: color 0.2s ease;
    cursor: pointer;
}

.wc-meilisearch__cancel-button:hover {
    color: #be2c2c;
}

.wc-meilisearch__list > li.wc-meilisearch__group {
    border-bottom: 1px solid #f1f1f1!important;
    margin-top: 10px;
}

.wc-meilisearch__group > a {
    background-color: white!important;
    color: #565759!important;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 13px;
    cursor: default;
}

.wc-meilisearch__item strong {
    background-color: #efefef;
    border-radius: 3px;
    color: #545659;
}

.wc-meilisearch__item.wc-meilisearch__group-categories.active > a {
    background-color: transparent!important;
}

.wc-meilisearch__item.wc-meilisearch__group-categories.active > a:hover .wc-meili-result-category {
    text-decoration: underline;
}

.wc-meilisearch__empty {
    color: #9f9f9f!important;
    font-style: italic;
}

.wc-meilisearch__container.loading .wc-meilisearch__query:before,
.wc-meilisearch__container.loading .wc-meilisearch__query:after {
    right: 10px;
    margin-top: -12px;
    width: 24px;
    height: 24px;
}

.wc-meilisearch__empty {
    padding: 24px 16px;
}

.wc-meilisearch__container.loading .wc-meilisearch__query::before, .wc-meilisearch__container.loading .wc-meilisearch__query::after {
    -webkit-transition: all 0s linear, opacity 0.2s ease;
    -o-transition: all 0s linear, opacity 0.2s ease;
    transition: all 0s linear, opacity 0.2s ease;
    position: absolute;
    z-index: 3;
    content: "";
    top: 50%;
    right: 40px;
    margin-top: -13px;
    width: 26px;
    height: 26px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 500rem;
    border-style: solid;
    border-width: 0.1em;
}

.wc-meilisearch__container.loading .wc-meilisearch__query::before {
    border-color: rgba(0, 0, 0, 0.35);
}

.wc-meilisearch__container.loading .wc-meilisearch__query::after {
    -webkit-animation: button-spin 0.6s linear;
    animation: button-spin 0.6s linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    border-color: #fff transparent transparent;
    -webkit-box-shadow: 0 0 0 1px transparent;
    box-shadow: 0 0 0 1px transparent;
}

@-webkit-keyframes button-spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes button-spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
