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

.rdg-blocks .rdg-faq {
    width: 100%;

    .title {
        width: 100%;
        display: flex;

        h1, h2, h3, span {
            margin: 0;
            font-weight: 400;
            font-size: var(--font-size);
            line-height: var(--line-height);
    
            @media (max-width: $breakpoint-lg) {
                & {
                    font-size: var(--font-size-lg);
                    line-height: var(--line-height-lg);
                }
            }
    
            @media (max-width: $breakpoint-md) {
                & {
                    font-size: var(--font-size-md);
                    line-height: var(--line-height-md);
                }
            }
    
            @media (max-width: $breakpoint-sm) {
                & {
                    font-size: var(--font-size-sm);
                    line-height: var(--line-height-sm);
                }
            }
        }
    }

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

        #items {
            .item {
                .header {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    border-radius: .5rem;
                    min-height: 2.5rem;
                    margin-bottom: .7rem;
                    padding-left: .7rem;
                    cursor: pointer;
                    background-color: var(--color-faq-item-title-bg);

                    &.no-radio {
                        margin-bottom: 0;
                        border-bottom-left-radius: 0;
                        border-bottom-right-radius: 0;
                    }

                    .icon {
                        .hide {
                            display: none;
                        }
                    }
    
                    li {
                        margin-bottom: 0;
                        padding: .5rem 0 .5rem .5rem;
                        color: var(--color-faq-item-title);

                        &:before {
                            content: "";
                            margin-left: -1rem;
                        }

                        &::marker {
                            position: absolute;
                            margin-top: 3rem;
                            color: var(--color-faq-item-marker);
                        }

                        span {
                            position: relative;
                            left: .5rem;
                          }
                    }
    
                    i {
                        margin-right: 1rem;
                        color: var(--color-faq-item-icon);
                        filter: drop-shadow(0px 2px 1px rgb(49 -5 -4 / 45%));
                    }
                }
    
                .body {
                    padding: 1rem 2rem;
                    margin-bottom: 1rem;
                    text-align: justify;
                    color: var(--color-faq-item-content);
                    background-color: var(--color-faq-item-content-bg);
                    border: 1px solid var(--color-faq-item-content-border);

                    p {
                        margin-bottom: 0;
                    }
                }
            }
        }
    }
}

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