.wc-lps,
.wc-lps * {
    box-sizing: border-box;
}

.wc-lps {
    --wc-lps-accent: #c9151e;
    --wc-lps-text: #151515;
    --wc-lps-muted: #818181;
    --wc-lps-border: #dedede;
    position: relative;
    width: 100%;
    z-index: 0;
    font-family: inherit;
}

.wc-lps__form {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--wc-lps-border);
    border-radius: 5px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.wc-lps--open .wc-lps__form,
.wc-lps__form:focus-within {
    border-color: var(--wc-lps-accent);
    box-shadow: 0 0 0 1px var(--wc-lps-accent);
}

.wc-lps__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    margin: 0 !important;
    padding: 0 52px 0 15px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--wc-lps-text);
    font: inherit;
    font-size: 15px;
    line-height: 44px;
    appearance: none;
}

.wc-lps__input::-webkit-search-cancel-button {
    cursor: pointer;
}

.wc-lps__submit {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--wc-lps-text);
    cursor: pointer;
}

.wc-lps__submit:hover,
.wc-lps__submit:focus {
    background: transparent;
    color: var(--wc-lps-accent);
}

.wc-lps__submit svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.wc-lps__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: min(650px, 78vh);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    color: var(--wc-lps-text);
    scrollbar-width: thin;
}

.wc-lps__results[hidden] {
    display: none !important;
}

.wc-lps-panel__section {
    padding: 14px 15px 0;
}

.wc-lps-panel__section--products {
    padding-top: 17px;
}

.wc-lps-panel__heading {
        margin: 0 0 4px;
    padding: 0 0 9px;
    border-bottom: 1px solid #d7d7d7;
    color: rgba(116, 116, 116, 1);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

.wc-lps-category {
   display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 8px 3px 8px 0;
    color: var(--wc-lps-text) !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    text-decoration: none !important;
    font-family: 'Roboto';
}

.wc-lps-category:hover {
    color: var(--wc-lps-accent) !important;
}

.wc-lps-category svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-left: 12px;
    fill: #777;
}

.wc-lps-products {
    width: 100%;
}

.wc-lps-product {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
    min-height: 82px;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
}

.wc-lps-product:last-child {
    border-bottom: 0;
}

.wc-lps-product__main {
        display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    color: var(--wc-lps-text) !important;
    text-decoration: none !important;
}

.wc-lps-product__image-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 2px;
    background: #fff;
}

.wc-lps-product__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.wc-lps-product__content {
    display: block;
    min-width: 0;
}

.wc-lps-product__title {
      display: -webkit-box;
    overflow: hidden;
    color: var(--wc-lps-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.wc-lps-product__main:hover .wc-lps-product__title {
    color: var(--wc-lps-accent);
}

.wc-lps-product__sku {
        display: block;
    margin-top: 8px;
    overflow: hidden;
    color: #8b8b8b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-lps-product__aside {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 9px;
    min-width: 0;
}

.wc-lps-product__price {
    min-height: 19px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.wc-lps-product__price .amount {
          font-size: 16px !important;
    font-weight: 600;
    color: rgba(4, 4, 4, 1) !important;
       font-family: 'Inter';
}

.wc-lps-product__price del {
    margin-right: 5px;
    color: #969696;
    font-size: 13px;
    font-weight: 400;
    opacity: 1;
}

.wc-lps-product__price ins {
    color: var(--wc-lps-accent);
    text-decoration: none;
}

.wc-lps-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 31px;
    margin: 0;
    padding: 6px 7px;
    border: 1px solid transparent;
    border-radius: 2px;
    box-shadow: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.wc-lps-button--cart {
    border-color: var(--wc-lps-accent);
    background: var(--wc-lps-accent);
    color: #fff !important;
    cursor: pointer;
}

.wc-lps-button--cart:hover,
.wc-lps-button--cart:focus,
.wc-lps-button--cart.is-loading,
.wc-lps-button--cart.is-added {
    border-color: #a90f17;
    background: #a90f17;
    color: #fff !important;
}

.wc-lps-button--cart:disabled {
    opacity: .78;
    cursor: wait;
}

.wc-lps-button--stock {
    border-color: #e4c7c7;
    background: #fff;
    color: #777;
    cursor: default;
}

.wc-lps-button--options {
    border-color: var(--wc-lps-accent);
    background: #fff;
    color: var(--wc-lps-accent) !important;
}

.wc-lps-button--options:hover,
.wc-lps-button--options:focus {
    background: var(--wc-lps-accent);
    color: #fff !important;
}

.wc-lps-panel__footer {
    display: flex;
    justify-content: center;
    padding: 17px 15px 16px;
}

.wc-lps-panel__all {
        display: inline-flex;
    align-items: center;
    justify-content: center;
    /* min-height: 33px; */
    padding: 12px 24px;
    border: 1px solid var(--wc-lps-accent);
    border-radius: 8px;
    background: #fff;
    color: var(--wc-lps-text) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
}

.wc-lps-panel__all:hover,
.wc-lps-panel__all:focus {
    background: var(--wc-lps-accent);
    color: #fff !important;
}

.wc-lps-panel__loading,
.wc-lps-panel__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 90px;
    padding: 20px;
    color: var(--wc-lps-muted);
    font-size: 14px;
    text-align: center;
}

.wc-lps-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #dedede;
    border-top-color: var(--wc-lps-accent);
    border-radius: 50%;
    animation: wc-lps-spin .7s linear infinite;
}

@keyframes wc-lps-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .wc-lps__results {
        max-height: 72vh;
    }

    .wc-lps-product {
        grid-template-columns: minmax(0, 1fr) 98px;
        gap: 7px;
    }

    .wc-lps-product__main {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 7px;
    }

    .wc-lps-product__image-wrap {
        width: 40px;
        height: 40px;
    }

    .wc-lps-product__title {
        font-size: 12px;
    }

    .wc-lps-product__price {
        font-size: 14px;
    }

    .wc-lps-button {
        padding-right: 4px;
        padding-left: 4px;


       font-size: 12px;
    }
}



.wc-lps-product__reference {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #6f6f6f;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}


@media (max-width: 800px){
    .wc-lps-product__action .added_to_cart.wc-forward{
        font-size: 12px;
    width: max-content;
    left: 0;
    /* background: no-repeat; */
    /* color: black; */
    top: 33px;
    font-weight: 500;
    width: 100%;
    text-align: center;
    font-family: 'Roboto';
    }

    .wc-lps-product__action{
        position: relative;
    }

}
