/* Live search dropdown for the marketplace search boxes (marketplace-search.js) */

.mp-live-host {
    position: relative;
}

.mp-live-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max(100%, 380px);
    max-width: calc(100vw - 24px);
    max-height: 440px;
    overflow-y: auto;
    z-index: 1050;
    padding: 6px;
    background: var(--dk-bg-ffffff,#ffffff);
    border: 1px solid var(--dk-bd-e2e8f0,#e2e8f0);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    text-align: left;
    font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Dropdown attached to the page for search boxes inside scrolling containers (the sidebar);
   top/left/width are set by marketplace-search.js */
.mp-live-panel.is-fixed {
    position: fixed;
    max-width: none;
    z-index: 10000015;
}

.mp-live-panel.is-loading {
    opacity: 0.7;
}

.mp-live-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dk-tx-0f172a,#0f172a);
}

.mp-live-item:hover,
.mp-live-item.is-active {
    background: var(--dk-bg-f5f6fa,#f5f6fa);
}

.mp-live-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    background: var(--dk-bg-f1f5f9,#f1f5f9);
}

.mp-live-body {
    flex: 1;
    min-width: 0;
}

.mp-live-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dk-tx-0f172a,#0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-live-meta {
    margin-top: 2px;
    font-size: 12px;
    color: var(--dk-tx-64748b,#64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-live-price {
    flex-shrink: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #4f46e5;
}

.mp-live-price.is-sold {
    color: #94a3b8;
    font-weight: 600;
}

.mp-live-all {
    display: block;
    margin-top: 4px;
    padding: 10px 8px 6px;
    border-top: 1px solid var(--dk-bd-eef0f5,#eef0f5);
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

.mp-live-all:hover {
    text-decoration: underline;
}

.mp-live-empty {
    padding: 14px 10px;
    font-size: 13px;
    color: var(--dk-tx-64748b,#64748b);
}

/* The home hero clips its decoration with overflow:hidden; let an open dropdown spill out
   over the listings below while it is showing */
.mp-hero:has(.mp-live-panel:not([hidden])) {
    overflow: visible;
    z-index: 20;
}
