Cardi B was cleared of assault by a Los Angeles jury after a security guard sued her for $24 million (£18 million) in a fingernail attack.

Emani Ellis alleged that the US rapper cut her cheek with a 3in (7.5cm) fingernail and spat on her outside an obstetrician's office in 2018. The rapper was pregnant at the time, which wasn't public knowledge.

The civil trial in Alhambra led to a series of viral moments as the rapper took the stand and offered colorful testimony about the incident and her fashion choices.

She told the court that the guard followed her and filmed her on her phone and wouldn't give her space or privacy. Ms. Ellis, though, said it left her traumatized.

The jury took only about an hour to clear the Grammy-winning rapper of the allegations of assault, battery, and intentional infliction of emotional distress as well as negligence and false imprisonment.

Speaking to reporters following the ruling, Cardi B said: I work all day and I work hard for my money, for my kids, for the people that I take care of. So don't you ever think that you're going to sue me, and I'm just going to settle.

The case revolved around Cardi B's obstetrics appointment when she was four months pregnant with her first child. The office closed for the day to shield her privacy, as her pregnancy was not publicly known.

Cardi B acknowledged to the court that she and Ms. Ellis had a profanity-laden shouting match after she showed up to the doctor's appointment. She said it was very heated - but denied ever touching the guard or spitting on her.

Her testimony went viral as she changed wigs and outfits each day of the trial. During closing arguments, Cardi B wore a black and white polka dot suit with a red bow, her hair tied up.

Ultimately, the jury cleared the rapper entirely in the case.

Outside the courthouse in Los Angeles County, a handful of fans showed up to support the rapper, one of whom held a sign that read, If the nail don't fit, u must acquit, referencing a famous phrase from the O.J. Simpson trial.