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

@property --new-paragraph-custom-line {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --new-paragraph-custom-sub-title {syntax: "<color>";inherits: true;initial-value: #7F8C8D;}
@property --new-paragraph-custom-description {syntax: "<color>";inherits: true;initial-value: #111111;}

.rdg-blocks .rdg-new-paragraph-custom {
    .preview-thumbs {
        background-image: url('../images/rdg-new-paragraph-custom-template-preview.jpg');
    }

    width: calc(var(--vw, 1vw) * 100);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 99.55vw;

    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;

        @include title;

        .items {
            .item {
                padding-top: 1rem;
                padding-bottom: 1rem;
                border-bottom: 1px solid var(--new-paragraph-custom-line);

                &:first-of-type {
                    padding-top: 0;
                }

                &:last-of-type {
                    padding-bottom: 0;
                    border-bottom: none;
                }

                .sub-title {
                    color: var(--new-paragraph-custom-sub-title);
                }

                .description {
                    text-align: justify;
                    padding-top: 1.5rem;
                    color: var(--new-paragraph-custom-description);
                }
            }
        }
    }
}

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