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

@property --color-box-list-title-bg {syntax: "<color>";inherits: true;initial-value: #f59c00;}
@property --color-box-list-title {syntax: "<color>";inherits: true;initial-value: #fff;}
@property --color-box-list-body-bg {syntax: "<color>";inherits: true;initial-value: #fff;}
@property --color-box-list-content-li {syntax: "<color>";inherits: true;initial-value: #00bb08;}
@property --color-box-list-input-bg {syntax: "<color>";inherits: true;initial-value: #f0f0f0;}
@property --color-box-list-content-label {syntax: "<color>";inherits: true;initial-value: #000;}
@property --color-box-list-content-remember {syntax: "<color>";inherits: true;initial-value: #000;}
@property --color-box-list-foter-link {syntax: "<color>";inherits: true;initial-value: #fff;}
@property --color-box-list-foter-link-bg {syntax: "<color>";inherits: true;initial-value: #f59c00;}
@property --color-box-list {syntax: "<color>";inherits: true;initial-value: #90ee90}

.rdg-blocks .rdg-box-list {
    width: 100%;

    @include title;

    .body {
        .box-register {
            width: 100%;

            .box-title {
                padding: .4rem;
                border-top-right-radius: .5rem;
                border-top-left-radius: .5rem;
                background-color: var(--color-box-list-title-bg);
                text-align: center;
                color: var(--color-box-list-title);
            }

            .box-body {
                background-color: var(--color-box-list-body-bg);
                padding: 1.5rem 2.5rem 1rem 2.5rem;

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

                .heading {
                    display: flex;
                    justify-content: center;
                    text-align: center;
                }

                .box-content {
                    display: flex;
                    justify-content: center;
                    margin-top: 1rem;

                    ul {
                        margin: 0;

                        li {
                            list-style: none;
                            margin: 1.3rem 0;

                            i {
                                margin-right: .5rem;                                
                                color: var(--color-box-list-content-li);
                            }
                        }
                    }
                }

                label, input[type=text], a {
                    width: 100%;
                    display: block;
                }

                input[type=text] {
                    border-radius: .5rem;
                    margin-bottom: 1.5rem;
                    background-color: var(--color-box-list-input-bg);
                }

                label {
                    color: var(--color-box-list-content-label);
                    padding-bottom: .5rem;
                }

                .remember {
                    margin-left: .5rem;
                    color: var(--color-box-list-content-remember);
                }

                .box-footer {
                    display: flex;
                    justify-content: center;
                    margin: 1.5rem 0;

                    a {
                        color: var(--color-box-list-foter-link);
                        width: auto;
                        text-align: center;
                        padding: .5rem 3rem;
                        border-radius: 1.5rem;
                        background-color: var(--color-box-list-foter-link-bg);

                        @media (max-width: $breakpoint-md) {
                            & {
                                padding: .5rem 2rem;
                            }
                        }

                        @media (max-width: $breakpoint-sm) {
                            & {
                                padding: .5rem 1rem;
                            }
                        }
                    }
                }
            }
        }

        .box-list {
            width: 50%;
            background-color: var(--color-box-list);
        }
    }
}

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