@use "@/src/assets/scss/variables" as *;
@use "@/src/assets/scss/partial" as *;

.FaqsItem{
    margin-bottom: 16px;
    &:last-child{
        margin-bottom: 0px;
    }
    .FaqsItemHeader{
        cursor: pointer;
        .FaqHeaderIcon{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 28px;
            max-width: 28px;
            height: 28px;
            transition: 0.2s all;
            background-color: $secondaryColor;
            border-radius: 100%;
            @media (min-width: $sm) {
                min-width: 30px;
                max-width: 30px;
                height: 30px;
            }
            @media (min-width: $md) {
                min-width: 36px;
                max-width: 36px;
                height: 36px;
            }
            i{
                position: relative;
                transition: 0.2s all;
                &::before , &::after{
                    content: "";
                    position: absolute;
                    background-color: $whiteColor;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50% , -50%);
                }
                &::after{
                    width: 2px;
                    height: 14px;
                }
                &::before{
                    width: 14px;
                    height: 2px;
                }
            }
        }
    }
    .FaqsItemBody{
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    }
    &.FaqActive{
        transition: max-height 0.4s ease-in-out;
        max-height: 1000px;
        overflow: visible;
        .FaqsItemHeader{
            transition: 0.4s all;
            background-color: $secondaryColor;
            .FaqHeading{
                color: $whiteColor;
            }
            .FaqHeaderIcon{
                background-color: $whiteColor;
                i{
                    &::before , &::after{
                        background-color: $blackColor;
                    }
                    &:after{
                        display: none;
                    }
                }
            }
        }
    }
}