/* Group dropdowns: label/description above price, with both check icons reserved. */
[data-slot="popover-content"] [data-slot="command-item"]:has(> svg + span.min-w-0.flex-1 + [data-slot="badge"]) {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) 1rem;
  column-gap: 0.75rem;
  row-gap: 0.375rem;
  align-items: start;
}

[data-slot="popover-content"] [data-slot="command-item"]:has(> svg + span.min-w-0.flex-1 + [data-slot="badge"]) > svg:first-of-type {
  grid-column: 1;
  grid-row: 1;
}

[data-slot="popover-content"] [data-slot="command-item"]:has(> svg + span.min-w-0.flex-1 + [data-slot="badge"]) > span.min-w-0.flex-1 {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

[data-slot="popover-content"] [data-slot="command-item"]:has(> svg + span.min-w-0.flex-1 + [data-slot="badge"]) > span.min-w-0.flex-1 > span.block {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  line-height: 1.45;
}

[data-slot="popover-content"] [data-slot="command-item"]:has(> svg + span.min-w-0.flex-1 + [data-slot="badge"]) > [data-slot="badge"] {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 1.25rem;
  padding-block: 0.125rem;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
  text-align: left;
  justify-content: flex-start;
}

[data-slot="popover-content"] [data-slot="command-item"]:has(> svg + span.min-w-0.flex-1 + [data-slot="badge"]) > svg:last-of-type {
  grid-column: 3;
  grid-row: 1;
  margin-left: 0;
}

/* Only the group combobox has this selected-text structure and chevron pair. */
[data-slot="popover-trigger"][role="combobox"]:has(> svg.lucide-chevrons-up-down) > span.flex-1 > span.min-w-0 {
  flex: 1 1 0%;
}

[data-slot="popover-trigger"][role="combobox"]:has(> svg.lucide-chevrons-up-down) > span.flex-1 > span.min-w-0 > span.block {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  line-height: 1.45;
}
