.heading-text-buttons__inner {
    display: flex;
    flex-direction: column;
    min-height: 1px;
}

.heading-text-buttons__inner--button-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: var(--space-xl);
}

.heading-text-buttons__inner--button-right > .heading-text-buttons__icon {
    grid-column: 1;
    grid-row: 1;
}

.heading-text-buttons__inner--button-right > .heading-text-buttons__preheading {
    grid-column: 1;
    grid-row: 2;
}

.heading-text-buttons__inner--button-right > .heading-text-buttons__heading,
.heading-text-buttons__inner--button-right > .heading-text-buttons__content-column {
    grid-row: 3;
}

.heading-text-buttons__inner--button-right > .heading-text-buttons__heading {
    grid-column: 1;
}

.heading-text-buttons__content-column {
    grid-column: 2;
    min-width: 0;
    margin-top: 0;
    margin-block-start: 0;
}

.heading-text-buttons__content-column > .heading-text-buttons__buttons {
    margin-top: 0;
    margin-block-start: 0;
}

.heading-text-buttons__inner--stacked {
    align-items: center;
    text-align: center;
}

.heading-text-buttons__inner--stacked > :not(.heading-text-buttons__buttons) {
    width: 100%;
    margin-inline: auto;
}

.heading-text-buttons__inner--stacked > .heading-text-buttons__icon {
    width: auto;
    max-width: 100%;
    height: auto;
}

.heading-text-buttons__icon + .heading-text-buttons__preheading {
    margin-top: var(--space-xl);
    margin-block-start: var(--space-xl);
}

.heading-text-buttons__inner--stacked .heading-text-buttons__buttons {
    align-items: center;
    align-self: center;
    justify-content: center;
}
