.customer-picker {
  position: relative;
  min-width: 0;
  max-width: 100%;
  color: var(--ink, #14253a);
}
.customer-picker [hidden] { display: none !important; }
.customer-picker-control { position: relative; min-width: 0; }
.field .customer-picker .customer-picker-search,
.document-editor .customer-picker .customer-picker-search {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px !important;
  padding: 10px 48px 10px 12px !important;
  font: inherit;
  font-size: 16px !important;
  line-height: 1.4;
  color: var(--ink, #14253a) !important;
  background: var(--pane, #fff) !important;
  border: 1px solid var(--line, #d7e2e5) !important;
  border-radius: 7px;
  box-sizing: border-box;
}
.customer-picker-search:focus-visible {
  outline: 2px solid var(--glass, #5bc4d3);
  outline-offset: 2px;
}
.customer-picker .customer-picker-clear {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 7px 7px 0;
  color: var(--muted, #566976);
  background: transparent;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.customer-picker-clear:hover { color: var(--ink, #14253a); background: var(--pane-tint, #f6fafa); }
.customer-picker-clear:focus-visible { outline: 2px solid var(--glass-deep, #11253b); outline-offset: -4px; }
.customer-picker-help {
  margin: 6px 0 0;
  color: var(--doc-muted, var(--muted, #566976));
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.customer-picker-panel {
  position: absolute;
  z-index: 40;
  inset-inline: 0;
  top: calc(100% + 5px);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--pane, #fff);
  border: 1px solid var(--line, #d7e2e5);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(17, 37, 59, .16);
}
.customer-picker-list {
  max-height: min(320px, 42vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.customer-picker .customer-picker-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line, #d7e2e5);
  border-radius: 0;
  background: var(--pane, #fff);
  color: var(--ink, #14253a);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: start;
  white-space: normal;
  cursor: pointer;
}
.customer-picker .customer-picker-option:last-child { border-bottom: 0; }
.customer-picker .customer-picker-option:hover,
.customer-picker .customer-picker-option.is-active,
.customer-picker .customer-picker-option:focus-visible {
  background: var(--glass-tint, #e3f7fa);
  outline: 2px solid var(--glass-deep, #11253b);
  outline-offset: -2px;
}
.customer-picker-name,
.customer-picker-context { display: block; width: 100%; min-width: 0; overflow-wrap: anywhere; }
.customer-picker-name { font-weight: 650; }
.customer-picker-context { font-size: 12px; color: var(--doc-muted, var(--muted, #566976)); }
.customer-picker-status {
  margin: 0;
  padding: 10px 13px;
  border-top: 1px solid var(--line, #d7e2e5);
  color: var(--doc-muted, var(--muted, #566976));
  background: var(--pane-tint, #f6fafa);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.customer-picker-panel[data-state="error"] .customer-picker-status { color: var(--red, #b3402f); }
.customer-picker-panel[data-state="offline"] .customer-picker-status { color: var(--amber, #8a5a13); }
.field .customer-picker.is-disabled .customer-picker-search,
.document-editor .customer-picker.is-disabled .customer-picker-search { background: var(--bg, #f1f5f7) !important; color: var(--muted, #566976) !important; cursor: not-allowed; }
.field.invalid .customer-picker .customer-picker-search,
.customer-picker .customer-picker-search[aria-invalid="true"] { border-color: var(--red, #b3402f) !important; outline-color: var(--red, #b3402f); }
@media (max-width: 680px) {
  .customer-picker-list { max-height: min(280px, 38vh); }
  .customer-picker .customer-picker-option { min-height: 56px; }
}
