/* WRAP mengikuti spacing tema (rendah spesifisitas, mudah dioverride) */
:where(.ep-live-search-wrap){
  margin: var(--wp--style--block-gap, 1rem) 0;
}

/* INTI: biarkan tema yang mengatur ukuran/rectangle.
   Kita hanya pastikan lebar 100% & box-sizing yang benar. */
:where(.ep-live-search-input){
  width: 100%;
  box-sizing: border-box;
  /* biar 100% ikut font tema */
  font: inherit;
  color: inherit;
  background: inherit;
  /* JANGAN set padding/border/radius di sini; biar tema yang atur */
}

/* Placeholder readability—tetap halus, namun ikut tema untuk warna */
:where(.ep-live-search-input)::placeholder{
  opacity: .75;
}

/* Container hasil */
:where(.ep-live-search-results){
  margin-top: .5rem;
}

/* Default list tanpa mengganggu tema */
:where(.ep-live-search-results) ul.products{
  margin: 0;
}

/* State kosong / tidak ada hasil */
:where(.ep-live-search-results .ep-ls-nores),
:where(.ep-live-search-results .ep-ls-empty){
  padding: .5rem;
  opacity: .85;
}


/* Fallback ringan (hanya jika browser deteksi border-color default/transparent) */
@supports (color: color-mix(in srgb, black 0%, white)) {
  :where(.ep-live-search-input){
    border-color: currentColor;
  }
}
/* Kalau computed border masih non-existent di beberapa tema, kasih baseline halus */
:where(.ep-live-search-input){
  border-width: max(1px, 0.0625rem);
  border-style: solid;
  border-color: color-mix(in srgb, currentColor 15%, transparent);
  border-radius: .375rem;
  padding: .66em .8em;
}

@media (prefers-color-scheme: dark){
  :where(.ep-live-search-input)::placeholder{ opacity:.6; }
}

/* Force show labels & wholesale line specifically inside live-search results */
.ep-live-search-results .price .wc-price-label { 
  display: inline !important; 
}
.ep-live-search-results .wc-wholesale-inline { 
  display: block !important; 
  margin-top: .25em; 
}
