How to measure for a pillow box
Lay the item flat. Length is its long side, width its face, and depth its thickness. The box is thinner toward the curved ends, so give a thick item extra length rather than only extra depth.
Keep the depth under about 60% of the width, or the curve cannot make it. Under 10% the ends barely bend, which suits a pillow box for a gift card.
