.wm-sg-host {
    position: relative;
}

.wm-sg {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    z-index: 1060;
    min-width: min(360px, calc(100vw - 24px));
    max-height: min(70vh, 540px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border: 1px solid rgb(var(--ev-dk-shade, 0 0 0) / 0.08);
    border-radius: 14px;
    background: var(--ev-dk-card, #fff);
    color: var(--ev-dk-ink, #161616);
    box-shadow: 0 18px 40px rgba(16, 24, 40, .16);
    text-align: start;
    font-size: 14px;
    line-height: 1.35;
}

.wm-sg[hidden],
.wm-sg [hidden] {
    display: none !important;
}

.wm-sg-list,
.wm-sg-group {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wm-sg-group + .wm-sg-group {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--ev-dk-line, #eef0f3);
}

.wm-sg-head {
    padding: 8px 10px 4px;
    color: #667085;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wm-sg-opt,
.wm-sg-opt:visited {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.wm-sg-opt:hover,
.wm-sg-opt.is-active {
    background: var(--ev-dk-surface, #f2f4f7);
    color: inherit;
}

.wm-sg-opt.is-active {
    box-shadow: inset 0 0 0 2px #161616;
}

.wm-sg-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ev-dk-surface, #f2f4f7);
}

.wm-sg-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wm-sg-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.wm-sg-name {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-weight: 500;
}

.wm-sg-name mark {
    padding: 0;
    background: transparent;
    color: inherit;
    font-weight: 700;
}

.wm-sg-meta {
    overflow: hidden;
    margin-top: 2px;
    color: #667085;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-sg-price {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
}

.wm-sg-price del {
    color: #98a2b3;
    font-size: 12px;
}

.wm-sg-price strong {
    font-weight: 700;
}

.wm-sg-member {
    color: var(--ev-dk-success, #067647);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.wm-sg-opt.is-link {
    padding-block: 9px;
}

.wm-sg-opt.is-all {
    justify-content: space-between;
    font-weight: 600;
}

.wm-sg-q {
    overflow: hidden;
    max-width: 50%;
    color: #667085;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-sg-empty {
    margin: 0;
    padding: 14px 12px;
    color: #667085;
}

@media (prefers-reduced-motion: no-preference) {
    .wm-sg-opt {
        transition: background-color .12s ease;
    }
}
