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

.rdg-blocks .rdg-quick-links {
    width: 100%;

    .content {
        width: 100%;
        display: flex;
        flex-direction: column;
        border-radius: .8rem;

        .header {
            display: flex;
            justify-content: center;
            padding: .5rem;
            border-top-left-radius: .8rem;
            border-top-right-radius: .8rem;
            background-color: var(--color-primary-dark-light);

            .title {
                color: var(--color-quick-link-title);
            }
        }

        .body {
            padding: 1rem;

            li {
                display: list-item;
                margin: inherit;
                align-items: center;
                list-style: disc;
                padding: .3rem 0;
                border-bottom: 1px solid var(--color-quick-link-border);
                color: var(--color-quick-link-item);

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

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

                &::marker {
                    font-size: .8rem;
                    color: var(--color-quick-link-li);
                }

                a {
                    color: var(--color-quick-link-a);

                    &:hover {
                        color: var(--color-quick-link-a-hover);
                    }
                }
            }
        }

        @include message;
    }
}

.acf-block-preview {
    .rdg-quick-links {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;

        .content {
            a {
                text-decoration: none;
            }
        }
    }
}
