details.wp-block-details {
    border-radius: 10px;

    summary{
        &::after{
            content: url("../../../images/details-arrow.svg");
            font-family: unset;
            font-size: 0;
            transition-property: rotate;
            transition-duration: 0s;
        }
    }

    &.is-selected, &[open] {
        & summary {
            &::after {
                rotate: -180deg;
            }
        }
    }

    &.is-style-with-background-colour {
        border-radius: 10px;
        padding: clamp(0.938rem, 0.865rem + 0.385vw, 1.25rem) clamp(0.938rem, 0.721rem + 1.154vw, 1.875rem) clamp(0.938rem, 0.865rem + 0.385vw, 1.25rem) 0;

        &.is-selected, &[open] {
            background-color: var(--wp--preset--color--light-grey);
            padding: clamp(0.938rem, 0.865rem + 0.385vw, 1.25rem) clamp(0.938rem, 0.721rem + 1.154vw, 1.875rem) clamp(0.938rem, 0.865rem + 0.385vw, 1.25rem) 0;
        }

        > *{
            padding-left: clamp(0.938rem, 0.721rem + 1.154vw, 1.875rem);
        }

        > *:not(summary){
            margin-left: clamp(0.938rem, 0.721rem + 1.154vw, 1.875rem);
        }

        summary{
            padding-left: clamp(0.938rem, 0.721rem + 1.154vw, 1.875rem);
            padding-right: clamp(2.5rem, 2.067rem + 2.308vw, 4.375rem);

            &::after{
                left: unset;
                right: 0;
            }
        }
    }
}
