/* Result rows + hover flyouts for the FieldSearch/SearchSelect dropdowns. */

.field-search--item {
  width: 100%;

  /* Body clicks fall through to the row (button activation / label->checkbox).
     It grows to fill the row so a trailing chevron is always pinned right. */
  .field-search--item-body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    min-width: 0;
    flex: 1;
  }

  .field-search--item-label {
    font-size: var(--rem-14);
    line-height: var(--rem-22);
    font-variation-settings: 'wght' var(--text-medium);
    color: var(--text-action-neutral);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.field-search--item-checkbox {
  flex-shrink: 0;
}

.field-search--divider {
  width: calc(100% + .5rem);
  height: 1px;
  background-color: var(--border-primary);
  margin-block: .25rem;
  margin-inline: -.25rem;
}

.field-search--flyout {
  /* Popover UA-style resets: popovers default to margin auto + inset 0 + border. */
  margin: 0;
  inset: unset;
  border: none;
  position: fixed;

  /* Menu chrome, mirroring .dropdowns--menu. */
  padding: 0.25rem;
  border-radius: var(--table-radius);
  background-color: white;
  outline: solid 1px var(--neutral-200);
  box-shadow: 0 4px 12px -2px rgba(88, 107, 121, 0.2);
  min-width: 10rem;
  max-height: 300px;
  overflow-y: auto;
}
