/* FiboSearch in de huisstijl van de kop (inc/fibosearch.php).
   Balk: dezelfde pil als .searchbar in layout.css. Lijst: hetzelfde paneel
   als de eigen suggesties in search.css. De plug-in zet zijn opmaak met lange
   selectors; .bsv-fibo op de wrapper en body voor het paneel geven net genoeg
   voorrang zonder !important. */

/* --- Balk ----------------------------------------------------------------- */

.mast__search .dgwt-wcas-search-wrapp.bsv-fibo {
  min-width: 0;
  max-width: none;
  margin: 0;
  color: var(--bsv-ink);
  font-family: var(--bsv-font);
  line-height: 1.4;
}

.bsv-fibo .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp {
  display: flex;
  align-items: stretch;
  min-height: var(--bsv-touch);
  padding: 0;
  background: var(--bsv-surface);
  border-radius: var(--bsv-radius-pill);
  overflow: hidden;
}

/* De focusring zit om de hele pil, buiten de rand: binnen de pil snijdt
   overflow: hidden hem af. Zo is hij rond, en hij blijft staan zolang de
   focus in het veld of op de knop is. Het veld zelf krijgt daarom geen eigen
   ring meer; dit is de vervanging. */
.bsv-fibo .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp:focus-within {
  outline: 3px solid var(--bsv-yellow);
  outline-offset: 2px;
}

.bsv-fibo .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
.dgwt-wcas-open .bsv-fibo .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
  flex: 1;
  min-width: 0;
  height: auto;
  min-height: var(--bsv-touch);
  padding: 10px 44px 10px 20px;
  font-family: var(--bsv-font);
  font-size: var(--bsv-fs-base);
  color: var(--bsv-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bsv-fibo .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus,
.bsv-fibo .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus-visible {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.bsv-fibo .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
  color: var(--bsv-muted);
  font-style: normal;
  opacity: 1;
}

/* De knop krimpt niet mee; het veld geeft als eerste ruimte prijs. */
.bsv-fibo .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,
.dgwt-wcas-open .bsv-fibo .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
  position: static;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: var(--bsv-touch);
  min-height: var(--bsv-touch);
  padding: 0 22px;
  margin: 0;
  color: var(--bsv-black);
  font-family: var(--bsv-font);
  font-size: var(--bsv-fs-base);
  font-weight: 600;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  background: var(--bsv-yellow);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  cursor: pointer;
}

.bsv-fibo .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:hover,
.bsv-fibo .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:focus {
  background: var(--bsv-yellow-dark);
  opacity: 1;
}

/* Het pijltje links van de knop hoort bij een andere stijl van de plug-in. */
.bsv-fibo .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::before { content: none; }

/* Laadteken en wisknop staan in het veld, net links van de knop. */
.bsv-fibo .dgwt-wcas-sf-wrapp .dgwt-wcas-preloader {
  position: relative;
  inset: auto;
  flex: 0 0 var(--bsv-touch);
  width: var(--bsv-touch);
  height: auto;
  margin-left: calc(-1 * var(--bsv-touch));
  z-index: 1;
}

.bsv-fibo .dgwt-wcas-close path { fill: var(--bsv-muted); }

/* --- Suggesties -----------------------------------------------------------
   De plug-in hangt het paneel aan het eind van <body> en zet de plaats met
   inline stijl. Dezelfde vorm als .search-suggest__panel. */

body .dgwt-wcas-suggestions-wrapp {
  margin-top: var(--bsv-space-2);
  padding: 0;
  color: var(--bsv-ink);
  font-family: var(--bsv-font);
  background: var(--bsv-surface);
  border: 1px solid var(--bsv-muted);
  border-radius: var(--bsv-radius);
  overflow: hidden auto;
  overscroll-behavior: contain;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
  gap: var(--bsv-space-3);
  min-height: var(--bsv-touch);
  padding: var(--bsv-space-3);
  color: var(--bsv-ink);
  font-size: var(--bsv-fs-sm);
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid var(--bsv-line);
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-selected,
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:hover { background: var(--bsv-highlight); }

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
  width: 56px;
  max-width: none;
  height: 56px;
  max-height: none;
  padding: 0;
  object-fit: contain;
  background: none;
  border: 0;
  border-radius: 0;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp {
  gap: var(--bsv-space-3);
  padding-left: 0;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-st {
  color: var(--bsv-ink);
  font-size: var(--bsv-fs-sm);
  font-weight: 700;
  line-height: 1.4;
}

/* De plug-in maakt het getypte deel vet; de titel is hier al vet. */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-st strong { font-weight: inherit; }

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp {
  padding-left: 0;
  color: var(--bsv-ink);
  font-size: var(--bsv-fs-sm);
  white-space: nowrap;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-nores {
  padding: var(--bsv-space-4);
  font-size: var(--bsv-fs-sm);
  opacity: 1;
}

/* "Bekijk alle producten" als gele balk, zoals in het eigen paneel. */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-more {
  justify-content: flex-start;
  padding-inline: var(--bsv-space-4);
  color: var(--bsv-ink);
  font-weight: 700;
  background: var(--bsv-yellow);
  border-bottom: 0;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-more .dgwt-wcas-st-more { padding: 0; text-align: left; }
