


/* FAQ */

.faq-wrap {


    --faq-icon-color: var(--theme-faq-icon-color, #ffffff);
    --faq-border-color: var(--theme-faq-border-color, #d9d9d9);
    --faq-active-color: var(--theme-faq-active-color, #000000);
    --faq-background-color: var(--theme-faq-background-color, #666);
    --faq-color: var(--theme-faq-color, #666);
    --faq-font-weight: 500;
    --faq-opacity: 0.325;



    &.weight-400 {
        --faq-font-weight: 400;
    }

    &.is-white {
        --faq-icon-color: var(--theme-primary-color);
        --faq-active-color: var(--theme-white);
        --faq-background-color: var(--theme-white);
        /*--faq-border-color: var(--theme-white);*/
        --faq-color: var(--theme-white);
        --faq-opacity: 0.25;
    }


    &.is-slate {
        --faq-icon-color: var(--theme-white);
        --faq-active-color: var(--theme-slate-color);
        --faq-background-color: var(--theme-slate-color);
        --faq-border-color: var(--theme-light);
        --faq-color: var(--theme-black);
    }



    .faq-item {


        color: var(--faq-color, #666);

        .faq-wrap:not(.no-border) & {

            &:not(:last-child) {
                border-bottom: 2px solid var(--faq-border-color, #d9d9d9);
            }

        }



        .faq-title {
            position: relative;

            &,
            & > h1,
            & > h2,
            & > h3,
            & > h4 {
                font-size: 1rem;
                line-height: 1.35em;
                font-weight: var(--faq-font-weight, 500);
            }

            padding: 15px 0 15px;
            margin: 0;
        }


        .faq-content {
            position: relative;
            padding: 0 0 20px;
            margin-top: -5px;
        }


        .faq-title,
        .faq-content {
            padding-left: 46px;
        }


        &:not(.disabled) .faq-title {
            cursor: pointer;
        }


        &:not(.active) .faq-content {
            display: none;
        }


        .faq-icon {
            display: inline-flex;
            width: 32px;
            height: 32px;
            position: absolute;
            left: 0;
            top: 50%;
            border-radius: 4px;
            transform: translateY(-50%);


            .faq-wrap.rounded & {
                border-radius: 999px;
            }

            &.has-icon {
                justify-content: center;
                align-items: center;
            }

            &:not(.has-icon) {

                background-color: var(--faq-background-color, #666);
                color: var(--faq-icon-color, #fff);

                &::before,
                &::after {
                    content: ' ';
                    position: absolute;
                    width: 16px;
                    height: 2px;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    background: var(--faq-icon-color, #fff);
                    transition: 0.2s;
                }

                &::after {
                    transform: translate(-50%, -50%) rotate(90deg);
                }

            }

        }


        &.active-pre .faq-icon,
        &.active .faq-icon {

            &::after {
                opacity: 0;
            }

        }



    }



    &.has-opacity {

        .faq-item {
            transition: opacity 0.2s;
        }

        &.has-active .faq-item:not(.active):not(.active-pre) {
            opacity: var(--faq-opacity, 1);
        }

    }





}








