Device for thermal treatment of a body part shaped to anatomically fit to the body part, comprising at least one cooling element, the cooling element comprising an outer layer of permeable fabric and an inner layer of permeable fabric, the cooling element being attached to a support layer, wherein the inner layer is connected to the outer layer in a connecting pattern, the connecting pattern forming pockets, at least part of the pockets containing an absorbing polymer material and cooling element as specified suitable for application in the device.