I live on S Coast. I walk the beach often, and totally understand the lure of a beach hut. A friend has one, she loves it. Sitting inside or out, with a book/music, being able to hear the sea, tea from your camping has stove, walking on the beach, chatting to dog walkers and passers-by
My nearest beach huts cost about £36k (twice what they were in mid 2000s?). Two miles down the road a little cheaper £33k. Ten miles in the other direction under £20k. All have an unobstructed view of the sea (Some places have them in a couple of parallel lines)
Personally I think at 40 miles away, you wouldn't get the most out of a buy. Petrol is getting more expensive again, and a round trip of 80 miles might not sound too inviting in a few years time.
If you can rent one for a year, that might help you decide - winter beach walks (rain and all) are the best.