@import '../../../styles/fills';
@import '../../../styles/mixins';

.collapsibleText {
    display: flex;
    width: 100%;

    &_selectedBackground {
        width: 100%;
        border-radius: 2px;
        background-color: var(--background-color, $white);
        @include media-md-down {
            background-color: $white;
        }
    }

    &_QAgroup {
        padding: $collapsible-group_padding;
    }

    &_caret {
        height: 100%;
        width: 17px;
        color: $primary-color;
        float: right;
        cursor: pointer;
        path {
            @include fill-primary;
        }
    }
    
    &_caretContainer {
        width: 10%;
        cursor: pointer;
        margin-left: auto;
        margin-top: 5px;
    }

    &_toggleButton {
        padding: 0;
        background-color: transparent;
        border: none;
        width: 100%;
        display: flex;
        align-items: flex-start;
        cursor: pointer;
        font: inherit;
        color: inherit;
    }

    &_question {
        @include title-3;
        @include color-primary;
        margin: 0;
        text-align: left;
        line-height: 1.2;
    }

    &_textContainer {
        @include text-5;
        padding-top: 16px;
        width: 100%;
        line-height: 1.4em;
        display: block;
        @include media-md-down {
            @include word-wrap;
        }

        &--hidden {
            display: none;
        }
    }
}
