.live-search {
    position: relative;
    width: min(100%, 720px);
}

.live-search__panel {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    overflow-y: auto;
    max-height: 520px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.live-search__status {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.live-search__list {
    display: flex;
    flex-direction: column;
}

.live-search__item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #ededed;
}

.live-search__item:hover,
.live-search__item:focus,
.live-search__item--active {
    background: #f3f4f6;
    outline: none;
}

.live-search__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    background: #f1f1f1;
    border-radius: 6px;
}

.live-search__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-search__placeholder {
    padding: 4px;
    font-size: 11px;
    text-align: center;
}

.live-search__details,
.live-search__meta {
    display: flex;
}

.live-search__details {
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.live-search__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-search__meta {
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

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

.live-search__stock {
    font-size: 13px;
}

.live-search__stock--out {
    opacity: 0.65;
}

.live-search__all-results {
    display: block;
    padding: 14px 16px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 600px) {
    .live-search__panel {
        position: fixed;
        top: 76px;
        right: 12px;
        left: 12px;
        max-height: calc(100vh - 100px);
    }
}

.live-search__section {
    padding: 14px 16px;
}

.live-search__section + .live-search__section {
    border-top: 1px solid #e5e5e5;
}

.live-search__heading {
    margin: 0 0 12px;
    font-size: 16px;
}

.live-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.live-search__chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 14px;
    color: inherit;
    text-decoration: none;
    background: #f3f4f6;
    border: 1px solid #e2e4e8;
    border-radius: 6px;
}

.live-search__chip:hover,
.live-search__chip:focus,
.live-search__chip.live-search__item--active {
    background: #e5e7eb;
    outline: none;
}

.live-search__section .live-search__list {
    margin: 0 -16px -14px;
}

.live-search__input-wrap {
    position: relative;
    display: inline-block;
}

.live-search__input-wrap input[type="search"] {
    box-sizing: border-box;
    padding-right: 42px;
}

.live-search__input-wrap input[type="search"]::-webkit-search-cancel-button {
    appearance: none;
}

.live-search__close {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #777;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
    transform: translateY(-50%);
}

.live-search__close:hover,
.live-search__close:focus {
    color: #111;
    outline: none;
}

.live-search__close[hidden] {
    display: none;
}
