To make this recipe gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend that includes xanthan gum or a similar binder. Ensure all remaining ingredients—particularly the cocoa powder, powdered sugar, and peanut butter—are labeled gluten-free to avoid cross-contamination. The texture and flavor of the cookies will remain rich and soft, with no compromise in structure or taste.