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

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

.moqt-live-search {
    position: absolute;
    z-index: 1050;
    inset: calc(100% + 3px) 0 auto;
    max-height: min(420px, 65dvh);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px;
    color: #181818;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 6px 22px rgb(0 0 0 / 12%);
}

.moqt-live-search-results {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.moqt-live-search .moqt-live-search-product {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 68px;
    padding: 6px;
    gap: 10px;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.moqt-live-search-product img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.moqt-live-search-price {
    display: block;
    margin-top: 3px;
    color: #4a2acb;
    font-weight: 600;
}

.moqt-live-search-price del {
    margin-inline-end: 5px;
    color: #686868;
    font-weight: 400;
}

.moqt-live-search .moqt-live-search-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 5px;
    padding: 5px;
    border-top: 1px solid #e5e5e5;
    color: #4a2acb;
    font-size: 14px;
    font-weight: 600;
}

.moqt-live-search a:hover {
    background: #f6f4ff;
}

.moqt-live-search a:focus-visible {
    outline: 2px solid #4a2acb;
    outline-offset: -2px;
}

.moqt-live-search-empty {
    padding: 10px;
    font-size: 14px;
}

@media (min-width: 768px) {
    .moqt-live-search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 9px;
    }
}
