[CSS] Updated the design of the accordion to better represent the relationship of the elements

As discussed in #4956.