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

@property --color-rdg-heading-paragraph-border {syntax: "<color>";inherits: true;initial-value: #cccccc;}
@property --color-rdg-heading-paragraph-p {syntax: "<color>";inherits: true;initial-value: #111111;}

.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-rdg-heading-paragraph-border);
            color: var(--color-rdg-heading-paragraph-p);

            p {
                color: var(--color-rdg-heading-paragraph-p);
                &: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;
    }
}
