.tb-qna-form {
    display: flex;
    justify-content: center;
    position: relative;
}

.tb-qna-item {
    border-bottom: 1px solid rgba(44, 63, 104, 0.22);
}

.tb-qna-question {
    border: none;
    background-color: unset;
    padding: 0.45rem 0;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &::after {
        content: "+";
        font-weight: 700;
        color: #2f6fd0;
    }
}

.tb-qna-item.is-open .tb-qna-question::after {
    content: "-";
}

.tb-qna-extra {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-0.35rem);
    transition: max-height 0.6s ease, opacity 0.22s ease, transform 0.3s ease;
}

.tb-qna-extra.is-visible {
    max-height: 40rem;
    opacity: 1;
    transform: translateY(0);
}

.tb-qna-answer {
    padding: 0 0 0 0.75rem;
    color: #2c3f68 !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-0.25rem);
    transition: max-height 0.24s ease, opacity 0.18s ease, transform 0.24s ease, padding-bottom 0.24s ease;
}

.tb-qna-item.is-open .tb-qna-answer {
    max-height: 12rem;
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 0.7rem;
}

.tb-qna-form .tool-actions-area {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.tb-qna-form .tool-actions-area.is-hiding {
    opacity: 0;
    transform: translateY(-0.2rem);
}

.tb-qna-form .tool-actions {
    opacity: 0;
    transform: translateY(-0.2rem);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tb-qna-form .tool-actions.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .tb-qna-answer,
    .tb-qna-extra,
    .tb-qna-form .tool-actions-area,
    .tb-qna-form .tool-actions {
        transition: none;
        transform: none;
    }
}
