I think this is what you are looking for
You need to get the custom post meta and add it to the wp_add_inline_style( $handle, $data );
, I advise using the “style” default handle. The position of your custom css will depend on the hook of your stylesheet.