Amazon.com's losses expected to shrink