// (C) 2026 GoodData Corporation

.gd-ui-kit-inline-text-generator {
    $actions-space: 40px;

    position: relative;
    display: flex;
    width: 100%;

    &__action {
        position: absolute;
        right: 2px;
        z-index: 1;
        display: flex;
        justify-content: center;
        bottom: 0;

        &--hasMultipleActions {
            gap: 2px;
        }
    }

    &__spinner {
        width: 20px;
        height: 20px;
        display: grid;
        place-items: center;
    }

    // Intentional coupling: UiInlineTextGenerator composes EditableLabel
    // and must reserve space for the absolutely positioned action buttons.
    .gd-editable-label textarea,
    .gd-editable-label-inner {
        box-sizing: border-box;
        padding-right: $actions-space;
    }

    &--isGenerated .gd-icon-pencil {
        display: none;
    }
}
