.chl-search-v2 {
    position: relative;
}

.chl-search-v2-suggest {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    overflow: auto;
    max-height: 520px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.chl-search-v2-suggest[hidden] {
    display: none !important;
}

.chl-search-v2-suggest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 12px 0 0;
}

.chl-search-v2-suggest__item.is-active,
.chl-search-v2-suggest__item:hover {
    background: rgba(0, 0, 0, 0.055);
}

.chl-search-v2-suggest__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 70px;
    padding: 8px 14px;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.chl-search-v2-suggest__link:focus {
    text-decoration: underline;
}

.chl-search-v2-suggest__image {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.chl-search-v2-suggest__body {
    min-width: 0;
    flex: 1 1 auto;
}

.chl-search-v2-suggest__name {
    display: block;
    overflow: hidden;
    color: #252525;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.chl-search-v2-suggest__prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 5px;
    white-space: nowrap;
}

.chl-search-v2-suggest__price {
    color: #252525;
    font-size: 15px;
    font-weight: 700;
}

.chl-search-v2-suggest__base-price {
    color: #8d8d8d;
    font-size: 13px;
    text-decoration: line-through;
}


.chl-search-v2-suggest__cart-widget {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 176px;
    min-width: 176px;
}

.chl-search-v2-suggest__cart-widget.is-pending {
    opacity: 0.68;
}

.chl-search-v2-suggest__cart-widget.is-error {
    animation: chl-search-v2-cart-error 0.22s linear 2;
}

.chl-search-v2-suggest__cart-button,
.chl-search-v2-suggest__cart-control-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #4dbd45;
    color: #fff;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}

.chl-search-v2-suggest__cart-button:hover,
.chl-search-v2-suggest__cart-button:focus,
.chl-search-v2-suggest__cart-control-button:hover,
.chl-search-v2-suggest__cart-control-button:focus {
    background: #3fa738;
    outline: none;
}

.chl-search-v2-suggest__cart-button:active,
.chl-search-v2-suggest__cart-control-button:active {
    transform: translateY(1px);
}

.chl-search-v2-suggest__cart-button:disabled,
.chl-search-v2-suggest__cart-control-button:disabled {
    cursor: wait;
    pointer-events: none;
}

.chl-search-v2-suggest__cart-button::before,
.chl-search-v2-suggest__cart-control-button::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
}

.chl-search-v2-suggest__cart-button::before {
    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 4h2.2l1.5 9.1c.2 1.1 1.1 1.9 2.2 1.9h8.7c1 0 1.9-.7 2.1-1.7L21 7H7.1l-.4-2.4A2 2 0 0 0 4.8 3H3v1Zm5 5h10.6l-.8 3.8c0 .1-.1.2-.2.2H8.9c-.1 0-.2-.1-.2-.2L8 9Zm1 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 4h2.2l1.5 9.1c.2 1.1 1.1 1.9 2.2 1.9h8.7c1 0 1.9-.7 2.1-1.7L21 7H7.1l-.4-2.4A2 2 0 0 0 4.8 3H3v1Zm5 5h10.6l-.8 3.8c0 .1-.1.2-.2.2H8.9c-.1 0-.2-.1-.2-.2L8 9Zm1 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.chl-search-v2-suggest__cart-button.is-unavailable {
    background: #c9c9c9;
    cursor: default;
}

.chl-search-v2-suggest__cart-control {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-width: 176px;
    padding: 4px;
    border-radius: 27px;
    background: #f4f4f4;
}

.chl-search-v2-suggest__cart-control-button {
    width: 46px;
    height: 46px;
}

.chl-search-v2-suggest__cart-control-button.is-plus::before,
.chl-search-v2-suggest__cart-control-button.is-minus::before {
    width: 22px;
    height: 22px;
}

.chl-search-v2-suggest__cart-control-button.is-plus::before {
    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5Z'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5Z'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.chl-search-v2-suggest__cart-control-button.is-minus::before {
    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 11h14v2H5v-2Z'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 11h14v2H5v-2Z'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.chl-search-v2-suggest__cart-control-button.is-delete::before {
    width: 22px;
    height: 22px;
    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 3h6l1 2h4v2H4V5h4l1-2Zm-3 6h12l-1 12H7L6 9Zm3 2 .6 8h1.5l-.3-8H9Zm4.2 0-.3 8h1.5l.6-8h-1.8Z'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 3h6l1 2h4v2H4V5h4l1-2Zm-3 6h12l-1 12H7L6 9Zm3 2 .6 8h1.5l-.3-8H9Zm4.2 0-.3 8h1.5l.6-8h-1.8Z'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.chl-search-v2-suggest__cart-quantity {
    min-width: 56px;
    color: #252525;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

@keyframes chl-search-v2-cart-error {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }
}

.chl-search-v2-suggest__status {
    padding: 13px 14px;
    color: #666;
    font-size: 14px;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .chl-search-v2-suggest {
        max-height: min(65vh, 460px);
        border-radius: 8px;
    }

    .chl-search-v2-suggest__item {
        gap: 6px;
        padding-right: 7px;
    }

    .chl-search-v2-suggest__link {
        min-height: 62px;
        padding: 7px 8px;
    }

    .chl-search-v2-suggest__cart-widget {
        flex-basis: 148px;
        min-width: 148px;
    }

    .chl-search-v2-suggest__cart-button,
    .chl-search-v2-suggest__cart-control-button {
        width: 40px;
        height: 40px;
    }

    .chl-search-v2-suggest__cart-button::before,
    .chl-search-v2-suggest__cart-control-button::before {
        width: 21px;
        height: 21px;
    }

    .chl-search-v2-suggest__cart-control {
        min-width: 148px;
        gap: 4px;
        padding: 3px;
    }

    .chl-search-v2-suggest__cart-quantity {
        min-width: 50px;
        font-size: 12px;
    }

    .chl-search-v2-suggest__image {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .chl-search-v2-suggest__name {
        font-size: 14px;
    }
}
