/* FAQ */
.cpx-faq__item {
    --faq-plusminus-size: 10px;

    border-radius: 0px;
    position: relative;

    /* Make the circle around the psuedo elements of the question because we need a 3rd element */
    &:before {
        content: '';
        position: absolute;
        left: 0;
        top: 22px;
        width: 20px;
        height: 20px;
        border-radius: 30px;
        transition: background-color 0.3s ease;
        z-index: -1;
        border: 1px solid var(--e-global-color-text);
    }

    /* Line below */
    &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: var(--e-global-color-text);
        transition: background-color 0.3s ease;
    }
}

.cpx-faq__item+.cpx-faq__item {
    border-top: 1px solid var(--e-global-color-primary);
}

.cpx-faq__item__question {
    position: relative;
    padding: 1.2em 0em;
    padding-left: 2em;
    cursor: pointer;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    list-style: none;
    color: var(--e-global-color-text);
    transition: color 0.3s ease;
}

.cpx-faq__item__question:hover {
    color: var(--e-global-color-08644bb);
}

.cpx-faq__item__question::-webkit-details-marker {
    display: none;
}

.cpx-faq__item__question::before,
.cpx-faq__item__question::after {
    content: '';
    position: absolute;
    background-color: var(--e-global-color-text);
    transition: all 0.3s ease;
}

.cpx-faq__item__question::before {
    left: 5px;
    top: 32px;
    width: var(--faq-plusminus-size);
    height: 1px;
    transform: translateY(-50%);
}

.cpx-faq__item__question::after {
    left: 10px;
    top: 27px;
    width: 1px;
    height: var(--faq-plusminus-size);
    transform-origin: center;
}

.cpx-faq__item[open] .cpx-faq__item__question::before,
.cpx-faq__item[open] .cpx-faq__item__question::after {
    transform: rotate(90deg);
}

.cpx-faq__item[open] .cpx-faq__item__question::before {
    opacity: 0;
}

.cpx-faq__item[open] .cpx-faq__item__question {
    /* color: var(--e-global-color-accent); */
}

.cpx-faq__item__answer {
    padding: 0 1em 1em;
    line-height: 1.6;
    background-color: #fff;
    /* border: 1px solid var(--e-global-color-908c1ee); */
    padding-left: 35px;
    margin-bottom: 1em;
}

.cpx-faq__item__answer p:last-child {
    margin-bottom: 0;
}

.cpx-faq__tag-title {
    color: var(--e-global-color-text);
}