.wp-block-accordion-item{border:var(--wp--accordion-border-width) solid var(--wp--accordion-border-color);display:grid;grid-template-rows:0fr;&.is-open{--wp--accordion-btn-icon-transform:rotate(180deg);grid-template-rows:1fr;.wp-block-accordion-heading__toggle}.wp-block-accordion-panel{visibility:visible}}.wp-block-accordion-item:first-of-type{border-top-left-radius:var(--wp--accordion-border-radius);border-top-right-radius:var(--wp--accordion-border-radius)}.wp-block-accordion-item:last-of-type{border-bottom-left-radius:var(--wp--accordion-border-radius);border-bottom-right-radius:var(--wp--accordion-border-radius)}.wp-block-accordion-item:not(:first-of-type){border-top:0}@media (prefers-reduced-motion:no-preference){.wp-block-accordion-item{transition:grid-template-rows .3s ease-out}}