


/* 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-color: var(--theme-faq-color, #666);
    --faq-font-weight: 500;


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

    &.is-white {
        --faq-icon-color: var(--theme-primary-color);
        --faq-active-color: var(--theme-white);
        --faq-color: var(--theme-white);
    }




    .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-block;
            width: 32px;
            height: 32px;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            background-color: var(--faq-color, #666);
            border-radius: 4px;

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

            &::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;
            }

        }



    }


}








