The first approach should make the popup prefer appearing above the button when there’s room, while still allowing it to flip below when needed. The second approach just styles the appearance while letting ACF’s JavaScript handle all positioning logic.