.cir-product-svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.product-label .product-icon:has(.cir-product-svg) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cir-picker-field {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cir-picker-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cir-picker-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cir-picker-selected {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cir-picker-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.cir-picker-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(22 24 29 / 17%);
}

.cir-picker-panel[hidden],
.cir-picker-option[hidden],
.cir-picker-empty[hidden] {
  display: none;
}

.cir-picker-search {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.cir-picker-options {
  max-height: min(320px, 45vh);
  margin-top: 5px;
  overflow-y: auto;
}

.cir-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.cir-picker-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cir-picker-option:hover:not(:disabled),
.cir-picker-option[aria-pressed="true"] {
  background: #eaf1ff;
}

.cir-picker-option:not(:disabled) .cir-product-svg {
  color: var(--accent);
}

.cir-picker-option:disabled {
  background: #f1f3f7;
  color: #6d7888;
  cursor: not-allowed;
}

.cir-picker-empty {
  margin: 8px 6px;
  color: var(--muted);
  font-size: 11px;
}

.cir-picker-toggle:focus-visible,
.cir-picker-search:focus-visible,
.cir-picker-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 640px) {
  .scope-selector-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
