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

@property --color-product-report-title-bg {syntax: "<color>";inherits: true;initial-value: #0160ac}
@property --color-product-report-title {syntax: "<color>";inherits: true;initial-value: #ffffff}
@property --color-product-report-title-icon {syntax: "<color>";inherits: true;initial-value: #ffffff}

.rdg-blocks .rdg-product-report {
    .preview-thumbs {
        background-image: url('../images/rdg-product-report-template-preview.jpg');
    }
    width: 100%;
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;

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

        @include title;

        .header {
            display: flex;
            justify-content: space-between;
            padding: .6rem 1rem;
            border-top-right-radius: .6rem;
            border-top-left-radius: .6rem;
            background-color: var(--color-product-report-title-bg);

            .header-title {
                color: var(--color-product-report-title);
            }

            .header-icon {
                display: flex;
                justify-content: center;
                align-items: center;
                
                svg {
                    fill: var(--color-product-report-title-icon);
                }
            }
        }

        .body {
            padding: 1rem;

            p {
                margin-bottom: 1.2rem;

                &:last-of-type {
                    margin-bottom: 0;
                }
            }
        }

        @include message;
    }
}

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