@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

.rdg-blocks .rdg-heading-paragraph {
    width: 100%;

    .content {
        width: 100%;
        display: flex;
        flex-direction: column;

        .heading-container {
            display: flex;
            justify-content: var(--justify);

            .center {
                display: flex;

                .border {
                    background-color: var(--border-color);
                    width: var(--border-size);
                    margin: 8px 10px 3px 0;
    
                    @media (max-width: $breakpoint-sm) {
                        & {
                            margin: 0 10px 0 0;
                        }
                    }
                }
    
                @include heading;
            }
        }

        .body {
            padding: 1rem;
            border-radius: .8rem;
            border: 1px solid var(--color-heading-paragraph-border);

            p {
                color: var(--color-heading-paragraph-body-color);
                &:last-of-type {
                    margin-bottom: 0;
                }
            }
        }

        @include message;
    }
}

.acf-block-preview {
    .rdg-heading-paragraph {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
