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

@property --color-rdg-bookie-logo-li {syntax: "<color>";inherits: true;initial-value: #111111;}

.rdg-blocks .rdg-bookie-logo {
    width: 100%;
    .preview-thumbs {
        background-image: url('../images/rdg-bookie-logo-template-preview.jpg');
    }
    .content {
        width: 100%;
        display: flex;
        flex-direction: column;

        @include title;

        &.column {
            .logo {
                display: flex;
                justify-content: flex-start;

                @media (max-width: $breakpoint-md) {
                    & {
                        justify-content: center;
                        margin-bottom: .8rem;
                    }
                }

                img {
                    @media (max-width: $breakpoint-md) {
                        & {
                            max-width: 18rem;
                        }
                    }

                    @media (max-width: $breakpoint-sm) {
                        & {
                            max-width: 14rem;
                        }
                    }

                    @media (max-width: 300px) {
                        & {
                            max-width: 12rem;
                        }
                    }
                }
            }

            ul {
                @media (max-width: $breakpoint-md) {
                    & {
                        align-items: center;
                    }
                }
            }
        }

        &.full {
            .logo {
                display: flex;
                justify-content: flex-start;

                img {
                    max-width: 18rem;

                    @media (max-width: $breakpoint-sm) {
                        & {
                            max-width: 14rem;
                        }
                    }

                    @media (max-width: 300px) {
                        & {
                            max-width: 12rem;
                        }
                    }
                }
            }
        }

        ul {
            display: flex;
            flex-direction: column;
            margin: inherit;
            background-position: left 4px;

            .center {
                display: flex;
                flex-direction: column;
                gap: .2rem;

                li {
                    display: flex;
                    flex-direction: row;
                    margin: inherit;
                    align-items: center;
                    padding-left: .8rem;
                    list-style-type: none;
                    color: var(--color-rdg-bookie-logo-li);

                    @media (max-width: $breakpoint-sm) {
                        & {
                            padding-left: 0;
                        }
                    }

                    .icon {
                        width: 1.2rem;
                        height: 1.2rem;
                        margin-right: .5rem;

                        svg {
                            fill: var(--list-color);
                        }
                    }
                }

                li.check {
                    background-image: url('../images/check.svg');
                }

                li.circle {
                    background-image: url('../images/circle.svg');
                }

                li.dot {
                    background-image: url('../images/dot.svg');
                }

                li.chevron {
                    background-image: url('../images/chevron.svg');
                }
            }
        }

        @include message;
    }
}

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