/* 寵物品種下拉（可自填）。顏色走變數：淺色表單用預設值，深色頁（彩虹橋）在自己的 CSS 覆寫 --bcb-* */
.bcb { position: relative; display: block; width: 100%; }
.bcb > input { width: 100%; padding-right: 2.4rem !important; box-sizing: border-box; }
.bcb-toggle {
  position: absolute; top: 0; right: 0; bottom: 0; width: 2.4rem; padding: 0; margin: 0; border: 0; background: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bcb-toggle:focus, .bcb-toggle:focus-visible { outline: none; }
.bcb-caret { width: 0; height: 0; border-left: 0.32rem solid transparent; border-right: 0.32rem solid transparent; border-top: 0.4rem solid var(--bcb-dim, #888); transition: transform 0.15s ease; }
.bcb.is-open .bcb-caret { transform: rotate(180deg); }
.bcb-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.25rem); z-index: 30; margin: 0; padding: 0.3rem; list-style: none;
  max-height: 14rem; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bcb-bg, #fff); color: var(--bcb-fg, #222); border: 1px solid var(--bcb-line, #d8d8d8); border-radius: 0.7rem; box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.18);
}
.bcb-list[hidden] { display: none; }
.bcb-opt { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; padding: 0.55rem 0.7rem; border-radius: 0.5rem; cursor: pointer; font-size: 0.95rem; line-height: 1.4; }
.bcb-opt.is-active, .bcb-opt:hover { background: var(--bcb-hover, #f1f1f1); }
.bcb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcb-sub { flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; color: var(--bcb-dim, #888); }
.bcb-none { padding: 0.7rem; font-size: 0.85rem; color: var(--bcb-dim, #888); }
