.esr-live-search-anchor {
    position: relative;
}

.esr-live-search {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 1055;
    min-width: 16rem;
    max-height: 28rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.esr-live-search[hidden] {
    display: none !important;
}

.esr-live-search__item,
.esr-live-search__more {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.625rem 0.75rem;
    color: inherit;
    text-decoration: none;
}

.esr-live-search__item:hover,
.esr-live-search__item:focus,
.esr-live-search__item.is-active,
.esr-live-search__more:hover,
.esr-live-search__more:focus,
.esr-live-search__more.is-active {
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    text-decoration: none;
    outline: 0;
}

.esr-live-search__image-wrap {
    flex: 0 0 3.75rem;
    width: 3.75rem;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.25rem;
}

.esr-live-search__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.esr-live-search__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.esr-live-search__title {
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.esr-live-search__price {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 0.925rem;
}

.esr-live-search__price-old {
    text-decoration: line-through;
    opacity: 0.65;
}

.esr-live-search__price-special {
    font-weight: 700;
}

.esr-live-search__loading,
.esr-live-search__empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
}

.esr-live-search__spinner {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    border: 0.15rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: esr-live-search-spin 0.75s linear infinite;
}

.esr-live-search__more {
    justify-content: center;
    font-weight: 600;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@keyframes esr-live-search-spin {
    to {
        transform: rotate(360deg);
    }
}
