/* BSG R2A.3 — fit the product-list column; isolate visuals from the website's global header styles. */
.bsg-picker {
  --bsg-pk-main: var(--main, #8F5135);
  --bsg-pk-main-dark: var(--bg-main, #713C2B);
  --bsg-pk-text: #292724;
  --bsg-pk-muted: #77726c;
  --bsg-pk-border: #e3dcd4;
  --bsg-pk-panel: #f8f6f3;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  margin: 28px 0 0;
  color: var(--bsg-pk-text);
  font-size: 14px;
  line-height: 1.5;
  font-family: inherit;
}
.bsg-picker, .bsg-picker * { box-sizing: border-box; }
.bsg-picker [hidden] { display: none !important; }
.bsg-picker__inner {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid var(--bsg-pk-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
/* This is a div, not a header: the site's global header {position:fixed} must not affect it. */
.bsg-picker__header {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  position: static;
  transform: none;
  color: var(--bsg-pk-text);
}
.bsg-picker__header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: inherit;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: #242424;
  text-transform: none;
}
.bsg-picker__header h2::before {
  content: '';
  width: 26px;
  height: 3px;
  flex: 0 0 26px;
  background: var(--bsg-pk-main);
}
.bsg-picker__lead { margin: 0; color: var(--bsg-pk-muted); line-height: 1.55; }
.bsg-picker__preview {
  margin: 0 0 15px;
  padding: 10px 13px;
  border: 1px solid #efdaba;
  border-radius: 8px;
  background: #fcf7ed;
  color: #7e573d;
}
.bsg-picker__admin-revision { margin: 0 0 18px; padding: 12px; border: 1px dashed #ccbeb2; border-radius: 8px; }
.bsg-picker__admin-revision label { display: block; margin: 0 0 7px; font-weight: 600; }
.bsg-picker__empty,
.bsg-picker__result {
  min-width: 0;
  margin: 0 0 16px;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--bsg-pk-border);
  border-radius: 10px;
  background: var(--bsg-pk-panel);
}
.bsg-picker__empty-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.bsg-picker__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: #f1e6de;
  color: var(--bsg-pk-main);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.bsg-picker__tag--result { background: #eee6df; color: var(--bsg-pk-main-dark); }
.bsg-picker__subtag { color: var(--bsg-pk-muted); font-size: 12px; }
.bsg-picker__empty h3,
.bsg-picker__result h3,
.bsg-picker__form h3 {
  margin: 0 0 9px;
  font-family: inherit;
  font-size: clamp(17px, 1.75vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #2b2825;
}
.bsg-picker__empty p { margin: 0; color: #706960; line-height: 1.55; }
.bsg-picker__placeholder { display: block; width: 100%; max-width: 340px; height: auto; max-height: 125px; margin: 10px auto 0; }
.bsg-picker__placeholder g:first-child { stroke: #b8ada1; }
.bsg-picker__placeholder g:last-child { stroke: #d6d0c9; }
.bsg-picker__form { min-width: 0; margin: 0 0 16px; padding: 16px; border: 1px solid var(--bsg-pk-border); border-radius: 10px; background: #fff; }
.bsg-picker__fields { display: grid; gap: 8px; min-width: 0; }
.bsg-picker__fields label { display: block; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #4d4039; }
.bsg-picker__select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #d7ccc1;
  border-radius: 8px;
  background: #fff;
  color: #2d2925;
  font: inherit;
}
.bsg-picker__select:disabled { background: #f6f4f1; color: #8b857f; cursor: not-allowed; }
.bsg-picker__result { background: #fff; }
.bsg-picker__result h3 { margin: 13px 0 14px; font-size: clamp(18px, 1.9vw, 23px); overflow-wrap: anywhere; }
.bsg-picker__drawing { max-width: 100%; min-height: 0; margin: 0 auto 16px; text-align: center; }
.bsg-picker__drawing img { display: block; width: auto; height: auto; max-width: 100%; max-height: 340px; object-fit: contain; margin: 0 auto; }
.bsg-picker__drawing a { display: inline-block; color: var(--bsg-pk-main); text-decoration: underline; margin: 7px 0 12px; }
.bsg-picker__specs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 10px 0 0; }
.bsg-picker__specs > div { min-width: 0; margin: 0; padding: 11px 13px; border-radius: 8px; background: #f5f1ed; }
.bsg-picker__specs dt { margin: 0 0 4px; font-size: 12px; color: #777068; }
.bsg-picker__specs dd { margin: 0; font-size: 15px; font-weight: 700; color: #2a2622; overflow-wrap: anywhere; }
.bsg-picker__state { margin: 0 0 11px; min-height: 0; color: var(--bsg-pk-main); line-height: 1.45; }
.bsg-picker__state:empty { display: none; }
.bsg-picker__actions { display: grid; gap: 9px; margin: 14px 0 0; }
.bsg-picker__actions button,
.bsg-picker__reset { width: 100%; min-width: 0; min-height: 44px; padding: 10px 14px; border-radius: 8px; font: inherit; font-weight: 700; line-height: 1.3; }
.bsg-picker__actions button { border: 1px solid var(--bsg-pk-main); background: var(--bsg-pk-main); color: #fff; }
.bsg-picker__actions button:disabled { opacity: .58; cursor: not-allowed; }
.bsg-picker__actions button + button { background: #fff; color: var(--bsg-pk-main); }
.bsg-picker__reset { margin: 12px 0 0; border: 1px solid #c8a892; background: #fff; color: var(--bsg-pk-main); cursor: pointer; }
.bsg-picker__reset:hover { background: #f8f1ec; }
.bsg-picker__reset:focus-visible,
.bsg-picker__select:focus-visible { outline: 2px solid var(--bsg-pk-main); outline-offset: 2px; }
@media (max-width: 680px) {
  .bsg-picker { margin-top: 22px; }
  .bsg-picker__inner { padding: 14px; }
  .bsg-picker__empty, .bsg-picker__result { padding: 13px; }
  .bsg-picker__form { padding: 13px; }
  .bsg-picker__specs { grid-template-columns: 1fr; }
  .bsg-picker__drawing img { max-height: 260px; }
}

/* R2B.1g: searchable number field + natural sorting (no global selectors). */
.bsg-picker__number-combo { position:relative; width:100%; min-width:0; }
.bsg-picker__number-controls { display:flex; align-items:stretch; gap:8px; min-width:0; }
.bsg-picker .bsg-picker__number-search { flex:1 1 auto; min-width:0; margin:0; background:#fff; }
.bsg-picker .bsg-picker__number-sort { flex:0 0 185px; width:185px; margin:0; padding-right:18px; font-size:12px; }
.bsg-picker .bsg-picker__number-native-hidden { display:none !important; }
.bsg-picker__number-options { position:absolute; top:calc(100% - 2px); left:0; right:0; z-index:45; max-height:min(320px, 48vh); overflow-y:auto; background:#fff; border:1px solid #d7ccc1; border-radius:8px; box-shadow:0 12px 28px rgba(33,27,20,.16); padding:5px; }
.bsg-picker__number-options[hidden] { display:none !important; }
.bsg-picker__number-option { display:block; width:100%; border:0; border-radius:5px; background:transparent; padding:9px 11px; text-align:left; color:#2d2925; font:inherit; font-size:13px; line-height:1.35; cursor:pointer; }
.bsg-picker__number-option:hover, .bsg-picker__number-option--active { background:#f0e6de; color:#603b27; }
.bsg-picker__number-option[aria-selected="true"] { font-weight:700; }
.bsg-picker__number-none { padding:11px; color:#777068; font-size:13px; }
.bsg-picker__number-hint { min-height:0; margin-top:4px; font-size:11px; color:#777068; }
.bsg-picker__number-hint:empty { display:none; }
@media (max-width:680px) {
 .bsg-picker__number-controls { flex-direction:column; }
 .bsg-picker .bsg-picker__number-sort { flex:0 0 auto; width:100%; }
 .bsg-picker__number-options { max-height:45vh; }
}
