/* Shared action hierarchy for an existing form, focused editor, or save strip.
 * Page code still owns labels, permission checks, validation, and handlers. */
.ukfp-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.ukfp-form-actions > button,
.ukfp-form-actions > [role="button"] {
  min-height: 44px;
}

.ukfp-form-actions [data-ukfp-form-action="secondary"] { order: 1; }
.ukfp-form-actions [data-ukfp-form-action="primary"] { order: 2; }
.ukfp-form-actions [data-ukfp-form-action="danger"] { order: 3; }

.ukfp-form-actions [aria-busy="true"],
.ukfp-form-actions [aria-busy="true"]:disabled {
  cursor: progress;
  opacity: .72;
}

@media (max-width: 640px) {
  .ukfp-form-actions--mobile-balanced {
    display: grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width: 100%;
  }
  .ukfp-form-actions--mobile-balanced > button,
  .ukfp-form-actions--mobile-balanced > [role="button"] { width:100%; min-height:48px; }
}
