:root {
  --barschel-search-picker-radius: 0.5rem;
}

.barschel-search-picker {
  position: relative;
  width: 100%;
}

.barschel-search-picker.is-disabled {
  opacity: 0.65;
  pointer-events: none;
}

.barschel-search-picker__label {
  font-weight: 600;
}

.barschel-search-picker__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.barschel-search-picker__input {
  padding-right: 4.5rem;
  border-radius: var(--barschel-search-picker-radius);
}

.barschel-search-picker__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--bs-secondary-color, #6c757d);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.barschel-search-picker__button:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.barschel-search-picker__button--clear {
  right: 2.25rem;
}

.barschel-search-picker__button--caret {
  right: 0.5rem;
}

.barschel-search-picker__dropdown {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 0.25rem);
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.175));
  border-radius: calc(var(--barschel-search-picker-radius) + 0.1rem);
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.12);
  padding: 0.35rem 0;
}

.barschel-search-picker__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: none;
  transition: background 0.12s ease;
}

.barschel-search-picker__option:hover,
.barschel-search-picker__option.is-active {
  background: rgba(13, 110, 253, 0.08);
}

.barschel-search-picker__option:focus-visible {
  outline: none;
}

.barschel-search-picker__option-main {
  font-weight: 600;
  color: var(--bs-body-color, #212529);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.barschel-search-picker__option-meta {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-top: 0.15rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.barschel-search-picker__meta {
  padding: 0.75rem;
  text-align: center;
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.9rem;
}

.barschel-search-picker__loading {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--bs-secondary-color, #6c757d);
}

.barschel-search-picker__mark {
  padding: 0 0.1rem;
  border-radius: 0.2rem;
  background: rgba(255, 193, 7, 0.35);
}

