.tgfaq {
    --tgfaq-gap: 12px;
    --tgfaq-icon-size: 16px;
    --tgfaq-icon-wrap-size: 36px;
    display: flex;
    flex-direction: column;
    gap: var(--tgfaq-gap);
    width: 100%;
}

.tgfaq-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tgfaq-heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.tgfaq-intro {
    font-size: 16px;
    line-height: 1.6;
}

.tgfaq-item {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tgfaq-question {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    border: 0;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    line-height: normal;
    white-space: normal;
    transition: 0.2s ease;
}

.tgfaq-question:focus {
    outline: none;
}

.tgfaq-question:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.tgfaq-question-text {
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tgfaq-icon-wrap {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: var(--tgfaq-icon-wrap-size);
    height: var(--tgfaq-icon-wrap-size);
    min-width: var(--tgfaq-icon-wrap-size);
}

.tgfaq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: var(--tgfaq-icon-size);
    line-height: 1;
}

.tgfaq-icon svg {
    width: var(--tgfaq-icon-size);
    height: var(--tgfaq-icon-size);
}

.tgfaq-icon-open {
    display: none;
}

.tgfaq-item.is-open .tgfaq-icon-open {
    display: inline-flex;
}

.tgfaq-item.is-open .tgfaq-icon-closed {
    display: none;
}

.tgfaq-answer {
    overflow: hidden;
}

.tgfaq-answer-inner {
    line-height: 1.7;
}

.tgfaq-answer-inner > *:first-child {
    margin-top: 0;
}

.tgfaq-answer-inner > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .tgfaq-question {
        align-items: start;
    }

    .tgfaq-icon-wrap {
        align-self: start;
        margin-top: 2px;
    }
}
