


#bte-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 9999;
}

.bte-search-item {
    display: flex;
    align-items: center;
    padding: 8px;
    text-decoration: none;
    color: #333;
}

.bte-search-item:nth-child(odd) {
    background: #f9f9f9;
}

.bte-search-item:nth-child(even) {
    background: #e9e9e9;
}

.bte-search-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 4px;
}

.bte-search-item:hover {
    background: #d6f0ff;
}

.bte-search-text {
    display: flex;
    flex-direction: column;
}

.bte-title {
    font-size: 14px;
    color: #333;
}

.bte-sku {
    font-size: 12px;
    color: #666;
}
#bte-search-wrapper{ position: relative; }

#bte-search-results .bte-item{display:flex;gap:8px;padding:8px;border-bottom:1px solid #eee;text-decoration:none}
#bte-search-results .bte-thumb{width:40px;height:40px;object-fit:cover;border-radius:4px;flex:0 0 40px}
#bte-search-results .bte-text{display:flex;flex-direction:column;gap:2px}
#bte-search-results .bte-title{font-weight:600;line-height:1.2}
#bte-search-results .bte-meta{font-size:.9em;opacity:.9}
#bte-search-results .bte-price{margin-right:8px;font-weight:600}
#bte-search-results .bte-sku{font-size:.85em;opacity:.8}

.bte-search-instance{ position:relative; display:inline-block; }
.bte-search-trigger{
  width:40px; height:40px; border-radius:9999px;
  display:flex; align-items:center; justify-content:center;
  background:#111; color:#fff; border:0; cursor:pointer;
}
.bte-search-trigger .dashicons{ font-size:20px; line-height:1; }

.bte-search-wrapper{
  position:absolute; right:0; top:48px; z-index:9999;
  width:420px; max-width:92vw; background:#fff; border:1px solid #eee;
  border-radius:10px; box-shadow:0 12px 28px rgba(0,0,0,.18); padding:10px;
}
.bte-search-input{ width:100%; padding:10px; border:1px solid #ddd; border-radius:8px; margin-bottom:8px; }

.bte-search-results{ max-height:320px; overflow-y:auto; }
.bte-search-results:empty{ display:none; }

/* Centered near top */
.bte-search-instance .bte-search-wrapper{
  position: fixed !important;
  top: 90px;               /* adjust if needed */
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  width: 700px;
  max-width: 92vw;
  z-index: 99999;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  padding: 10px;
}

/* Taller scroll area */
.bte-search-instance .bte-search-results{ max-height: 420px; overflow-y: auto; }
.bte-search-instance .bte-search-results:empty{ display:none; }

/* Force item styles (override theme) */
.bte-search-instance .bte-search-results .bte-item{
  display:flex !important; gap:8px; padding:8px;
  border-bottom:1px solid #eee; text-decoration:none !important;
}
.bte-search-instance .bte-search-results .bte-thumb{
  width:40px; height:40px; object-fit:cover; border-radius:4px; flex:0 0 40px;
}
.bte-search-instance .bte-search-results .bte-text{ display:flex; flex-direction:column; gap:2px; }
.bte-search-instance .bte-search-results .bte-title{ font-weight:600; line-height:1.2; }
.bte-search-instance .bte-search-results .bte-sku{ font-size:.85em; opacity:.8; }
.bte-search-instance .bte-search-results .bte-meta{ font-size:.9em; opacity:.9; }
.bte-search-instance .bte-search-results .bte-price{ margin-right:8px; font-weight:600; }
