In the image you show those shadows appear to be merely multiple objects. You can see the bit of sloppiness on the two inside corners shown. There's any number of ways to create them. Multiple inlines on the white fill, drop shadows on the red outline, etc.