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

@property --color-quick-link-sidebar-header-bg {syntax: "<color>";inherits: true;initial-value: #0160ac}
@property --color-quick-link-sidebar-title {syntax: "<color>";inherits: true;initial-value: #FFFFFF}
@property --color-quick-link-sidebar-border {syntax: "<color>";inherits: true;initial-value: #CCC}
@property --color-quick-link-sidebar-item {syntax: "<color>";inherits: true;initial-value: #0160ac}
@property --color-quick-link-sidebar-li {syntax: "<color>";inherits: true;initial-value: #00bb08}
@property --color-quick-link-sidebar-a {syntax: "<color>";inherits: true;initial-value: #0160ac}
@property --color-quick-link-a-sidebar-hover {syntax: "<color>";inherits: true;initial-value: #3a96e0}

.rdg-blocks .rdg-quick-links-sidebar {
    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-quick-link-sidebar-header-bg);

            .title {
                color: var(--color-quick-link-sidebar-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-sidebar-border);
                color: var(--color-quick-link-sidebar-item);

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

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

                &::marker {
                    color: var(--color-quick-link-sidebar-li);
                }

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

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

        @include message;
    }
}

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

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